The currently active signing key pair, or null before initialisation.
The previous key pair (grace period after rotation), or null.
Returns the JWKS object containing all current public keys. Includes both the active key and the previous key (during grace period).
Initialise the provider.
If a KeyPersistenceAdapter was provided and a persisted key set exists,
those keys are loaded. Otherwise, a fresh key pair is generated and
(if an adapter is configured) saved immediately.
Rotate the signing key.
The current active key becomes the previous key (grace period).
A new key pair is generated and becomes the active key.
If a KeyPersistenceAdapter is configured, the new key set is saved.
Start automatic key rotation.
invoked after each rotation with the new active key pair.
Stop automatic key rotation.
JWT IdentityProvider — manages ES256 signing key pairs.
Example
Example