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)
IdentityCache
lookupUser
in interface IdentityCache
public Group lookupGroup(Partition partition, String groupPath)
IdentityCache
lookupGroup
in interface IdentityCache
public Role lookupRole(Partition partition, String name)
IdentityCache
lookupRole
in interface IdentityCache
public void putUser(Realm realm, User user)
IdentityCache
putUser
in interface IdentityCache
public void putGroup(Partition partition, Group group)
IdentityCache
putGroup
in interface IdentityCache
public void putRole(Partition partition, Role role)
IdentityCache
putRole
in interface IdentityCache
public Agent lookupAgent(Realm realm, String loginName)
IdentityCache
Agent
object for the specified id, in the specified Realm. If the Agent
has
not previously been cached, returns null.lookupAgent
in interface IdentityCache
public void putAgent(Realm realm, Agent agent)
IdentityCache
Agent
into the cache, within the specified Partition.putAgent
in interface IdentityCache
public void invalidate(Partition partition, IdentityType identityType)
invalidate
in interface IdentityCache
Copyright © 2018 JBoss by Red Hat. All rights reserved.