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 |
tokenCachePersistenceOptions(TokenCachePersistenceOptions tokenCachePersistenceOptions)
Configures the persistent shared token cache options and enables the persistent token cache which is disabled
by default.
|
authorityHost, clientId, executorService, tenantIdconfiguration, httpClient, httpPipeline, maxRetry, proxyOptions, retryTimeoutpublic ClientSecretCredentialBuilder clientSecret(String clientSecret)
clientSecret - the secret value of the AAD application.public ClientSecretCredentialBuilder tokenCachePersistenceOptions(TokenCachePersistenceOptions tokenCachePersistenceOptions)
tokenCachePersistenceOptions - the token cache configuration optionspublic ClientSecretCredential build()
ClientCertificateCredential with the current configurations.ClientSecretCredentialBuilder with the current configurations.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.