Package net.shibboleth.oidc.jwt.claims
Interface ClaimsValidator
-
- All Superinterfaces:
Component,IdentifiableComponent,IdentifiedComponent
- All Known Implementing Classes:
AbstractClaimsValidator
@ThreadSafe @Immutable public interface ClaimsValidator extends IdentifiableComponent
High-level API for validating a JWT's claims set.Instances of this interface must be stateless.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidate(com.nimbusds.jwt.JWTClaimsSet claims, ProfileRequestContext context)Validate all, or part of, the given JWT claims set.-
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiableComponent
setId
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
-
-
-
Method Detail
-
validate
void validate(@Nonnull com.nimbusds.jwt.JWTClaimsSet claims, @Nonnull ProfileRequestContext context) throws JWTValidationExceptionValidate all, or part of, the given JWT claims set. Can take supporting information from the given context tree.Throws an exception if validation fails.
- Parameters:
claims- the claims to validate.context- the profile request context.- Throws:
JWTValidationException- when validation is unsuccessful due to a failed attempt
-
-