public class InMemoryAssociationCache extends Object implements AssociationCache
| Constructor and Description |
|---|
InMemoryAssociationCache(String cacheId)
Creates a new cache with the specific id; the provided id will be used as part of the output of
nextId() |
| Modifier and Type | Method and Description |
|---|---|
org.openid4java.association.Association |
get(String key) |
String |
nextId() |
void |
put(String key,
org.openid4java.association.Association association) |
void |
remove(String key) |
public String nextId()
nextId in interface AssociationCachepublic void put(String key, org.openid4java.association.Association association)
put in interface AssociationCachekey - key to store the association underassociation - association to storepublic org.openid4java.association.Association get(String key)
get in interface AssociationCachekey - the key of the association to fetchpublic void remove(String key)
remove in interface AssociationCachekey - the key that the association to delete is stored underCopyright © 2022 Atlassian. All rights reserved.