Package org.apache.cxf.sts.cache
Class MemoryIdentityCache
- java.lang.Object
-
- org.apache.cxf.sts.cache.AbstractIdentityCache
-
- org.apache.cxf.sts.cache.MemoryIdentityCache
-
- All Implemented Interfaces:
ManagedComponent,IdentityCache,IdentityMapper
@ManagedResource public class MemoryIdentityCache extends AbstractIdentityCache
A simple in-memory HashMap based cache to cache identities in different realms where the relationship is of type FederateIdentity.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMemoryIdentityCache()MemoryIdentityCache(Bus bus, IdentityMapper identityMapper)MemoryIdentityCache(IdentityMapper identityMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String user, String realm, Map<String,String> identities)Map<String,String>get(String user, String realm)StringgetContent()longgetMaxCacheItems()ObjectNamegetObjectName()voidremove(String user, String realm)voidsetMaxCacheItems(long maxCacheItems)-
Methods inherited from class org.apache.cxf.sts.cache.AbstractIdentityCache
getBus, getStatistics, mapPrincipal, setStatistics
-
-
-
-
Constructor Detail
-
MemoryIdentityCache
protected MemoryIdentityCache()
-
MemoryIdentityCache
public MemoryIdentityCache(IdentityMapper identityMapper)
-
MemoryIdentityCache
public MemoryIdentityCache(Bus bus, IdentityMapper identityMapper)
-
-
Method Detail
-
getMaxCacheItems
public long getMaxCacheItems()
-
setMaxCacheItems
public void setMaxCacheItems(long maxCacheItems)
-
getContent
@ManagedOperation public String getContent()
-
getObjectName
public ObjectName getObjectName() throws JMException
- Throws:
JMException
-
-