Package com.azure.identity
Class ManagedIdentityCredential
java.lang.Object
com.azure.identity.ManagedIdentityCredential
- All Implemented Interfaces:
com.azure.core.credential.TokenCredential
public final class ManagedIdentityCredential
extends Object
implements com.azure.core.credential.TokenCredential
The base class for Managed Service Identity token based credentials.
-
Method Details
-
getClientId
Gets the client ID of user assigned or system assigned identity.- Returns:
- the client ID of user assigned or system assigned identity.
-
getToken
public Mono<com.azure.core.credential.AccessToken> getToken(com.azure.core.credential.TokenRequestContext request) - Specified by:
getToken
in interfacecom.azure.core.credential.TokenCredential
-