Class JWTIdentifierRevocationValidator
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
-
- net.shibboleth.utilities.java.support.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
public class JWTIdentifierRevocationValidator extends AbstractClaimsValidator
Verifies the identifier (jit) from the JWT against revocation via configurableRevocationCache.Single identifier is stored in the cache for the lifetime of the JWT (expiration instant is taken from the 'exp' -claim).
-
-
Field Summary
Fields Modifier and Type Field Description private StringcontextContext in revocation cache.private RevocationCacherevocationCacheMessage replay cache instance to use.
-
Constructor Summary
Constructors Constructor Description JWTIdentifierRevocationValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()protected voiddoValidate(com.nimbusds.jwt.JWTClaimsSet claims, ProfileRequestContext profileRequestContext)voidsetContext(String s)Set the revocation cache context that partitions entries.voidsetRevocationCache(RevocationCache cache)Set the revocation cache instance to use.-
Methods inherited from class net.shibboleth.oidc.jwt.claims.AbstractClaimsValidator
setActivationCondition, validate
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
getId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiableComponent
setId
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
-
-
-
Field Detail
-
revocationCache
@NonnullAfterInit private RevocationCache revocationCache
Message replay cache instance to use.
-
context
@NonnullAfterInit @NotEmpty private String context
Context in revocation cache.
-
-
Method Detail
-
setRevocationCache
public void setRevocationCache(@Nonnull RevocationCache cache)Set the revocation cache instance to use.- Parameters:
cache- revocation cache to set
-
setContext
public void setContext(@Nonnull @NotEmpty String s)
Set the revocation cache context that partitions entries.- Parameters:
s- context value
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
doValidate
protected void doValidate(@Nonnull com.nimbusds.jwt.JWTClaimsSet claims, @Nullable ProfileRequestContext profileRequestContext) throws JWTValidationException- Specified by:
doValidatein classAbstractClaimsValidator- Throws:
JWTValidationException
-
-