public class OnBehalfOfCredential extends Object implements com.azure.core.credential.TokenCredential
Constructor and Description |
---|
OnBehalfOfCredential(String clientId,
String tenantId,
String clientSecret,
String certificatePath,
String certificatePassword,
com.azure.identity.implementation.IdentityClientOptions identityClientOptions)
Creates OnBehalfOfCredential with the specified AAD application details and client options.
|
Modifier and Type | Method and Description |
---|---|
Mono<com.azure.core.credential.AccessToken> |
getToken(com.azure.core.credential.TokenRequestContext request) |
public OnBehalfOfCredential(String clientId, String tenantId, String clientSecret, String certificatePath, String certificatePassword, com.azure.identity.implementation.IdentityClientOptions identityClientOptions)
tenantId
- the tenant ID of the applicationclientId
- the client ID of the applicationclientSecret
- the secret value of the AAD application.certificatePath
- the PEM file or PFX file containing the certificatecertificatePassword
- the password protecting the PFX fileidentityClientOptions
- the options for configuring the identity clientpublic Mono<com.azure.core.credential.AccessToken> getToken(com.azure.core.credential.TokenRequestContext request)
getToken
in interface com.azure.core.credential.TokenCredential
Copyright © 2021 Microsoft Corporation. All rights reserved.