All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.access.SecureRoleInstance

java.lang.Object
   |
   +----semper.access.RoleInstance
           |
           +----semper.access.SecureRoleInstance

public class SecureRoleInstance
extends RoleInstance
SEMPER Access Control Service

Implementation of secure role instances. Secure roles provide a high level of security and _does_ require authentication to be unlocked.

Version:
$Revision: 1.1 $ $Date: 1996/11/20 15:47:32 $
Author:
Jaap-Henk Hoepman ([email protected])
See Also:
RoleInstance, SecureRole

Constructor Index

 o SecureRoleInstance(SecureRole, AccessControlHandle)
Create a new secure role instance

Values for the timeout and the password are taken from the preferences.

Method Index

 o getInfo()
Obtain a short string describing the role instance and its parameters.
 o islocked()
Check if the role is locked.
 o unlock()
Unlock the role.

Constructors

 o SecureRoleInstance
 public SecureRoleInstance(SecureRole template,
                           AccessControlHandle owner)
Create a new secure role instance

Values for the timeout and the password are taken from the preferences.

Parameters:
template - the template for this instance
owner - AccessControlHandle of the owner of the instance.

Methods

 o getInfo
 public final String getInfo()
Obtain a short string describing the role instance and its parameters.

Useful for logging.

Returns:
A short string describing the role instance.
Overrides:
getInfo in class RoleInstance
 o islocked
 public boolean islocked()
Check if the role is locked. Overridden here to check the timeout as well.

Returns:
true if the role is locked, false otherwise
Overrides:
islocked in class RoleInstance
 o unlock
 public boolean unlock()
Unlock the role. The user is given the choice to unlock the role, but must provide a password to do so.

Returns:
true if the user succesfully unlocked the role, false otherwise.
Overrides:
unlock in class RoleInstance

All Packages  Class Hierarchy  This Package  Previous  Next  Index