Class semper.access.Role
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.access.Role

java.lang.Object
   |
   +----semper.access.Role

public class Role
extends Object
SEMPER Class of role objects. Roles contain zero or more capabilities. Roles can be locked and unlocked by the user. If a role is unlocked, all its member capabilities are (potentially) valid.
Version:
$Revision: 1.3.2.1 $ $Date: 1996/12/05 18:40:18 $
Author:
Jaap-Henk Hoepman (jhh@cwi.nl)
See Also:
UnlockedRole, SecureRole, RoleTest

Variable Index

 o description
Description of the role.
 o locked
Records whether the role is locked or not

Constructor Index

 o Role(String)
Create a new role.

Method Index

 o finish()
Finish with a role.
 o getAllRoles()
Get all existing roles.
 o islocked()
Check if the role is locked.
 o lock()
Lock the role.
 o unlock()
Unlock the role.

Variables

 o locked
  protected boolean locked
Records whether the role is locked or not
 o description
  public String description
Description of the role. Used in dialogs with the user, e.g. when asked to unlock the role.

Constructors

 o Role
  public Role(String desc)
Create a new role.
Parameters:
desc - the description of the role (used when locking or unlocking roles).

Methods

 o getAllRoles
  public static Enumeration getAllRoles()
Get all existing roles.
Returns:
an Enumeration of all existing Role's.
See Also:
Enumeration
 o finish
  public void finish()
Finish with a role. Clears all internal references to a role so that it can be garbage collected.
 o islocked
  public boolean islocked()
Check if the role is locked.
Returns:
true if the role is locked, false otherwise.
 o lock
  public void lock()
Lock the role.
 o unlock
  public abstract boolean unlock()
Unlock the role. Depending on the type of role that instantiates this method, a different dialog (possibly requiring passphrases) is setup with the user to let her unlock the role.
Returns:
true if the user succesfully unlocked the role, false otherwise.
See Also:
UnlockedRole, SecureRole

All Packages  Class Hierarchy  This Package  Previous  Next  Index