public class SharedTokenCacheCredentialBuilder extends AadCredentialBuilderBase<SharedTokenCacheCredentialBuilder>
SharedTokenCacheCredential.SharedTokenCacheCredential| Constructor and Description |
|---|
SharedTokenCacheCredentialBuilder() |
| Modifier and Type | Method and Description |
|---|---|
SharedTokenCacheCredentialBuilder |
authenticationRecord(AuthenticationRecord authenticationRecord)
Sets the
AuthenticationRecord captured from a previous authentication. |
SharedTokenCacheCredential |
build()
Creates a new
SharedTokenCacheCredentialBuilder with the current configurations. |
SharedTokenCacheCredentialBuilder |
tokenCachePersistenceOptions(TokenCachePersistenceOptions tokenCachePersistenceOptions)
Configures the persistent shared token cache options and enables the persistent token cache which is disabled
by default.
|
SharedTokenCacheCredentialBuilder |
username(String username)
Sets the username for the account.
|
authorityHost, clientId, executorService, tenantIdconfiguration, httpClient, httpPipeline, maxRetry, proxyOptions, retryTimeoutpublic SharedTokenCacheCredentialBuilder username(String username)
username - The username for the account.public SharedTokenCacheCredentialBuilder tokenCachePersistenceOptions(TokenCachePersistenceOptions tokenCachePersistenceOptions)
tokenCachePersistenceOptions - the token cache configuration optionspublic SharedTokenCacheCredentialBuilder authenticationRecord(AuthenticationRecord authenticationRecord)
AuthenticationRecord captured from a previous authentication.authenticationRecord - the authentication record to be configured.public SharedTokenCacheCredential build()
SharedTokenCacheCredentialBuilder with the current configurations.SharedTokenCacheCredentialBuilder with the current configurations.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.