public class DefaultIdentityCache extends Object implements IdentityCache
Default IdentityCache implementation.
| Constructor and Description |
|---|
DefaultIdentityCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
invalidate(Partition partition,
IdentityType identityType) |
Agent |
lookupAgent(Realm realm,
String loginName)
Returns the cached
Agent object for the specified id, in the specified Realm. |
Group |
lookupGroup(Partition partition,
String groupPath)
Returns the cached Group object with the specified group id, in the specified partition.
|
Role |
lookupRole(Partition partition,
String name)
Returns the cached Role object with the specified name, in the specified partition.
|
User |
lookupUser(Realm realm,
String loginName)
Returns the cached User object for the specified id, in the specified Realm.
|
void |
putAgent(Realm realm,
Agent agent)
Inserts the specified
Agent into the cache, within the specified Partition. |
void |
putGroup(Partition partition,
Group group)
Inserts the specified group into the cache, within the specified Partition.
|
void |
putRole(Partition partition,
Role role)
Inserts the specified role into the cache, within the specified Partition.
|
void |
putUser(Realm realm,
User user)
Inserts the specified user into the cache, for the specified Realm.
|
public User lookupUser(Realm realm, String loginName)
IdentityCachelookupUser in interface IdentityCachepublic Group lookupGroup(Partition partition, String groupPath)
IdentityCachelookupGroup in interface IdentityCachepublic Role lookupRole(Partition partition, String name)
IdentityCachelookupRole in interface IdentityCachepublic void putUser(Realm realm, User user)
IdentityCacheputUser in interface IdentityCachepublic void putGroup(Partition partition, Group group)
IdentityCacheputGroup in interface IdentityCachepublic void putRole(Partition partition, Role role)
IdentityCacheputRole in interface IdentityCachepublic Agent lookupAgent(Realm realm, String loginName)
IdentityCacheAgent object for the specified id, in the specified Realm. If the Agent has
not previously been cached, returns null.lookupAgent in interface IdentityCachepublic void putAgent(Realm realm, Agent agent)
IdentityCacheAgent into the cache, within the specified Partition.putAgent in interface IdentityCachepublic void invalidate(Partition partition, IdentityType identityType)
invalidate in interface IdentityCacheCopyright © 2018 JBoss by Red Hat. All rights reserved.