public class KeePassFile extends Object implements KeePassFileElement
| Constructor and Description |
|---|
KeePassFile(KeePassFileBuilder builder) |
| 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.
|
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(KeePassFileBuilder builder)
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 searchedGroupCopyright © 2016. All rights reserved.