Package io.trino.server.security.oauth2
Class OAuth2TokenExchange
- java.lang.Object
-
- io.trino.server.security.oauth2.OAuth2TokenExchange
-
- All Implemented Interfaces:
OAuth2TokenHandler
public class OAuth2TokenExchange extends Object implements OAuth2TokenHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOAuth2TokenExchange.TokenPoll
-
Field Summary
Fields Modifier and Type Field Description static io.airlift.units.DurationMAX_POLL_TIME
-
Constructor Summary
Constructors Constructor Description OAuth2TokenExchange(OAuth2Config config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddropToken(UUID authId)com.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()
-
-
-
Constructor Detail
-
OAuth2TokenExchange
@Inject public OAuth2TokenExchange(OAuth2Config config)
-
-
Method Detail
-
stop
@PreDestroy public void stop()
-
setAccessToken
public void setAccessToken(String authIdHash, String accessToken)
- Specified by:
setAccessTokenin interfaceOAuth2TokenHandler
-
setTokenExchangeError
public void setTokenExchangeError(String authIdHash, String message)
- Specified by:
setTokenExchangeErrorin interfaceOAuth2TokenHandler
-
getTokenPoll
public com.google.common.util.concurrent.ListenableFuture<OAuth2TokenExchange.TokenPoll> getTokenPoll(UUID authId)
-
dropToken
public void dropToken(UUID authId)
-
-