public class KeePassFile extends Object implements KeePassFileElement
| Constructor and Description |
|---|
KeePassFile(KeePassFileContract keePassFileContract) |
| 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.
|
Entry |
getEntryByUUID(UUID UUID)
Retrieves an entry based on its UUID.
|
Group |
getGroupByName(String name)
Retrieves a single group with an exactly matching name.
|
Group |
getGroupByUUID(UUID UUID)
Retrieves a group based on its UUID.
|
List<Group> |
getGroups()
Retrieves a list of all groups in the KeePass database.
|
List<Group> |
getGroupsByName(String name,
boolean matchExactly)
Retrieves a list of group with matching names.
|
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.
|
public KeePassFile(KeePassFileContract keePassFileContract)
public Meta getMeta()
Metapublic Group getRoot()
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 List<Group> getGroupsByName(String name, boolean matchExactly)
If the matchExactly flag is true, only groups which have an exactly matching name will be returned, otherwise all groups which contain the given name will be returned.
name - the name which should be searchedmatchExactly - if true only groups which have an exactly matching name will
be returnedGrouppublic List<Entry> getEntries()
Entrypublic List<Group> getGroups()
Grouppublic Group getGroupByName(String name)
If there are multiple groups with the same name, the first one found will be returned.
name - the name which should be searchedGrouppublic Entry getEntryByUUID(UUID UUID)
UUID - the uuid which should be searchedCopyright © 2018. All rights reserved.