@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class CredentialBasedAccessTokenProvider extends AccessTokenProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
OAUTH_CREDENTIAL_KEY |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken()
Obtain the access token that should be added to http connection's header.
|
abstract String |
getCredential() |
void |
setConf(Configuration conf)
Set the conf.
|
getConfpublic static final String OAUTH_CREDENTIAL_KEY
public abstract String getCredential()
public void setConf(Configuration conf)
AccessTokenProvidersetConf in interface ConfigurablesetConf in class AccessTokenProviderconf - New configuration.public String getAccessToken() throws IOException
AccessTokenProvidergetAccessToken in class AccessTokenProviderIOExceptionCopyright © 2024 Apache Software Foundation. All rights reserved.