Package com.azure.identity
Class OnBehalfOfCredential
java.lang.Object
com.azure.identity.OnBehalfOfCredential
- All Implemented Interfaces:
com.azure.core.credential.TokenCredential
public class OnBehalfOfCredential
extends Object
implements com.azure.core.credential.TokenCredential
An AAD credential that acquires a token with a client secret and user assertion for an AAD application
on behalf of a user principal.
-
Method Summary
Modifier and TypeMethodDescriptionMono<com.azure.core.credential.AccessToken>
getToken
(com.azure.core.credential.TokenRequestContext request) com.azure.core.credential.AccessToken
getTokenSync
(com.azure.core.credential.TokenRequestContext request)
-
Method Details
-
getToken
public Mono<com.azure.core.credential.AccessToken> getToken(com.azure.core.credential.TokenRequestContext request) - Specified by:
getToken
in interfacecom.azure.core.credential.TokenCredential
-
getTokenSync
public com.azure.core.credential.AccessToken getTokenSync(com.azure.core.credential.TokenRequestContext request) - Specified by:
getTokenSync
in interfacecom.azure.core.credential.TokenCredential
-