public class SimpleDatabase extends org.linguafranca.pwdb.base.AbstractDatabase<SimpleDatabase,SimpleGroup,SimpleEntry,SimpleIcon>
Database using the Simple XML framework.| Modifier | Constructor and Description |
|---|---|
|
SimpleDatabase()
Create a new empty database
|
protected |
SimpleDatabase(KeePassFile keePassFile)
Create a database instance from a keepass file
|
| Modifier and Type | Method and Description |
|---|---|
List<KeePassFile.Binaries.Binary> |
getBinaries() |
String |
getDescription() |
String |
getName() |
SimpleGroup |
getRootGroup() |
static SimpleDatabase |
load(org.linguafranca.pwdb.Credentials credentials,
InputStream inputStream)
Load kdbx file
|
static SimpleDatabase |
loadXml(InputStream inputStream)
Load plaintext XML
|
SimpleEntry |
newEntry() |
SimpleGroup |
newGroup() |
SimpleIcon |
newIcon() |
SimpleIcon |
newIcon(Integer integer) |
void |
save(org.linguafranca.pwdb.Credentials credentials,
OutputStream outputStream) |
void |
save(OutputStream outputStream)
Save as plaintext XML
|
void |
setDescription(String s) |
void |
setName(String s) |
boolean |
shouldProtect(String s) |
public SimpleDatabase()
protected SimpleDatabase(KeePassFile keePassFile)
keePassFile - the instance to initialise frompublic SimpleGroup getRootGroup()
public SimpleGroup newGroup()
public SimpleEntry newEntry()
public SimpleIcon newIcon()
public SimpleIcon newIcon(Integer integer)
public String getName()
public void setName(String s)
public String getDescription()
public void setDescription(String s)
public static SimpleDatabase loadXml(InputStream inputStream) throws Exception
inputStream - contains the XMLException - on load failurepublic static SimpleDatabase load(org.linguafranca.pwdb.Credentials credentials, InputStream inputStream) throws Exception
credentials - the credentials to useinputStream - the encrypted input streamException - on load failurepublic void save(OutputStream outputStream)
outputStream - the destination to save topublic void save(org.linguafranca.pwdb.Credentials credentials,
OutputStream outputStream)
throws IOException
IOExceptionpublic boolean shouldProtect(String s)
public List<KeePassFile.Binaries.Binary> getBinaries()
Copyright © 2016. All rights reserved.