KmsOptionKeys
object 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:
AwsKmsOptionKeysGoogle Cloud:
GcpKmsOptionKeysHashiCorp 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"
)
)Content copied to clipboard