|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tyrex.security.container.helper.RolesRealm
Cached copy of a realm and all the roles in that realm. Implementations of
realms can extend this class and use it to add roles, list members in roles,
lookup roles and members in roles, and construct RoleCredentials
.
Nested Class Summary | |
(package private) static class |
RolesRealm.Role
Definition of a role is a name and members list. |
Constructor Summary | |
protected |
RolesRealm(java.lang.String realmName,
java.lang.String[] defaultRoles)
Construct a new realm. |
Method Summary | |
protected void |
addRole(java.lang.String roleName,
java.lang.String[] members)
Add a role or members to an existing role. |
java.lang.String |
getRealmName()
Returns the name of this realm. |
RoleCredentials |
getRoleCredentials(java.lang.String member)
Returns a role credentials for the given member. |
java.lang.String[] |
listMembers(java.lang.String roleName)
Lists all the members in the role. |
java.lang.String[] |
listRoles()
Lists all the roles in this realm. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected RolesRealm(java.lang.String realmName, java.lang.String[] defaultRoles)
realmName
- The realm namedefaultRoles
- List of default roles that all members are listed
in, or null if no default rolesMethod Detail |
public java.lang.String getRealmName()
public java.lang.String[] listRoles()
public java.lang.String[] listMembers(java.lang.String roleName)
roleName
- The role name
protected void addRole(java.lang.String roleName, java.lang.String[] members)
roleName
- The role namemembers
- The members listpublic RoleCredentials getRoleCredentials(java.lang.String member)
member
- The member
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |