|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dyuproject.openid.IdentifierSelectUserCache
public final class IdentifierSelectUserCache
A cache for providers that have generic identifiers (not tied to a single user) E.g google and yahoo's openid_identifier parameters
Field Summary | |
---|---|
static String |
DEFAULT_RESOURCE_LOCATION
The default resource location (classpath). |
Constructor Summary | |
---|---|
IdentifierSelectUserCache()
|
|
IdentifierSelectUserCache(Map<String,String> mappings)
|
|
IdentifierSelectUserCache(String resourceLoc)
|
Method Summary | |
---|---|
OpenIdUser |
get(String key,
boolean clone)
Gets the user assoicated with the given key from the cache;
The flag clone is whether to create a different instance containting
the same properties (useful when the OpenIdUser is not deserialized but instead
held in memory). |
static void |
load(String resourceLoc,
Map<String,String> mappings)
Load the configured mappings from the properties file located at the given resourceLoc . |
void |
put(String key,
OpenIdUser user)
Puts the user associated with the key in the cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_RESOURCE_LOCATION
Constructor Detail |
---|
public IdentifierSelectUserCache()
public IdentifierSelectUserCache(String resourceLoc)
public IdentifierSelectUserCache(Map<String,String> mappings)
Method Detail |
---|
public static void load(String resourceLoc, Map<String,String> mappings)
resourceLoc
.
public OpenIdUser get(String key, boolean clone)
Discovery.UserCache
key
from the cache;
The flag clone
is whether to create a different instance containting
the same properties (useful when the OpenIdUser is not deserialized but instead
held in memory).
get
in interface Discovery.UserCache
public void put(String key, OpenIdUser user)
Discovery.UserCache
user
associated with the key
in the cache.
put
in interface Discovery.UserCache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |