ITokenCacheStore Interface
public interface ITokenCacheStore
Minimal interface needed by ADAL for cache.
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String key)
Checks if cache key exists. |
Iterator<Token |
getAll()
Get all cached token items. |
Token |
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. |
Method Details
contains
public boolean contains(String key)
Checks if cache key exists.
Parameters:
Returns:
getAll
public Iterator
Get all cached token items.
Returns:
Iterator of TokenCacheItems in the cache.
getItem
public TokenCacheItem getItem(String key)
Get cache item.
Parameters:
Returns:
removeAll
public void removeAll()
Removes all items from cache.
removeItem
setItem
public void setItem(String key, TokenCacheItem item)
Sets item.
Parameters:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for