@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.
|
getConf
public static final String OAUTH_CREDENTIAL_KEY
public abstract String getCredential()
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
Copyright © 2023 Apache Software Foundation. All rights reserved.