Get enough in to fully parse a .kdbx database and load it into java objects.

This commit is contained in:
Brian Pellin committed 2010-06-02 20:33:07 -05:00
1 parent bd7f48e0e7
commit 2380579654
39 files changed
+2567 -147

No files matched your search

+8 -4
View File
@@ -20,13 +20,15 @@
package com.keepassdroid.database;
import java.util.Date;
import java.util.UUID;
public abstract class PwEntry implements Cloneable {
public byte uuid[] = new byte[16];
//public byte uuid[] = new byte[16];
public String title;
public String url;
public String additional;
public int imageId;
public PwEntry() {
@@ -42,7 +44,7 @@ public abstract class PwEntry implements Cloneable {
throw new RuntimeException("Clone should be supported");
}
System.arraycopy(uuid, 0, newEntry.uuid, 0, uuid.length);
newEntry.setUUID(getUUID());
newEntry.title = title;
newEntry.url = url;
newEntry.additional = additional;
@@ -51,14 +53,16 @@ public abstract class PwEntry implements Cloneable {
}
public void assign(PwEntry source) {
System.arraycopy(source.uuid, 0, uuid, 0, source.uuid.length);
setUUID(source.getUUID());
title = source.title;
url = source.url;
additional = source.additional;
}
public abstract void stampLastAccess();
public abstract UUID getUUID();
public abstract void setUUID(UUID u);
public abstract String getUsername();
public abstract String getPassword();
public abstract Date getCreate();