rotateKey

fun rotateKey(force: Boolean = false): RotationResult

Rotate to a new key version.

Creates a new key and sets it as the current version. Old keys remain available for decryption until they expire.

Return

Result of the rotation operation.

Parameters

force

If true, rotate even if not needed by policy.