Class JwtClaimValidator<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      JwtClaimValidator​(java.lang.String claim, java.util.function.Predicate<T> test)
      Constructs a JwtClaimValidator using the provided parameters
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      OAuth2TokenValidatorResult validate​(Jwt token)
      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

      • JwtClaimValidator

        public JwtClaimValidator​(java.lang.String claim,
                                 java.util.function.Predicate<T> test)
        Constructs a JwtClaimValidator using the provided parameters
        Parameters:
        claim - - is the name of the claim in Jwt to validate.
        test - - is the predicate function for the claim to test against.
    • Method Detail

      • validate

        public OAuth2TokenValidatorResult validate​(Jwt token)
        Verify the validity and/or constraints of the provided OAuth 2.0 Token.
        Specified by:
        validate in interface OAuth2TokenValidator<T>
        Parameters:
        token - an OAuth 2.0 token
        Returns:
        OAuth2TokenValidationResult the success or failure detail of the validation