Add modification

This commit is contained in:
J-Jamet committed 2018-04-21 14:20:43 +02:00
1 parent 268f716104
commit fb1b90a281
21 files changed
+443 -198

No files matched your search

@@ -45,7 +45,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
package com.kunzisoft.keepass.database;
// Java
import com.kunzisoft.keepass.crypto.keyDerivation.AesKdf;
import com.kunzisoft.keepass.database.exception.InvalidKeyFileException;
@@ -71,13 +70,6 @@ public class PwDatabaseV3 extends PwDatabase<PwGroupV3, PwEntryV3> {
private int numKeyEncRounds;
private void initAndAddGroup(String name, int iconId, PwGroupV3 parent) {
PwGroupV3 group = createGroup();
group.initNewGroup(name, newGroupId());
group.setIcon(iconFactory.getIcon(iconId));
addGroupTo(group, parent);
}
@Override
public void initNew(String dbPath) {
algorithm = PwEncryptionAlgorithm.AES_Rijndael;
@@ -90,6 +82,14 @@ public class PwDatabaseV3 extends PwDatabase<PwGroupV3, PwEntryV3> {
initAndAddGroup("eMail", 19, rootGroup);
}
private void initAndAddGroup(String name, int iconId, PwGroupV3 parent) {
PwGroupV3 group = createGroup();
group.setId(newGroupId());
group.setName(name);
group.setIcon(iconFactory.getIcon(iconId));
addGroupTo(group, parent);
}
@Override
public PwVersion getVersion() {
return PwVersion.V3;