Class AuthTokenHttpJwtAuthenticator
- java.lang.Object
-
- com.floragunn.searchguard.authtoken.AuthTokenHttpJwtAuthenticator
-
- All Implemented Interfaces:
com.floragunn.searchguard.auth.HTTPAuthenticator
public class AuthTokenHttpJwtAuthenticator extends Object implements com.floragunn.searchguard.auth.HTTPAuthenticator
-
-
Constructor Summary
Constructors Constructor Description AuthTokenHttpJwtAuthenticator(AuthTokenService authTokenService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.floragunn.searchguard.user.AuthCredentialsextractCredentials(org.elasticsearch.rest.RestRequest request, org.elasticsearch.common.util.concurrent.ThreadContext context)protected StringextractSubject(org.apache.cxf.rs.security.jose.jwt.JwtClaims claims)protected StringgetJwtTokenString(org.elasticsearch.rest.RestRequest request)StringgetType()booleanreRequestAuthentication(org.elasticsearch.rest.RestChannel channel, com.floragunn.searchguard.user.AuthCredentials authCredentials)
-
-
-
Constructor Detail
-
AuthTokenHttpJwtAuthenticator
public AuthTokenHttpJwtAuthenticator(AuthTokenService authTokenService)
-
-
Method Detail
-
getType
public String getType()
- Specified by:
getTypein interfacecom.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:
extractCredentialsin interfacecom.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:
reRequestAuthenticationin interfacecom.floragunn.searchguard.auth.HTTPAuthenticator
-
-