All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.access.TimeOutCapability

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

public class TimeOutCapability
extends Capability
SEMPER Access Control.

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

Version:
$Revision: 1.2 $ $Date: 1997/12/19 14:21:53 $
Author:
Mogens Rom Andersen ([email protected])
See Also:
Capability

Constructor Index

 o TimeOutCapability(String, String, int)
Create a new TimeOutCapability.

Method Index

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

Constructors

 o TimeOutCapability
 public TimeOutCapability(String name,
                          String desc,
                          int timeout)
Create a new TimeOutCapability.

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

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

Methods

 o getTimeout
 public final int getTimeout()
Get the timeout for this capability.

Returns:
the timeout 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 timeout capability.

Check if the allocated time interval has expires and return true if it has not expired.

Overrides:
verify in class Capability

All Packages  Class Hierarchy  This Package  Previous  Next  Index