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 AssociationCache
public void put(String key, org.openid4java.association.Association association)
put
in interface AssociationCache
key
- key to store the association underassociation
- association to storepublic org.openid4java.association.Association get(String key)
get
in interface AssociationCache
key
- the key of the association to fetchpublic void remove(String key)
remove
in interface AssociationCache
key
- the key that the association to delete is stored underCopyright © 2020 Atlassian. All rights reserved.