KmsOptionKeys

Cross-provider constants for KMS operation option keys.

These constants apply to multiple KMS providers and should be used instead of string literals to prevent typos. Provider-specific constants live in each plugin module:

  • AWS: AwsKmsOptionKeys

  • Google Cloud: GcpKmsOptionKeys

  • HashiCorp Vault: HashiCorpKmsOptionKeys

Example Usage:

val result = kms.generateKey(
algorithm = Algorithm.Ed25519,
options = mapOf(
KmsOptionKeys.KEY_ID to "my-key-id",
KmsOptionKeys.DESCRIPTION to "My key description"
)
)

Properties

Link copied to clipboard
const val DESCRIPTION: String

Human-readable description of the key. Used by: AWS, Azure, IBM, Fortanix, Thales.

Link copied to clipboard
const val EXPORTABLE: String

Whether the key material can be exported. Used by: HashiCorp, Thales.

Link copied to clipboard
const val EXTRACTABLE: String

Whether the key material can be extracted. Used by: IBM.

Link copied to clipboard
const val KEY_ID: String

Key identifier or name for the key. Used by: AWS, Google, InMemory, WaltID.

Link copied to clipboard
const val KEY_NAME: String

Key name (alternative to keyId). Used by: Azure, HashiCorp.

Link copied to clipboard
const val NAME: String

Key name (short form). Used by: IBM, Fortanix, CyberArk, Thales.