public class UsernamePasswordCredentialBuilder extends AadCredentialBuilderBase<UsernamePasswordCredentialBuilder>
UsernamePasswordCredential.UsernamePasswordCredential| Constructor and Description |
|---|
UsernamePasswordCredentialBuilder() |
| Modifier and Type | Method and Description |
|---|---|
UsernamePasswordCredential |
build()
Creates a new
UsernamePasswordCredential with the current configurations. |
UsernamePasswordCredentialBuilder |
password(String password)
Sets the password of the user.
|
UsernamePasswordCredentialBuilder |
tokenCachePersistenceOptions(TokenCachePersistenceOptions tokenCachePersistenceOptions)
Configures the persistent shared token cache options and enables the persistent token cache which is disabled
by default.
|
UsernamePasswordCredentialBuilder |
username(String username)
Sets the username of the user.
|
authorityHost, clientId, executorService, tenantIdconfiguration, httpClient, httpPipeline, maxRetry, proxyOptions, retryTimeoutpublic UsernamePasswordCredentialBuilder username(String username)
username - the username of the userpublic UsernamePasswordCredentialBuilder password(String password)
password - the password of the userpublic UsernamePasswordCredentialBuilder tokenCachePersistenceOptions(TokenCachePersistenceOptions tokenCachePersistenceOptions)
tokenCachePersistenceOptions - the token cache configuration optionspublic UsernamePasswordCredential build()
UsernamePasswordCredential with the current configurations.UsernamePasswordCredential with the current configurations.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.