MsalAbstractTokenCacheProvider Class

Definition

Token cache provider with default implementation.

public abstract class MsalAbstractTokenCacheProvider : Microsoft.Identity.Web.TokenCacheProviders.IMsalTokenCacheProvider
type MsalAbstractTokenCacheProvider = class
    interface IMsalTokenCacheProvider
Public MustInherit Class MsalAbstractTokenCacheProvider
Implements IMsalTokenCacheProvider
Inheritance
System.Object
MsalAbstractTokenCacheProvider
Derived
Implements

Constructors

MsalAbstractTokenCacheProvider(IDataProtector)

Constructor.

Methods

ClearAsync(String)

Clear the cache.

Initialize(ITokenCache)

Initializes the token cache serialization.

InitializeAsync(ITokenCache)

Initializes the token cache serialization.

OnBeforeWriteAsync(TokenCacheNotificationArgs)

If you want to ensure that no concurrent write takes place, use this notification to place a lock on the entry.

ReadCacheBytesAsync(String)

Method to be implemented by concrete cache serializers to Read the cache bytes.

ReadCacheBytesAsync(String, CacheSerializerHints)

Method to be overridden by concrete cache serializers to Read the cache bytes.

RemoveKeyAsync(String)

Method to be implemented by concrete cache serializers to remove an entry from the cache.

RemoveKeyAsync(String, CacheSerializerHints)

Method to be overridden by concrete cache serializers to remove an entry from the cache.

WriteCacheBytesAsync(String, Byte[])

Method to be implemented by concrete cache serializers to write the cache bytes.

WriteCacheBytesAsync(String, Byte[], CacheSerializerHints)

Method to be overridden by concrete cache serializers to write the cache bytes.

Applies to

See also