Module org.elasticsearch.security
Class JwtAuthenticator
java.lang.Object
org.elasticsearch.xpack.security.authc.jwt.JwtAuthenticator
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.core.Releasable
This class performs validations of header, claims and signatures against the incoming
JwtAuthenticationToken.
It returns the JWTClaimsSet associated to the token if validation is successful.
Note this class does not care about users nor its caching behaviour.-
Constructor Summary
ConstructorsConstructorDescriptionJwtAuthenticator(RealmConfig realmConfig, SSLService sslService, JwtSignatureValidator.PkcJwkSetReloadNotifier reloadNotifier) -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(JwtAuthenticationToken jwtAuthenticationToken, ActionListener<com.nimbusds.jwt.JWTClaimsSet> listener) voidclose()
-
Constructor Details
-
JwtAuthenticator
public JwtAuthenticator(RealmConfig realmConfig, SSLService sslService, JwtSignatureValidator.PkcJwkSetReloadNotifier reloadNotifier)
-
-
Method Details
-
authenticate
public void authenticate(JwtAuthenticationToken jwtAuthenticationToken, ActionListener<com.nimbusds.jwt.JWTClaimsSet> listener) -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-
getTokenType
-
getFallbackClaimNames
-