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
-
PassWordCapabilityInstance(PassWordCapability, AccessControlHandle)
- Create a new PassWordCapability instance.
-
enable()
- Query the user to enable the capability instance.
-
getInfo()
- Obtain a short string describing the capability instance and its parameters.
-
isEnabled()
- Check whether the capability is still enabled.
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.
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
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
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