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