@InterfaceAudience.Public @InterfaceStability.Evolving public class ConfRefreshTokenBasedAccessTokenProvider extends AccessTokenProvider
| Modifier and Type | Field and Description | 
|---|---|
| static String | OAUTH_REFRESH_TOKEN_EXPIRES_KEY | 
| static String | OAUTH_REFRESH_TOKEN_KEY | 
| Constructor and Description | 
|---|
| ConfRefreshTokenBasedAccessTokenProvider() | 
| ConfRefreshTokenBasedAccessTokenProvider(org.apache.hadoop.util.Timer timer) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getAccessToken()Obtain the access token that should be added to http connection's header. | 
| String | getRefreshToken() | 
| void | setConf(Configuration conf)Set the conf. | 
getConfpublic static final String OAUTH_REFRESH_TOKEN_KEY
public static final String OAUTH_REFRESH_TOKEN_EXPIRES_KEY
public ConfRefreshTokenBasedAccessTokenProvider()
public ConfRefreshTokenBasedAccessTokenProvider(org.apache.hadoop.util.Timer timer)
public void setConf(Configuration conf)
AccessTokenProvidersetConf in interface ConfigurablesetConf in class AccessTokenProviderconf - New configuration.public String getAccessToken() throws IOException
AccessTokenProvidergetAccessToken in class AccessTokenProviderIOExceptionpublic String getRefreshToken()
Copyright © 2023 Apache Software Foundation. All rights reserved.