public class TokenCredentialCache extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
IOTHUB_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[] IOTHUB_PUBLIC_SCOPE
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 © 2024. All rights reserved.