Method | Description | |
---|---|---|
Clear ( string clientId ) : void |
Clears the cache by deleting all the items. Note that if the cache is the default shared cache, clearing it would impact all the instances of PublicClientApplication which share that cache.
|
|
Deserialize ( byte state ) : void |
Deserializes state of the cache. The state should be the blob received earlier by calling the method Serialize.
|
|
ReadItems ( string clientId ) : IEnumerable |
Reads a copy of the list of all items in the cache.
|
|
Serialize ( ) : byte[] |
Serializes current state of the cache as a blob. Caller application can persist the blob and update the state of the cache later by passing that blob back in constructor or by calling method Deserialize.
|
|
TokenCache ( byte state ) : System |
Constructor receiving state of the cache
|
Method | Description | |
---|---|---|
CreateResultExFromCacheResultEx ( |
||
DeleteItem ( |
Deletes an item from the cache.
|
|
DeleteItemFromCache ( |
||
GetHomeObjectIdsFromCache ( string clientId ) : IEnumerable |
||
GetUniqueIdsFromCache ( string clientId ) : IEnumerable |
||
GetUsers ( string clientId ) : IEnumerable |
||
LoadFromCache ( string authority, HashSet |
||
LoadSingleItemFromCache ( string authority, HashSet |
||
OnAfterAccess ( |
||
OnBeforeAccess ( |
||
OnBeforeWrite ( |
||
QueryCache ( string authority, string clientId, |
||
QueryCache ( string authority, string clientId, string uniqueId, string displayableId, string rootId, string policy ) : AuthenticationResultEx>>.List |
Queries all values in the cache that meet the passed in values, plus the authority value that this AuthorizationContext was created with. In every case passing null results in a wildcard evaluation.
|
|
ReadItemsFromCache ( string clientId ) : List |
||
StoreToCache ( AuthenticationResultEx resultEx, string authority, string clientId, string policy, bool restrictToSingleUser, CallState callState ) : void | ||
TokenCache ( ) : System | ||
UpdateCachedRefreshTokens ( AuthenticationResultEx result, string authority, string clientId, string policy ) : void |
public Deserialize ( byte state ) : void | ||
state | byte | State of the cache as a blob |
return | void |
public ReadItems ( string clientId ) : IEnumerable |
||
clientId | string | |
return | IEnumerable |