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 $ $Date: 1996/08/21 07:40:35 $
- Author:
- Jaap-Henk Hoepman ([email protected])
- See Also:
- UnlockedRole, SecureRole, RoleTest
-
description
- Description of the role.
-
locked
- Records whether the role is locked or not
-
Role(String)
- Create a new role.
-
finish()
- Finish with a role.
-
getAllRoles()
- Get all existing roles.
-
islocked()
- Check if the role is locked.
-
lock()
- Lock the role.
-
unlock()
- Unlock the role.
locked
protected boolean locked
- Records whether the role is locked or not
description
public String description
- Description of the role. Used in dialogs with the user, e.g. when
asked to unlock the role.
Role
public Role(String desc)
- Create a new role.
- Parameters:
- desc - the description of the role
(used when locking or unlocking roles).
getAllRoles
public static Enumeration getAllRoles()
- Get all existing roles.
- Returns:
- an Enumeration of all existing Role's.
- See Also:
- Enumeration
finish
public void finish()
- Finish with a role. Clears all internal references to a role so that
it can be garbage collected.
islocked
public boolean islocked()
- Check if the role is locked.
- Returns:
- true if the role is locked, false otherwise.
lock
public void lock()
- Lock the role.
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