com.microsoft.aad.adal
Class MemoryTokenCacheStore

java.lang.Object
  extended by com.microsoft.aad.adal.MemoryTokenCacheStore
All Implemented Interfaces:
ITokenCacheStore, Serializable

public class MemoryTokenCacheStore
extends Object
implements ITokenCacheStore

tokenCacheItem is not persisted. Memory cache does not keep static items.

See Also:
Serialized Form

Constructor Summary
MemoryTokenCacheStore()
          Creates MemoryTokenCacheStore.
 
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

MemoryTokenCacheStore

public MemoryTokenCacheStore()
Creates MemoryTokenCacheStore.

Method Detail

getItem

public TokenCacheItem getItem(String key)
Description copied from interface: ITokenCacheStore
Get cache item.

Specified by:
getItem in interface ITokenCacheStore
Parameters:
key - CacheKey
Returns:
Token cache item

setItem

public void setItem(String key,
                    TokenCacheItem item)
Description copied from interface: ITokenCacheStore
Sets item.

Specified by:
setItem in interface ITokenCacheStore
Parameters:
key - CacheKey
item - Cache item

removeItem

public void removeItem(String key)
Description copied from interface: ITokenCacheStore
Removes item with key.

Specified by:
removeItem in interface ITokenCacheStore
Parameters:
key - CacheKey

removeAll

public void removeAll()
Description copied from interface: ITokenCacheStore
Removes all items from cache.

Specified by:
removeAll in interface ITokenCacheStore

contains

public boolean contains(String key)
Description copied from interface: ITokenCacheStore
Checks if cache key exists.

Specified by:
contains in interface ITokenCacheStore
Parameters:
key - CacheKey
Returns:
true if it exists


Copyright © 2003–2015. All rights reserved.