Package io.trino.server.security.oauth2
Class OAuth2Authenticator
- java.lang.Object
-
- io.trino.server.security.AbstractBearerAuthenticator
-
- io.trino.server.security.oauth2.OAuth2Authenticator
-
- All Implemented Interfaces:
Authenticator
public class OAuth2Authenticator extends AbstractBearerAuthenticator
-
-
Constructor Summary
Constructors Constructor Description OAuth2Authenticator(OAuth2Service service, OAuth2Config config)
-
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
-
OAuth2Authenticator
@Inject public OAuth2Authenticator(OAuth2Service service, OAuth2Config config)
-
-
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
-
-