@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.
|
getConf
public 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)
AccessTokenProvider
setConf
in interface Configurable
setConf
in class AccessTokenProvider
conf
- New configuration.public String getAccessToken() throws IOException
AccessTokenProvider
getAccessToken
in class AccessTokenProvider
IOException
public String getRefreshToken()
Copyright © 2017 Apache Software Foundation. All rights reserved.