public class ClientSecretCredentialBuilder extends AadCredentialBuilderBase<ClientSecretCredentialBuilder>
ClientSecretCredential
.ClientSecretCredential
Constructor and Description |
---|
ClientSecretCredentialBuilder() |
Modifier and Type | Method and Description |
---|---|
ClientSecretCredential |
build()
Creates a new
ClientCertificateCredential with the current configurations. |
ClientSecretCredentialBuilder |
clientSecret(String clientSecret)
Sets the client secret for the authentication.
|
ClientSecretCredentialBuilder |
regionalAuthority(RegionalAuthority regionalAuthority)
Specifies either the specific regional authority, or use
RegionalAuthority.AUTO_DISCOVER_REGION to
attempt to auto-detect the region. |
ClientSecretCredentialBuilder |
tokenCachePersistenceOptions(TokenCachePersistenceOptions tokenCachePersistenceOptions)
Configures the persistent shared token cache options and enables the persistent token cache which is disabled
by default.
|
authorityHost, clientId, executorService, tenantId
allowMultiTenantAuthentication, httpClient, httpPipeline, maxRetry, proxyOptions, retryTimeout
public ClientSecretCredentialBuilder clientSecret(String clientSecret)
clientSecret
- the secret value of the AAD application.public ClientSecretCredentialBuilder tokenCachePersistenceOptions(TokenCachePersistenceOptions tokenCachePersistenceOptions)
tokenCachePersistenceOptions
- the token cache configuration optionspublic ClientSecretCredentialBuilder regionalAuthority(RegionalAuthority regionalAuthority)
RegionalAuthority.AUTO_DISCOVER_REGION
to
attempt to auto-detect the region. If unset, a non-regional authority will be used. This argument should be used
only by applications deployed to Azure VMs.regionalAuthority
- the regional authoritypublic ClientSecretCredential build()
ClientCertificateCredential
with the current configurations.ClientSecretCredentialBuilder
with the current configurations.Copyright © 2021 Microsoft Corporation. All rights reserved.