TokenCachePersistenceOptions Class
- java.
lang. Object - com.
azure. identity. TokenCachePersistenceOptions
- com.
public final class TokenCachePersistenceOptions
Represents the Persistence Token Cache options used to setup the persistent access token cache. It allows users to enable the persistent token cache and optionally configure its name. The TokenCachePersistenceOptions can be configured directly on the Token Credential builders for the Token Credentials that support it.
Constructor Summary
Constructor | Description |
---|---|
TokenCachePersistenceOptions() |
Constructs an instance of Token |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getName()
Get the name uniquely identifying the cache. |
boolean |
isUnencryptedStorageAllowed()
Gets the status whether unencrypted storage is allowed for the persistent token cache. |
Token |
setName(String name)
Set the name uniquely identifying the cache. |
Token |
setUnencryptedStorageAllowed(boolean unencryptedStorageAllowed)
Allows to use an unprotected file specified by |
Methods inherited from java.lang.Object
Constructor Details
TokenCachePersistenceOptions
public TokenCachePersistenceOptions()
Constructs an instance of TokenCachePersistenceOptions.
Method Details
getName
public String getName()
Get the name uniquely identifying the cache.
Returns:
isUnencryptedStorageAllowed
public boolean isUnencryptedStorageAllowed()
Gets the status whether unencrypted storage is allowed for the persistent token cache.
Returns:
setName
public TokenCachePersistenceOptions setName(String name)
Set the name uniquely identifying the cache.
Parameters:
Returns:
setUnencryptedStorageAllowed
public TokenCachePersistenceOptions setUnencryptedStorageAllowed(boolean unencryptedStorageAllowed)
Allows to use an unprotected file specified by cacheFileLocation()
instead of Gnome keyring on Linux. This is restricted by default. For other platforms this setting currently doesn't apply.
Parameters:
Returns:
Applies to
Azure SDK for Java