Class TokenValidator

    • Field Detail

      • jwtConsumerBuilder

        private org.jose4j.jwt.consumer.JwtConsumerBuilder jwtConsumerBuilder
    • Method Detail

      • parseAndVerifyToken

        public AccessToken parseAndVerifyToken​(String bearerToken)
                                        throws OidcException
        Parse and verify the given bearer token.
        Parameters:
        bearerToken - the bearer token
        Returns:
        the AccessToken if the bearer token was valid
        Throws:
        OidcException - if the bearer token is invalid
      • setVerificationKey

        private org.jose4j.jwt.consumer.JwtContext setVerificationKey​(String token,
                                                                      org.jose4j.jwt.consumer.JwtConsumerBuilder jwtConsumerBuilder)
                                                               throws org.jose4j.jwt.consumer.InvalidJwtException
        Throws:
        org.jose4j.jwt.consumer.InvalidJwtException
      • builder

        public static TokenValidator.Builder builder​(OidcClientConfiguration clientConfiguration)
        Construct a new builder instance.
        Parameters:
        clientConfiguration - the OIDC client configuration
        Returns:
        the new builder instance