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 Details

    • AbstractIdentityCache

      public AbstractIdentityCache(IdentityMapper identityMapper)
    • AbstractIdentityCache

      public AbstractIdentityCache(Bus bus, IdentityMapper identityMapper)
  • Method Details

    • mapPrincipal

      public Principal mapPrincipal(String sourceRealm, Principal sourcePrincipal, String targetRealm)
      Description copied from interface: IdentityMapper
      Map a principal in the source realm to the target realm
      Specified by:
      mapPrincipal in interface IdentityMapper
      Parameters:
      sourceRealm - the source realm of the Principal
      sourcePrincipal - the principal in the source realm
      targetRealm - 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()