All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.access.PassWordCapability

java.lang.Object
   |
   +----semper.access.Capability
           |
           +----semper.access.PassWordCapability

public class PassWordCapability
extends Capability
SEMPER Access Control.

Implementation of the password capability. Password capabilities are always disabled each time they have been used. For each new use they are enabled if the user enters the appropriate password.

Version:
$Revision: 1.9 $ $Date: 1997/12/19 14:22:54 $
Author:
Mogens Rom Andersen ([email protected])
See Also:
Capability

Constructor Index

 o PassWordCapability(String, String, String)
Create a new PassWordCapability.

Method Index

 o getInfo()
Obtain a short string describing the capability and its parameters.
 o getPassword()
Get the password for this capability.
 o verify()
Verify a password capability.

Constructors

 o PassWordCapability
 public PassWordCapability(String name,
                           String desc,
                           String crypt)
Create a new PassWordCapability.

When a capability of this type is created, its password are obtained from the preference manager, group: Capability-passwords, field: the name of this capability. The password parameters specified are used to create and initialize the preference group in case it does not exist.

Parameters:
name - name of the capability.
desc - description of the capability.
crypt - the encrypted password suggested for this role

Methods

 o getPassword
 public final String getPassword()
Get the password for this capability.

Returns:
the password for this capability.
 o getInfo
 public String getInfo()
Obtain a short string describing the capability and its parameters.

Useful for logging.

Returns:
A short string describing the capability.
Overrides:
getInfo in class Capability
 o verify
 public final boolean verify()
Verify a password capability.

Prompt user for a password and return true if this password match the password associated with the capability.

Overrides:
verify in class Capability

All Packages  Class Hierarchy  This Package  Previous  Next  Index