com.microsoft.aad.adal
Interface ITokenCacheStore

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultTokenCacheStore, FileTokenCacheStore, MemoryTokenCacheStore

public interface ITokenCacheStore
extends Serializable

Minimal interface needed by ADAL for cache.


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.
 

Method Detail

getItem

TokenCacheItem getItem(String key)
Get cache item.

Parameters:
key - CacheKey
Returns:
Token cache item

contains

boolean contains(String key)
Checks if cache key exists.

Parameters:
key - CacheKey
Returns:
true if it exists

setItem

void setItem(String key,
             TokenCacheItem item)
Sets item.

Parameters:
key - CacheKey
item - Cache item

removeItem

void removeItem(String key)
Removes item with key.

Parameters:
key - CacheKey

removeAll

void removeAll()
Removes all items from cache.



Copyright © 2003–2015. All rights reserved.