public class KeePassFile extends Object implements KeePassFileElement
| Constructor and Description |
|---|
KeePassFile() |
| Modifier and Type | Method and Description |
|---|---|
List<Entry> |
getEntries()
Retrieves a list of all entries in the KeePass database.
|
List<Entry> |
getEntriesByTitle(String title,
boolean matchExactly)
Retrieves a list of entries with matching titles.
|
Entry |
getEntryByTitle(String title)
Retrieves a single entry with an exactly matching title.
|
Meta |
getMeta()
Retrieves the meta section of a KeePass database.
|
Group |
getRoot()
Retrieves the root group of a KeePass database.
|
List<Entry> |
getTopEntries()
Retrieves all entries at the root level of a KeePass database.
|
List<Group> |
getTopGroups()
Retrieves all groups at the root level of a KeePass database.
|
void |
init() |
void |
setMeta(Meta meta)
Sets the meta section of a KeePass database.
|
void |
setRoot(Group root)
Sets the root group of a KeePass database.
|
public Meta getMeta()
Metapublic void setMeta(Meta meta)
meta - the meta section of the databasepublic Group getRoot()
Grouppublic void setRoot(Group root)
root - the root grouppublic List<Group> getTopGroups()
Grouppublic List<Entry> getTopEntries()
Entrypublic Entry getEntryByTitle(String title)
If there are multiple entries with the same title, the first one found will be returned.
title - the title which should be searchedEntrypublic List<Entry> getEntriesByTitle(String title, boolean matchExactly)
If the matchExactly flag is true, only entries which have an exactly matching title will be returned, otherwise all entries which contain the given title will be returned.
title - the title which should be searchedmatchExactly - if true only entries which have an exactly matching title will be returnedEntrypublic void init()
Copyright © 2015. All rights reserved.