public class JacksonDatabase extends org.linguafranca.pwdb.protect.ProtectedDatabase<JacksonDatabase,JacksonGroup,JacksonEntry,JacksonIcon>
| Constructor and Description |
|---|
JacksonDatabase() |
JacksonDatabase(KeePassFile file,
org.linguafranca.pwdb.StreamFormat<?> streamFormat) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBinary(byte[] bytes,
int index) |
void |
enableRecycleBin(boolean enable) |
List<KeePassFile.Binary> |
getBinaries() |
String |
getDescription() |
String |
getName() |
JacksonGroup |
getRecycleBin() |
JacksonGroup |
getRootGroup() |
org.linguafranca.pwdb.StreamFormat<?> |
getStreamFormat() |
boolean |
isRecycleBinEnabled() |
static JacksonDatabase |
load(org.linguafranca.pwdb.Credentials credentials,
InputStream inputStream)
Load kdbx file
|
static JacksonDatabase |
loadXml(InputStream inputStream)
Load plaintext XML
|
JacksonEntry |
newEntry() |
JacksonGroup |
newGroup() |
JacksonIcon |
newIcon() |
JacksonIcon |
newIcon(Integer integer) |
void |
save(org.linguafranca.pwdb.Credentials credentials,
OutputStream outputStream)
Save the database with the same stream format that it was loaded with, or V4
default if none
|
<C extends org.linguafranca.pwdb.StreamConfiguration> |
save(org.linguafranca.pwdb.StreamFormat<C> streamFormat,
org.linguafranca.pwdb.Credentials credentials,
OutputStream outputStream)
Save the database with a choice of stream format
|
void |
setDescription(String s) |
void |
setName(String s) |
boolean |
shouldProtect(String s) |
getPropertyValueStrategy, listShouldProtect, setPropertyValueStrategy, setShouldProtect, supportsPropertyValueStrategydeleteEntry, deleteGroup, emptyRecycleBin, findEntries, findEntries, findEntry, findGroup, isDirty, newEntry, newEntry, newGroup, newGroup, setDirty, supportsBinaryProperties, supportsNonStandardPropertyNames, supportsRecycleBin, visit, visitpublic JacksonDatabase()
throws IOException
IOExceptionpublic JacksonDatabase(KeePassFile file, org.linguafranca.pwdb.StreamFormat<?> streamFormat)
public static JacksonDatabase loadXml(InputStream inputStream) throws Exception
inputStream - contains the XMLException - on load failurepublic static JacksonDatabase load(org.linguafranca.pwdb.Credentials credentials, InputStream inputStream) throws IOException
credentials - credentials to useinputStream - where to load fromIOExceptionpublic void save(org.linguafranca.pwdb.Credentials credentials,
OutputStream outputStream)
throws IOException
credentials - credentials to useoutputStream - where to write toIOExceptionpublic <C extends org.linguafranca.pwdb.StreamConfiguration> void save(org.linguafranca.pwdb.StreamFormat<C> streamFormat,
org.linguafranca.pwdb.Credentials credentials,
OutputStream outputStream)
throws IOException
streamFormat - the format to usecredentials - credentials to useoutputStream - where to write toIOExceptionpublic JacksonGroup getRootGroup()
public JacksonGroup newGroup()
public JacksonEntry newEntry()
public JacksonIcon newIcon()
public JacksonIcon newIcon(Integer integer)
public boolean isRecycleBinEnabled()
public void enableRecycleBin(boolean enable)
public JacksonGroup getRecycleBin()
public String getName()
public void setName(String s)
public String getDescription()
public void setDescription(String s)
public boolean shouldProtect(String s)
shouldProtect in interface org.linguafranca.pwdb.Database<JacksonDatabase,JacksonGroup,JacksonEntry,JacksonIcon>shouldProtect in class org.linguafranca.pwdb.protect.ProtectedDatabase<JacksonDatabase,JacksonGroup,JacksonEntry,JacksonIcon>public List<KeePassFile.Binary> getBinaries()
public void addBinary(byte[] bytes,
int index)
public org.linguafranca.pwdb.StreamFormat<?> getStreamFormat()
Copyright © 2025. All rights reserved.