@InterfaceAudience.Public @InterfaceStability.Evolving public class AzureADClientCredentialBasedAccesTokenProvider extends AccessTokenProvider
Modifier and Type | Field and Description |
---|---|
static String |
AAD_RESOURCE_KEY |
static String |
ACCESS_TOKEN |
static String |
CLIENT_CREDENTIALS |
static String |
CLIENT_ID |
static String |
CLIENT_SECRET |
static String |
EXPIRES_IN |
static String |
GRANT_TYPE |
static String |
OAUTH_CREDENTIAL_KEY |
static String |
RESOURCE_PARAM_NAME |
static com.squareup.okhttp.MediaType |
URLENCODED |
Modifier and Type | Method and Description |
---|---|
String |
getAccessToken()
Obtain the access token that should be added to http connection's header.
|
void |
setConf(Configuration conf)
Set the conf.
|
getConf
public static final String OAUTH_CREDENTIAL_KEY
public static final String AAD_RESOURCE_KEY
public static final String RESOURCE_PARAM_NAME
public static final String ACCESS_TOKEN
public static final String CLIENT_CREDENTIALS
public static final String CLIENT_ID
public static final String CLIENT_SECRET
public static final String EXPIRES_IN
public static final String GRANT_TYPE
public static final com.squareup.okhttp.MediaType URLENCODED
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 © 2016 Apache Software Foundation. All rights reserved.