RotationResult

sealed class RotationResult

Result of a key rotation operation.

Inheritors

Types

Link copied to clipboard
data class Failed(val reason: String, val cause: Throwable? = null) : RotationResult

Rotation failed due to an error.

Link copied to clipboard
data class NotNeeded(val currentKeyVersion: Int, val keyAgeDays: Int) : RotationResult

Rotation was not needed (key is not old enough).

Link copied to clipboard
data class Success(val newKeyVersion: Int, val previousKeyVersion: Int) : RotationResult

Key was successfully rotated.