Package io.trino.server.security.oauth2
Class OAuth2TokenExchange
java.lang.Object
io.trino.server.security.oauth2.OAuth2TokenExchange
- All Implemented Interfaces:
OAuth2TokenHandler
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcom.google.common.util.concurrent.ListenableFuture<OAuth2TokenExchange.TokenPoll> getTokenPoll(UUID authId) static StringhashAuthId(UUID authId) voidsetAccessToken(String authIdHash, String accessToken) voidsetTokenExchangeError(String authIdHash, String message) voidstop()
-
Field Details
-
MAX_POLL_TIME
public static final io.airlift.units.Duration MAX_POLL_TIME
-
-
Constructor Details
-
OAuth2TokenExchange
-
-
Method Details
-
stop
@PreDestroy public void stop() -
setAccessToken
- Specified by:
setAccessTokenin interfaceOAuth2TokenHandler
-
setTokenExchangeError
- Specified by:
setTokenExchangeErrorin interfaceOAuth2TokenHandler
-
getTokenPoll
public com.google.common.util.concurrent.ListenableFuture<OAuth2TokenExchange.TokenPoll> getTokenPoll(UUID authId) -
dropToken
-
hashAuthId
-