@ManagedResource public class MemoryIdentityCache extends Object implements IdentityCache, IdentityMapper, ManagedComponent
| Modifier | Constructor and Description |
|---|---|
protected |
MemoryIdentityCache() |
|
MemoryIdentityCache(Bus bus,
IdentityMapper identityMapper) |
|
MemoryIdentityCache(IdentityMapper identityMapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String user,
String realm,
Map<String,String> identities) |
void |
clear() |
Map<String,String> |
get(String user,
String realm) |
String |
getContent() |
long |
getMaxCacheItems() |
ObjectName |
getObjectName() |
MemoryIdentityCacheStatistics |
getStatistics() |
Principal |
mapPrincipal(String sourceRealm,
Principal sourcePrincipal,
String targetRealm)
Map a principal in the source realm to the target realm
|
void |
remove(String user,
String realm) |
void |
setMaxCacheItems(long maxCacheItems) |
void |
setStatistics(MemoryIdentityCacheStatistics stats) |
int |
size() |
protected MemoryIdentityCache()
public MemoryIdentityCache(IdentityMapper identityMapper)
public MemoryIdentityCache(Bus bus, IdentityMapper identityMapper)
public MemoryIdentityCacheStatistics getStatistics()
public void setStatistics(MemoryIdentityCacheStatistics stats)
public long getMaxCacheItems()
public void setMaxCacheItems(long maxCacheItems)
public void add(String user, String realm, Map<String,String> identities)
add in interface IdentityCache@ManagedOperation public Map<String,String> get(String user, String realm)
get in interface IdentityCachepublic void remove(String user, String realm)
remove in interface IdentityCache@ManagedOperation public void clear()
clear in interface IdentityCache@ManagedOperation public int size()
size in interface IdentityCache@ManagedOperation public String getContent()
public Principal mapPrincipal(String sourceRealm, Principal sourcePrincipal, String targetRealm)
IdentityMappermapPrincipal in interface IdentityMappersourceRealm - the source realm of the PrincipalsourcePrincipal - the principal in the source realmtargetRealm - the target realm of the Principalpublic ObjectName getObjectName() throws JMException
getObjectName in interface ManagedComponentJMExceptionApache CXF