Package io.trino.server.security.jwt
Class JwtAuthenticator
java.lang.Object
io.trino.server.security.AbstractBearerAuthenticator
io.trino.server.security.jwt.JwtAuthenticator
- All Implemented Interfaces:
Authenticator
-
Constructor Summary
ConstructorsConstructorDescriptionJwtAuthenticator(JwtAuthenticatorConfig config, io.jsonwebtoken.SigningKeyResolver signingKeyResolver) -
Method Summary
Modifier and TypeMethodDescriptioncreateIdentity(String token) protected AuthenticationExceptionneedAuthentication(jakarta.ws.rs.container.ContainerRequestContext request, Optional<String> currentToken, String message) Methods inherited from class io.trino.server.security.AbstractBearerAuthenticator
authenticate, authenticate, extractToken
-
Constructor Details
-
JwtAuthenticator
@Inject public JwtAuthenticator(JwtAuthenticatorConfig config, io.jsonwebtoken.SigningKeyResolver signingKeyResolver)
-
-
Method Details
-
createIdentity
- Specified by:
createIdentityin classAbstractBearerAuthenticator- Throws:
UserMappingException
-
needAuthentication
protected AuthenticationException needAuthentication(jakarta.ws.rs.container.ContainerRequestContext request, Optional<String> currentToken, String message) - Specified by:
needAuthenticationin classAbstractBearerAuthenticator
-