Class JwtAuthenticationMechanism

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.undertow.security.api.AuthenticationMechanism

        io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome, io.undertow.security.api.AuthenticationMechanism.ChallengeResult
    • Constructor Detail

      • JwtAuthenticationMechanism

        public JwtAuthenticationMechanism()
    • Method Detail

      • authenticate

        public io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome authenticate​(io.undertow.server.HttpServerExchange hse,
                                                                                                            io.undertow.security.api.SecurityContext sc)
        Specified by:
        authenticate in interface io.undertow.security.api.AuthenticationMechanism
        Specified by:
        authenticate in interface AuthMechanism
      • sendChallenge

        public io.undertow.security.api.AuthenticationMechanism.ChallengeResult sendChallenge​(io.undertow.server.HttpServerExchange exchange,
                                                                                              io.undertow.security.api.SecurityContext securityContext)
        Specified by:
        sendChallenge in interface io.undertow.security.api.AuthenticationMechanism
        Specified by:
        sendChallenge in interface AuthMechanism
      • addConsumer

        public void addConsumer​(Consumer<com.auth0.jwt.interfaces.DecodedJWT> extraJwtVerifier)
        set an extra verification step via a Consumer that can throw JWTVerificationException to make the verification failing
        Specified by:
        addConsumer in interface ConsumingPlugin<com.auth0.jwt.interfaces.DecodedJWT>
        Parameters:
        extraJwtVerifier -