Ver3x

data class Ver3x(val credentials: Credentials, val header: DatabaseHeader.Ver3x, val content: DatabaseContent) : KeePassDatabase

Constructors

Link copied to clipboard
constructor(credentials: Credentials, header: DatabaseHeader.Ver3x, content: DatabaseContent)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override val content: DatabaseContent
Link copied to clipboard
open override val credentials: Credentials
Link copied to clipboard
open override val header: DatabaseHeader.Ver3x

Functions

Link copied to clipboard
fun KeePassDatabase.cleanupHistory(reference: Instant = Instant.now()): KeePassDatabase

Drops outdated history entries while taking into account historyMaxItems. Note that historyMaxSize value is ignored by this method.

Link copied to clipboard
fun KeePassDatabase.encode(outputStream: OutputStream, contentParser: XmlContentParser = DefaultXmlContentParser, cipherProviders: List<CipherProvider> = BaseCiphers.entries, random: SecureRandom = SecureRandom()): KeePassDatabase
Link copied to clipboard
fun KeePassDatabase.encodeAsXml(contentParser: XmlContentParser = DefaultXmlContentParser): String
Link copied to clipboard

Searches for entries which match a given predicate while respecting GroupOverride and ignoring items in Recycle Bin.

Link copied to clipboard

Searches for single Entry which matches a given predicate while respecting GroupOverride and ignoring items in Recycle Bin.

Link copied to clipboard

Searches for single Entry which matches a given predicate while respecting GroupOverride and ignoring items in Recycle Bin.

Link copied to clipboard

Retrieves entries which match a given predicate.

Link copied to clipboard

Retrieves a single Entry which matches a given predicate.

Link copied to clipboard
fun KeePassDatabase.getEntryBy(predicate: Entry.() -> Boolean): Entry?

Retrieves a single Entry which matches a given predicate.

Link copied to clipboard

Retrieves a single Group which matches a given predicate.

Link copied to clipboard
fun KeePassDatabase.getGroupBy(predicate: Group.() -> Boolean): Group?

Retrieves a single Group which matches a given predicate.

Link copied to clipboard

Measures KDF transform rounds performance based on header parameters.

Link copied to clipboard
inline fun KeePassDatabase.modifyBinaries(crossinline block: (Map<ByteString, BinaryData>) -> Map<ByteString, BinaryData>): KeePassDatabase
Link copied to clipboard
Link copied to clipboard

Modifies Credentials field in KeePassDatabase with result of block lambda. If new Credentials.passphrase supplied modifies Meta.masterKeyChanged field.

Link copied to clipboard

Replaces Map of CustomIcon while removing invalid references in entries.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun KeePassDatabase.modifyMeta(crossinline block: Meta.() -> Meta): KeePassDatabase

Modifies Meta field in KeePassDatabase with result of block lambda. Timestamps are updated accordingly.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun KeePassDatabase.regenerateVectors(random: SecureRandom = SecureRandom(), cipherProviders: List<CipherProvider>): KeePassDatabase
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun KeePassDatabase.resolveEntryPlaceholders(entry: Entry, maxDepth: UInt = Defaults.PlaceholdersMaxDepth): Map<String, EntryValue>

Iterates over Entry fields and recursively resolves every Placeholder up to maxDepth.

Link copied to clipboard
fun KeePassDatabase.resolvePlaceholder(entry: Entry, placeholder: String, maxDepth: UInt = Defaults.PlaceholdersMaxDepth): String

Recursively resolves Placeholder up to maxDepth.

Link copied to clipboard
fun KeePassDatabase.resolveReference(reference: String, maxDepth: UInt = Defaults.PlaceholdersMaxDepth): String

Recursively resolves field reference up to maxDepth.

Link copied to clipboard
fun KeePassDatabase.resolveValuePlaceholders(entry: Entry, value: EntryValue, maxDepth: UInt = Defaults.PlaceholdersMaxDepth): EntryValue

Recursively resolves every Placeholder up to maxDepth.

Link copied to clipboard
Link copied to clipboard
inline fun KeePassDatabase.withRecycleBin(crossinline block: KeePassDatabase.(recycleBinUuid: UUID) -> KeePassDatabase): KeePassDatabase