public class StandardVerificationKeySelector extends Object implements SigningKeyListener, VerificationKeyListener, VerificationKeySelector
| Modifier and Type | Field and Description |
|---|---|
private Duration |
keyRotationPeriod |
private static org.slf4j.Logger |
LOGGER |
private VerificationKeyService |
verificationKeyService |
| Constructor and Description |
|---|
StandardVerificationKeySelector(VerificationKeyService verificationKeyService,
Duration keyRotationPeriod) |
| Modifier and Type | Method and Description |
|---|---|
List<? extends Key> |
getVerificationKeys(String keyIdentifier)
Get Verification Keys
|
void |
onSigningKeyUsed(String keyIdentifier,
Instant expiration)
On Signing Key Used set new expiration
|
void |
onVerificationKeyGenerated(String keyIdentifier,
Key key)
On Verification Key Generated persist encoded Key with expiration
|
private static final org.slf4j.Logger LOGGER
private final VerificationKeyService verificationKeyService
private final Duration keyRotationPeriod
public StandardVerificationKeySelector(VerificationKeyService verificationKeyService, Duration keyRotationPeriod)
public void onVerificationKeyGenerated(String keyIdentifier, Key key)
onVerificationKeyGenerated in interface VerificationKeyListenerkeyIdentifier - Key Identifierkey - Keypublic List<? extends Key> getVerificationKeys(String keyIdentifier)
getVerificationKeys in interface VerificationKeySelectorkeyIdentifier - Key Identifierpublic void onSigningKeyUsed(String keyIdentifier, Instant expiration)
onSigningKeyUsed in interface SigningKeyListenerkeyIdentifier - Key Identifierexpiration - JSON Web Token ExpirationCopyright © 2023 Apache NiFi Project. All rights reserved.