Class AzureTokenCredentialsAdapter
- java.lang.Object
-
- com.microsoft.rest.credentials.TokenCredentials
-
- com.microsoft.azure.credentials.AzureTokenCredentials
-
- com.microsoft.azure.toolkit.lib.auth.AzureTokenCredentialsAdapter
-
- All Implemented Interfaces:
com.microsoft.rest.credentials.ServiceClientCredentials
class AzureTokenCredentialsAdapter extends com.microsoft.azure.credentials.AzureTokenCredentialsConvert token credential in azure-identity to legacy AzureTokenCredentials Refers https://github.com/jongio/azidext/blob/master/java/src/main/java/com/azure/identity/extensions/AzureIdentityCredentialAdapter.java
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,com.azure.core.credential.AccessToken>accessTokenCacheprivate com.azure.core.credential.TokenCredentialtokenCredential
-
Constructor Summary
Constructors Constructor Description AzureTokenCredentialsAdapter(com.microsoft.azure.AzureEnvironment environment, String tenantId, com.azure.core.credential.TokenCredential tokenCredential)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.microsoft.azure.credentials.AzureTokenCredentialsfrom(com.azure.core.management.AzureEnvironment env, String tenantId, com.azure.core.credential.TokenCredential tokenCredential)StringgetToken(String endpoint)
-
-
-
Constructor Detail
-
AzureTokenCredentialsAdapter
AzureTokenCredentialsAdapter(com.microsoft.azure.AzureEnvironment environment, String tenantId, com.azure.core.credential.TokenCredential tokenCredential)
-
-
Method Detail
-
getToken
public String getToken(String endpoint)
- Specified by:
getTokenin classcom.microsoft.azure.credentials.AzureTokenCredentials
-
from
public static com.microsoft.azure.credentials.AzureTokenCredentials from(com.azure.core.management.AzureEnvironment env, String tenantId, com.azure.core.credential.TokenCredential tokenCredential)
-
-