All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.access.PassWordCapabilityInstance

java.lang.Object
   |
   +----semper.access.CapabilityInstance
           |
           +----semper.access.PassWordCapabilityInstance

public class PassWordCapabilityInstance
extends CapabilityInstance
SEMPER Access Control.

Implementation of the password capability instance. Password capabilities are always only enabled for a limited amount of time (their timeout), after which they can be enabled if the user enters the appropriate password.

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

Constructor Index

 o PassWordCapabilityInstance(PassWordCapability, AccessControlHandle)
Create a new PassWordCapability instance.

Method Index

 o enable()
Query the user to enable the capability instance.
 o getInfo()
Obtain a short string describing the capability instance and its parameters.
 o isEnabled()
Check whether the capability is still enabled.

Constructors

 o PassWordCapabilityInstance
 public PassWordCapabilityInstance(PassWordCapability template,
                                   AccessControlHandle owner)
Create a new PassWordCapability 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 capability instance and its parameters.

Useful for logging.

Returns:
A short string describing the capability instance.
Overrides:
getInfo in class CapabilityInstance
 o isEnabled
 protected boolean isEnabled()
Check whether the capability is still enabled.

Returns:
true if the capability is enabled, false if not.
Overrides:
isEnabled in class CapabilityInstance
See Also:
CapabilityInstance
 o enable
 public final boolean enable()
Query the user to enable the capability instance.

Returns:
true if the capability instance was enabled, false otherwise
Overrides:
enable in class CapabilityInstance

All Packages  Class Hierarchy  This Package  Previous  Next  Index