Condividi tramite


UnsafeTokenCacheOptions Class

Definition

Options controlling the storage of the token cache.

public abstract class UnsafeTokenCacheOptions : Azure.Identity.TokenCachePersistenceOptions
type UnsafeTokenCacheOptions = class
    inherit TokenCachePersistenceOptions
Public MustInherit Class UnsafeTokenCacheOptions
Inherits TokenCachePersistenceOptions
Inheritance
UnsafeTokenCacheOptions

Constructors

UnsafeTokenCacheOptions()

Properties

Name

Name uniquely identifying the TokenCachePersistenceOptions.

(Inherited from TokenCachePersistenceOptions)
UnsafeAllowUnencryptedStorage

If set to true the token cache may be persisted as an unencrypted file if no OS level user encryption is available. When set to false the token cache will throw a CredentialUnavailableException in the event no OS level user encryption is available.

(Inherited from TokenCachePersistenceOptions)

Methods

RefreshCacheAsync()

Returns the bytes used to initialize the token cache. This would most likely have come from the TokenCacheUpdatedArgs. This implementation will get called by the default implementation of RefreshCacheAsync(TokenCacheRefreshArgs, CancellationToken). It is recommended to provide an implementation for RefreshCacheAsync(TokenCacheRefreshArgs, CancellationToken) rather than this method.

RefreshCacheAsync(TokenCacheRefreshArgs, CancellationToken)

Returns the bytes used to initialize the token cache. This would most likely have come from the TokenCacheUpdatedArgs. It is recommended that if this method is overriden, there is no need to provide a duplicate implementation for the parameterless RefreshCacheAsync().

TokenCacheUpdatedAsync(TokenCacheUpdatedArgs)

The delegate to be called when the Updated event fires.

Applies to