All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.access.OrdinaryRoleInstance

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

public class OrdinaryRoleInstance
extends RoleInstance
SEMPER Access Control Service.

Implementation of ordinary role instances. Ordinary roles provide a low level of security and do _not_ require any type of authentication to be unlocked.

Version:
$Revision: 1.1 $ $Date: 1996/11/20 15:47:30 $
Author:
Jaap-Henk Hoepman (jhh@cwi.nl)
See Also:
RoleInstance, OrdinaryRole

Constructor Index

 o OrdinaryRoleInstance(OrdinaryRole, AccessControlHandle)
Create a new ordinary role instance.

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 OrdinaryRoleInstance
 public OrdinaryRoleInstance(OrdinaryRole template,
                             AccessControlHandle owner)
Create a new ordinary role instance.

The value for the timeout is obtained 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.

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