public class TokenCredentialCache extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BEARER_TOKEN_PREFIX |
static String[] |
PROVISIONING_PUBLIC_SCOPE |
Constructor and Description |
---|
TokenCredentialCache(com.azure.core.credential.TokenCredential tokenCredential)
Construct a new TokenCredentialCache instance.
|
Modifier and Type | Method and Description |
---|---|
com.azure.core.credential.AccessToken |
getAccessToken()
Get a valid AAD authentication token.
|
com.azure.core.credential.TokenCredential |
getTokenCredential() |
String |
getTokenString()
Get the access token string, including the Bearer prefix.
|
public static final String[] PROVISIONING_PUBLIC_SCOPE
public static final String BEARER_TOKEN_PREFIX
public TokenCredentialCache(com.azure.core.credential.TokenCredential tokenCredential)
tokenCredential
- The tokenCredential instance that this cache will use to generate new tokens.public com.azure.core.credential.AccessToken getAccessToken()
public String getTokenString()
public com.azure.core.credential.TokenCredential getTokenCredential()
Copyright © 2022. All rights reserved.