Meta

data class Meta(val generator: String = Defaults.Generator, val headerHash: ByteString? = null, val settingsChanged: Instant? = Instant.now(), val name: String = "", val nameChanged: Instant? = Instant.now(), val description: String = "", val descriptionChanged: Instant? = Instant.now(), val defaultUser: String = "", val defaultUserChanged: Instant? = Instant.now(), val maintenanceHistoryDays: UInt = Defaults.MaintenanceHistoryDays, val color: String? = null, val masterKeyChanged: Instant? = null, val masterKeyChangeRec: Int = -1, val masterKeyChangeForce: Int = -1, val recycleBinEnabled: Boolean = false, val recycleBinUuid: UUID? = null, val recycleBinChanged: Instant? = null, val entryTemplatesGroup: UUID? = null, val entryTemplatesGroupChanged: Instant? = null, val historyMaxItems: Int = Defaults.HistoryMaxItems, val historyMaxSize: Int = Defaults.HistoryMaxSize, val lastSelectedGroup: UUID? = null, val lastTopVisibleGroup: UUID? = null, val memoryProtection: Set<MemoryProtectionFlag> = setOf(MemoryProtectionFlag.Password), val customIcons: Map<UUID, CustomIcon> = mapOf(), val customData: Map<String, CustomDataValue> = mapOf(), binaries: Map<ByteString, BinaryData> = linkedMapOf())

Meta describes various database meta data. Note that MasterKeyChangeForceOnce is omitted.

Constructors

Link copied to clipboard
constructor(generator: String = Defaults.Generator, headerHash: ByteString? = null, settingsChanged: Instant? = Instant.now(), name: String = "", nameChanged: Instant? = Instant.now(), description: String = "", descriptionChanged: Instant? = Instant.now(), defaultUser: String = "", defaultUserChanged: Instant? = Instant.now(), maintenanceHistoryDays: UInt = Defaults.MaintenanceHistoryDays, color: String? = null, masterKeyChanged: Instant? = null, masterKeyChangeRec: Int = -1, masterKeyChangeForce: Int = -1, recycleBinEnabled: Boolean = false, recycleBinUuid: UUID? = null, recycleBinChanged: Instant? = null, entryTemplatesGroup: UUID? = null, entryTemplatesGroupChanged: Instant? = null, historyMaxItems: Int = Defaults.HistoryMaxItems, historyMaxSize: Int = Defaults.HistoryMaxSize, lastSelectedGroup: UUID? = null, lastTopVisibleGroup: UUID? = null, memoryProtection: Set<MemoryProtectionFlag> = setOf(MemoryProtectionFlag.Password), customIcons: Map<UUID, CustomIcon> = mapOf(), customData: Map<String, CustomDataValue> = mapOf(), binaries: Map<ByteString, BinaryData> = linkedMapOf())

Properties

Link copied to clipboard
val color: String? = null

Can be used to show a colored database icon.

Link copied to clipboard

Used by plugins to store arbitrary string data at database level.

Link copied to clipboard

Collection of attached binary files which could be used as custom icons.

Link copied to clipboard

Username to use as a default when creating a new entry in the database.

Link copied to clipboard

Timestamp of the last change of defaultUser.

Link copied to clipboard

Database description.

Link copied to clipboard

Timestamp of the last change of description.

Link copied to clipboard

UUID of the group that holds templates for the new entries.

Link copied to clipboard

Timestamp of the last change of entryTemplatesGroup.

Link copied to clipboard

Application name that generated database file.

Link copied to clipboard
val headerHash: ByteString? = null

The SHA-256 hash of the database header data (version 3.x).

Link copied to clipboard

Maximum number of historic items Entry should store (-1 means unlimited).

Link copied to clipboard

Indicates maximum history size in bytes (-1 means unlimited).

Link copied to clipboard
val lastSelectedGroup: UUID? = null

UUID of the group that was last selected by the user.

Link copied to clipboard

UUID of the top-most group that is visible in the user’s last session.

Link copied to clipboard

Indicates the maximum age of the oldest history item to keep in days when performing database maintenance.

Link copied to clipboard

Timestamp of the last change of the database’s master key.

Link copied to clipboard

Indicates the number of days after which application should force changing the database’s master key (-1 means never).

Link copied to clipboard

Indicates the number of days after which application should recommend changing the database’s master key (-1 means never).

Link copied to clipboard

Indicates which fields should be protected by in-memory encryption at runtime.

Link copied to clipboard

Database name.

Link copied to clipboard

Timestamp of the last change of name.

Link copied to clipboard

Timestamp of the last change of recycleBinUuid.

Link copied to clipboard

Indicates whether database should use the recycle bin.

Link copied to clipboard
val recycleBinUuid: UUID? = null

UUID of the recycle bin group inside the database.

Link copied to clipboard

Timestamp of the last change of database settings.