Class OidcIdTokenValidator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setClock​(java.time.Clock clock)
      Sets the Clock used in Instant.now(Clock) when validating the exp and iat claims.
      void setClockSkew​(java.time.Duration clockSkew)
      Sets the maximum acceptable clock skew.
      OAuth2TokenValidatorResult validate​(Jwt idToken)
      Verify the validity and/or constraints of the provided OAuth 2.0 Token.
      • Methods inherited from class java.lang.Object

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

      • OidcIdTokenValidator

        public OidcIdTokenValidator​(ClientRegistration clientRegistration)
    • Method Detail

      • setClockSkew

        public void setClockSkew​(java.time.Duration clockSkew)
        Sets the maximum acceptable clock skew. The default is 60 seconds. The clock skew is used when validating the exp and iat claims.
        Parameters:
        clockSkew - the maximum acceptable clock skew
        Since:
        5.2
      • setClock

        public void setClock​(java.time.Clock clock)
        Sets the Clock used in Instant.now(Clock) when validating the exp and iat claims.
        Parameters:
        clock - the clock
        Since:
        5.3