Microsoft.Identity.Client.TokenCache
Token cache storing access and refresh tokens for accounts
This class is used in the constructors of PublicClientApplication and ConfidentialClientApplication.
In the case of ConfidentialClientApplication, two instances are used, one for the user token cache, and one for the application
token cache (in the case of applications using the client credential flows).
public TokenCache()
Constructor of a token cache. This constructor is left for compatibility with MSAL 2.x.
The recommended way to get a cache is by using UserTokenCache
and IConfidentialClientApplication.AppTokenCache once the app is created.
Sets a delegate to be notified after any library method accesses the cache. This gives an option to the
delegate to serialize a cache entry for the application and accounts specified in the TokenCacheNotificationArgs.
See https://aka.ms/msal-net-token-cache-serialization
Sets a delegate to be notified before any library method accesses the cache. This gives an option to the
delegate to deserialize a cache entry for the application and accounts specified in the TokenCacheNotificationArgs.
See https://aka.ms/msal-net-token-cache-serialization
Sets a delegate called before any library method writes to the cache. This gives an option to the delegate
to reload the cache state from a row in database and lock that row. That database row can then be unlocked in the delegate
registered with SetAfterAccess
Sets the security group to be used with the iOS Keychain. This function should not be used by external customers. It will be removed in a future version of MSAL.