Package org.apache.cxf.sts.cache
Class AbstractIdentityCache
- java.lang.Object
-
- org.apache.cxf.sts.cache.AbstractIdentityCache
-
- All Implemented Interfaces:
ManagedComponent,IdentityCache,IdentityMapper
- Direct Known Subclasses:
EHCacheIdentityCache,MemoryIdentityCache
public abstract class AbstractIdentityCache extends Object implements IdentityCache, IdentityMapper, ManagedComponent
-
-
Constructor Summary
Constructors Constructor Description AbstractIdentityCache(Bus bus, IdentityMapper identityMapper)AbstractIdentityCache(IdentityMapper identityMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BusgetBus()MemoryIdentityCacheStatisticsgetStatistics()PrincipalmapPrincipal(String sourceRealm, Principal sourcePrincipal, String targetRealm)Map a principal in the source realm to the target realmvoidsetStatistics(MemoryIdentityCacheStatistics stats)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cxf.sts.cache.IdentityCache
add, get, remove
-
Methods inherited from interface org.apache.cxf.management.ManagedComponent
getObjectName
-
-
-
-
Constructor Detail
-
AbstractIdentityCache
public AbstractIdentityCache(IdentityMapper identityMapper)
-
AbstractIdentityCache
public AbstractIdentityCache(Bus bus, IdentityMapper identityMapper)
-
-
Method Detail
-
mapPrincipal
public Principal mapPrincipal(String sourceRealm, Principal sourcePrincipal, String targetRealm)
Description copied from interface:IdentityMapperMap a principal in the source realm to the target realm- Specified by:
mapPrincipalin interfaceIdentityMapper- Parameters:
sourceRealm- the source realm of the PrincipalsourcePrincipal- the principal in the source realmtargetRealm- the target realm of the Principal- Returns:
- the principal in the target realm
-
getStatistics
public MemoryIdentityCacheStatistics getStatistics()
-
setStatistics
public void setStatistics(MemoryIdentityCacheStatistics stats)
-
getBus
protected Bus getBus()
-
-