UsernamePasswordCredentialBuilder.tokenCachePersistenceOptions(TokenCachePersistenceOptions tokenCachePersistenceOptions) Method

Definition

Configures the persistent shared token cache options and enables the persistent token cache which is disabled by default. If configured, the credential will store tokens in a cache persisted to the machine, protected to the current user, which can be shared by other credentials and processes.

public UsernamePasswordCredentialBuilder tokenCachePersistenceOptions(TokenCachePersistenceOptions tokenCachePersistenceOptions)

Parameters

tokenCachePersistenceOptions
TokenCachePersistenceOptions

the token cache configuration options

Returns

An updated instance of this builder with the token cache options configured.

Applies to