|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tyrex.security.container.RoleCredentials
Credential listing the principal's roles. These credentials are used by the container to determine if a principal is member of a given role, and also return that information to the application.
Role credentials are considered public.
Nested Class Summary | |
(package private) static class |
RoleCredentials.RoleEntry
|
Constructor Summary | |
RoleCredentials(RoleCredentials[] creds)
Construct a new credential consolidating roles from a list of credentials. |
|
RoleCredentials(java.lang.String[] roleNames)
Construct a new credential with the given list of roles. |
Method Summary | |
void |
destroy()
Destroy the credentials. |
boolean |
isDestroyed()
Returns true if these credentials have been destroyed. |
boolean |
isInRole(java.lang.String roleName)
Returns true if the principal is a member of the named role. |
java.lang.String[] |
listRoles()
Returns a list of all the role names. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RoleCredentials(java.lang.String[] roleNames)
roleNames
- Array of zero or more rolespublic RoleCredentials(RoleCredentials[] creds)
creds
- Array of zero or more credentialsMethod Detail |
public boolean isInRole(java.lang.String roleName)
roleName
- Role name
public java.lang.String[] listRoles()
public void destroy()
public boolean isDestroyed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |