All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.access.OrdinaryRole

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

public class OrdinaryRole
extends Role
SEMPER Access Control Service.

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

Version:
$Revision: 1.5 $ $Date: 1996/11/20 15:43:18 $
Author:
Jaap-Henk Hoepman (jhh@cwi.nl)
See Also:
Role, OrdinaryRoleInstance

Constructor Index

 o OrdinaryRole(String, String, int)
Create a new ordinary role template.

Method Index

 o createNewInstance(AccessControlHandle)
Create a role instance for this role template
 o getInfo()
Obtain a short string describing the role template and its parameters.

Constructors

 o OrdinaryRole
 public OrdinaryRole(String name,
                     String desc,
                     int timeout)
Create a new ordinary role template.

When an instance of this role is created, its timeout is obtained from the preference manager, group: Role-timeouts, field: the name of this role. The timeout parameter specified is used to create and initialize this preference in case it does not exist.

Parameters:
name - name of the role.
desc - the description of the role.
timeout - the timeout in milliseconds suggested for this role. A timeout of -1 corresponds to an infinite timeout.

Methods

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

Useful for logging.

Returns:
A short string describing the role template.
Overrides:
getInfo in class Role
 o createNewInstance
 public final RoleInstance createNewInstance(AccessControlHandle owner)
Create a role instance for this role template

Parameters:
owner - AccessControlHandle of the owner of the instance.
Returns:
instance of this ordinary role template, of class OrdinaryRoleInstance.

All Packages  Class Hierarchy  This Package  Previous  Next  Index