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
public class JwtAuthenticator extends AbstractBearerAuthenticator
-
-
Constructor Summary
Constructors Constructor Description JwtAuthenticator(JwtAuthenticatorConfig config, io.jsonwebtoken.SigningKeyResolver signingKeyResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AuthenticationExceptionneedAuthentication(javax.ws.rs.container.ContainerRequestContext request, String message)protected io.jsonwebtoken.Jws<io.jsonwebtoken.Claims>parseClaimsJws(String jws)-
Methods inherited from class io.trino.server.security.AbstractBearerAuthenticator
authenticate, authenticate, extractToken
-
-
-
-
Constructor Detail
-
JwtAuthenticator
@Inject public JwtAuthenticator(JwtAuthenticatorConfig config, io.jsonwebtoken.SigningKeyResolver signingKeyResolver)
-
-
Method Detail
-
parseClaimsJws
protected io.jsonwebtoken.Jws<io.jsonwebtoken.Claims> parseClaimsJws(String jws)
- Specified by:
parseClaimsJwsin classAbstractBearerAuthenticator
-
needAuthentication
protected AuthenticationException needAuthentication(javax.ws.rs.container.ContainerRequestContext request, String message)
- Specified by:
needAuthenticationin classAbstractBearerAuthenticator
-
-