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, tenantId
allowMultiTenantAuthentication, httpClient, httpPipeline, maxRetry, proxyOptions, retryTimeout
public 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.Copyright © 2021 Microsoft Corporation. All rights reserved.