EntryValue

sealed class EntryValue

Wraps value fields stored in Entry.

Inheritors

Types

Link copied to clipboard
data class Encrypted(value: EncryptedValue) : EntryValue

Should be used for secrets.

Link copied to clipboard
data class Plain(val content: String) : EntryValue

Should be used for non-sensitive values.

Properties

Link copied to clipboard
abstract val content: String

Returns underlying value, decrypting if required.

Functions

Link copied to clipboard
abstract fun isEmpty(): Boolean

Checks whether content is empty without exposing EncryptedValue.

Link copied to clipboard
inline fun map(block: (String) -> String): EntryValue

Replaces wrapped value with result of the block.