Package com.azure.identity
Class TokenCachePersistenceOptions
java.lang.Object
com.azure.identity.TokenCachePersistenceOptions
Represents the Persistence Token Cache options used to setup the persistent access token cache.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the name uniquely identifying the cache.boolean
Gets the status whether unencrypted storage is allowed for the persistent token cache.Set the name uniquely identifying the cache.setUnencryptedStorageAllowed
(boolean unencryptedStorageAllowed) Allows to use an unprotected file specified bycacheFileLocation()
instead of Gnome keyring on Linux.
-
Constructor Details
-
TokenCachePersistenceOptions
public TokenCachePersistenceOptions()
-
-
Method Details
-
setUnencryptedStorageAllowed
Allows to use an unprotected file specified bycacheFileLocation()
instead of Gnome keyring on Linux. This is restricted by default. For other platforms this setting currently doesn't apply.- Parameters:
unencryptedStorageAllowed
- The flag indicating if unencrypted storage is allowed for the cache or not.- Returns:
- An updated instance of the options bag.
-
isUnencryptedStorageAllowed
public boolean isUnencryptedStorageAllowed()Gets the status whether unencrypted storage is allowed for the persistent token cache.- Returns:
- The status indicating if unencrypted storage is allowed for the persistent token cache.
-
setName
Set the name uniquely identifying the cache.- Parameters:
name
- the name of the cache- Returns:
- the updated instance of the cache.
-
getName
Get the name uniquely identifying the cache.- Returns:
- the name of the cache.
-