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

    Constructors
    Constructor
    Description
    Creates a new entity statement claims verifier for self-issued statements.
    Creates a new entity statement claims verifier.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EntityStatementClaimsVerifier

      Creates a new entity statement claims verifier for self-issued statements.
    • EntityStatementClaimsVerifier

      public EntityStatementClaimsVerifier(Audience expectedAudience)
      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 interface com.nimbusds.jwt.proc.JWTClaimsSetVerifier
      Overrides:
      verify in class com.nimbusds.jwt.proc.DefaultJWTClaimsVerifier
      Throws:
      com.nimbusds.jwt.proc.BadJWTException