Class EntityStatementClaimsVerifier
java.lang.Object
com.nimbusds.jwt.proc.DefaultJWTClaimsVerifier
com.nimbusds.openid.connect.sdk.federation.entities.EntityStatementClaimsVerifier
- All Implemented Interfaces:
com.nimbusds.jwt.proc.ClockSkewAware
,com.nimbusds.jwt.proc.JWTClaimsSetVerifier
@Immutable
public class EntityStatementClaimsVerifier
extends com.nimbusds.jwt.proc.DefaultJWTClaimsVerifier
Entity statement claims verifier.
Verifies:
- The presence of the required "iss", "sub", "iat", "exp" and "jwks" claims.
- The current time is within the "iat" and "exp" window.
-
Field Summary
Fields inherited from class com.nimbusds.jwt.proc.DefaultJWTClaimsVerifier
DEFAULT_MAX_CLOCK_SKEW_SECONDS
-
Constructor Summary
ConstructorDescriptionCreates a new entity statement claims verifier for self-issued statements.EntityStatementClaimsVerifier
(Audience expectedAudience) Creates a new entity statement claims verifier. -
Method Summary
Modifier and TypeMethodDescriptionvoid
verify
(com.nimbusds.jwt.JWTClaimsSet claimsSet, com.nimbusds.jose.proc.SecurityContext context) Methods inherited from class com.nimbusds.jwt.proc.DefaultJWTClaimsVerifier
currentTime, getAcceptedAudienceValues, getExactMatchClaims, getMaxClockSkew, getProhibitedClaims, getRequiredClaims, setMaxClockSkew
-
Constructor Details
-
EntityStatementClaimsVerifier
public EntityStatementClaimsVerifier()Creates a new entity statement claims verifier for self-issued statements. -
EntityStatementClaimsVerifier
Creates a new entity statement claims verifier.- Parameters:
expectedAudience
- The expected audience,null
if not specified.
-
-
Method Details
-
verify
public void verify(com.nimbusds.jwt.JWTClaimsSet claimsSet, com.nimbusds.jose.proc.SecurityContext context) throws com.nimbusds.jwt.proc.BadJWTException - Specified by:
verify
in interfacecom.nimbusds.jwt.proc.JWTClaimsSetVerifier
- Overrides:
verify
in classcom.nimbusds.jwt.proc.DefaultJWTClaimsVerifier
- Throws:
com.nimbusds.jwt.proc.BadJWTException
-