Class SigningKeyProps
PROPS Props for persistent OpenIddict signing / encryption keys (A3).
One row per key; the active key for signing new tokens is the row with
= true and = "signing"; older keys remain in
the JWKS (and in OpenIddict's credential list) until so that
tokens signed by them continue to validate through the rotation-overlap window.
is produced by IDataProtector.Protect over the raw PEM
bytes with purpose redb.identity.signing-keys.v1. This reuses the
RedbXmlRepository DataProtection key ring that is loaded earlier in the route
lifecycle, which means the key ring MUST be seeded first
(RedbXmlRepositoryInitListener runs before SigningKeyInitListener in
InitRoute.main).
[RedbScheme("identity.signing_key")]
public class SigningKeyProps
Inheritance
Properties
EncryptedPem
DataProtection-protected PEM-encoded private key (base64).
public string EncryptedPem { get; set; }
IsActive
True for the single current key used to sign / encrypt new tokens. Older keys remain
public bool IsActive { get; set; }
NotAfter
Latest UTC time the key may be used to validate / decrypt. Past this, drop from JWKS.
public DateTimeOffset NotAfter { get; set; }
NotBefore
Earliest UTC time the key may be used to sign / encrypt.
public DateTimeOffset NotBefore { get; set; }