All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.access.SecureRole

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

public class SecureRole
extends Role
SEMPER Access Control Service

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

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

Constructor Index

 o SecureRole(String, String, int, String)
Create a new secure 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 SecureRole
 public SecureRole(String name,
                   String desc,
                   int timeout,
                   String crypt)
Create a new secure role template.

When an instance of this role is created, its timeout and password are obtained from the preference manager, group: Role-timeouts and group: Role-passwords, field: the name of this role. The timeout and password parameters specified are used to create and initialize these preferences in case they do not exist.

Parameters:
name - the 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.
crypt - the encrypted password suggested for this role

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 secure role, of class SecureRoleInstance.

All Packages  Class Hierarchy  This Package  Previous  Next  Index