Class JWTIdentifierRevocationValidator
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.oidc.jwt.claims.AbstractClaimsValidator
net.shibboleth.oidc.security.jwt.claims.impl.JWTIdentifierRevocationValidator
- All Implemented Interfaces:
ClaimsValidator,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
Verifies the identifier (jit) from the JWT against revocation via configurable
RevocationCache.
Single identifier is stored in the cache for the lifetime of the JWT (expiration instant is taken from the 'exp' -claim).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringContext in revocation cache.private RevocationCacheMessage replay cache instance to use. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voiddoValidate(JWTClaimsSet claims, ProfileRequestContext profileRequestContext) Perform validation of the given claims supported by the supplied context.voidsetContext(String s) Set the revocation cache context that partitions entries.voidSet the revocation cache instance to use.Methods inherited from class net.shibboleth.oidc.jwt.claims.AbstractClaimsValidator
setActivationCondition, validateMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiableComponent
setIdMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Field Details
-
revocationCache
Message replay cache instance to use. -
context
Context in revocation cache.
-
-
Constructor Details
-
JWTIdentifierRevocationValidator
public JWTIdentifierRevocationValidator()
-
-
Method Details
-
setRevocationCache
Set the revocation cache instance to use.- Parameters:
cache- revocation cache to set
-
setContext
Set the revocation cache context that partitions entries.- Parameters:
s- context value
-
doInitialize
- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
doValidate
protected void doValidate(@Nonnull JWTClaimsSet claims, @Nullable ProfileRequestContext profileRequestContext) throws JWTValidationException Perform validation of the given claims supported by the supplied context.- Specified by:
doValidatein classAbstractClaimsValidator- Parameters:
claims- the claims to validate.profileRequestContext- the profile request context.- Throws:
JWTValidationException- when validation is unsuccessful due to a failed attempt
-