Package com.google.cloud.hadoop.util
Interface AccessTokenProvider
- All Superinterfaces:
org.apache.hadoop.conf.Configurable
- All Known Implementing Classes:
TestingAccessTokenProvider
public interface AccessTokenProvider
extends org.apache.hadoop.conf.Configurable
A provider to provide access token, and upon access token expiration, the utility to refresh.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAn access token and its expiration time.static enumSupported access token types. -
Method Summary
Modifier and TypeMethodDescriptiondefault AccessTokenProvider.AccessTokengetAccessToken(List<AccessBoundary> accessBoundaries) voidrefresh()Force this provider to refresh its access token.Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Method Details
-
getAccessTokenType
- Returns:
- an access token type.
-
getAccessToken
AccessTokenProvider.AccessToken getAccessToken()- Returns:
- an access token.
-
getAccessToken
- Parameters:
accessBoundaries- access boundaries used to generate a downscoped access token.- Returns:
- an access token.
-
refresh
Force this provider to refresh its access token.- Throws:
IOException- when refresh fails.
-