Class AuthTokenHttpJwtAuthenticator

  • All Implemented Interfaces:
    com.floragunn.searchguard.auth.HTTPAuthenticator

    public class AuthTokenHttpJwtAuthenticator
    extends Object
    implements com.floragunn.searchguard.auth.HTTPAuthenticator
    • Constructor Detail

      • AuthTokenHttpJwtAuthenticator

        public AuthTokenHttpJwtAuthenticator​(AuthTokenService authTokenService)
    • Method Detail

      • getType

        public String getType()
        Specified by:
        getType in interface com.floragunn.searchguard.auth.HTTPAuthenticator
      • extractCredentials

        public com.floragunn.searchguard.user.AuthCredentials extractCredentials​(org.elasticsearch.rest.RestRequest request,
                                                                                 org.elasticsearch.common.util.concurrent.ThreadContext context)
                                                                          throws org.elasticsearch.ElasticsearchSecurityException
        Specified by:
        extractCredentials in interface com.floragunn.searchguard.auth.HTTPAuthenticator
        Throws:
        org.elasticsearch.ElasticsearchSecurityException
      • getJwtTokenString

        protected String getJwtTokenString​(org.elasticsearch.rest.RestRequest request)
      • extractSubject

        protected String extractSubject​(org.apache.cxf.rs.security.jose.jwt.JwtClaims claims)
      • reRequestAuthentication

        public boolean reRequestAuthentication​(org.elasticsearch.rest.RestChannel channel,
                                               com.floragunn.searchguard.user.AuthCredentials authCredentials)
        Specified by:
        reRequestAuthentication in interface com.floragunn.searchguard.auth.HTTPAuthenticator