KeyMetadata

@Serializable
data class KeyMetadata(val version: Int, val createdAtMs: Long, val algorithm: String, val keyLengthBits: Int, val rotatedFromVersion: Int? = null, val isHardwareBacked: Boolean? = null)

Metadata for an encryption key version.

Constructors

Link copied to clipboard
constructor(version: Int, createdAtMs: Long, algorithm: String, keyLengthBits: Int, rotatedFromVersion: Int? = null, isHardwareBacked: Boolean? = null)

Properties

Link copied to clipboard

The encryption algorithm (e.g., "AES/GCM/NoPadding").

Link copied to clipboard

Timestamp when the key was created (epoch milliseconds).

Link copied to clipboard

Whether the key is stored in hardware-backed keystore.

Link copied to clipboard

The key length in bits.

Link copied to clipboard

If this key was created by rotation, the previous version.

Link copied to clipboard

The key version number.