tyrex.security.container
Class RoleCredentials
java.lang.Object
|
+--tyrex.security.container.RoleCredentials
- public final class RoleCredentials
- extends java.lang.Object
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.
- Version:
- $Revision: 1.5 $ $Date: 2001/03/19 17:39:02 $
- Author:
- Assaf Arkin
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 |
RoleCredentials
public RoleCredentials(java.lang.String[] roleNames)
- Construct a new credential with the given list of roles.
- Parameters:
roleNames
- Array of zero or more roles
RoleCredentials
public RoleCredentials(RoleCredentials[] creds)
- Construct a new credential consolidating roles from a list of
credentials.
- Parameters:
creds
- Array of zero or more credentials
isInRole
public boolean isInRole(java.lang.String roleName)
- Returns true if the principal is a member of the named role.
- Parameters:
roleName
- Role name- Returns:
- True if member of role
listRoles
public java.lang.String[] listRoles()
- Returns a list of all the role names.
- Returns:
- Array of zero or more roles
destroy
public void destroy()
- Destroy the credentials.
isDestroyed
public boolean isDestroyed()
- Returns true if these credentials have been destroyed.
Intalio Inc. (C) 1999-2001. All rights reserved.