rotateKeyIfNeeded

abstract suspend fun rotateKeyIfNeeded(): Boolean

Rotates the active key if the configured rotation period has elapsed.

Return

true if a new primary/active key was promoted (triggering store re-encryption), or false if no rotation occurred.