Class JwtAuthenticationProvider

  • All Implemented Interfaces:
    org.springframework.security.authentication.AuthenticationProvider

    public class JwtAuthenticationProvider
    extends AbstractConnectAuthenticationProvider
    An AuthenticationProvider for JSON Web Tokens, issued by an Atlassian host or by the add-on itself.

    For JWTs issued by Atlassian hosts, in addition to verifying the signature of the JWT, the query string hash claim specific to Atlassian Connect is also verified.

    • Method Detail

      • supports

        public boolean supports​(Class<?> authenticationClass)
      • authenticate

        public org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)
                                                                      throws org.springframework.security.core.AuthenticationException
        Throws:
        org.springframework.security.core.AuthenticationException