All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.access.BoundedCapabilityInstance

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

public class BoundedCapabilityInstance
extends CapabilityInstance
SEMPER Access Control.

Implementation of the bounded capability instance. Bounded capabilities are always only enabled for a limited amount of time (their timeout), after which they can be enabled by the user without authentication.

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

Constructor Index

 o BoundedCapabilityInstance(BoundedCapability, AccessControlHandle)
Create a new BoundedCapability instance.

Method Index

 o enable()
Enable this 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 BoundedCapabilityInstance
 public BoundedCapabilityInstance(BoundedCapability template,
                                  AccessControlHandle owner)
Create a new BoundedCapability instance.

The value for the timeout is 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. When called for the first time, the user is asked to enter a password. On subsequent calls the previously entered password remains valid until it expires after the timeout found in the preferences. If that happens the user must enter the password again.

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

Overrides:
enable in class CapabilityInstance

All Packages  Class Hierarchy  This Package  Previous  Next  Index