|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.microsoft.aad.adal.FileTokenCacheStore
public class FileTokenCacheStore
Persisted cache that keeps cache in-memory until write operation. Filename should not be used on another instance of FiletokenCacheStore since read operations are not synced to file.
| Constructor Summary | |
|---|---|
FileTokenCacheStore(android.content.Context context,
String fileName)
It tracks data in memory until it writes that to a file with write operation. |
|
| Method Summary | |
|---|---|
boolean |
contains(String key)
Checks if cache key exists. |
TokenCacheItem |
getItem(String key)
Get cache item. |
void |
removeAll()
Removes all items from cache. |
void |
removeItem(String key)
Removes item with key. |
void |
setItem(String key,
TokenCacheItem item)
Sets item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileTokenCacheStore(android.content.Context context,
String fileName)
context - ContextfileName - filename should be unique to this instance since read
operations don't read from file directly. write operations
write to a file.| Method Detail |
|---|
public TokenCacheItem getItem(String key)
ITokenCacheStore
getItem in interface ITokenCacheStorekey - CacheKey
public boolean contains(String key)
ITokenCacheStore
contains in interface ITokenCacheStorekey - CacheKey
public void setItem(String key,
TokenCacheItem item)
ITokenCacheStore
setItem in interface ITokenCacheStorekey - CacheKeyitem - Cache itempublic void removeItem(String key)
ITokenCacheStore
removeItem in interface ITokenCacheStorekey - CacheKeypublic void removeAll()
ITokenCacheStore
removeAll in interface ITokenCacheStore
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||