All Packages Class Hierarchy This Package Previous Next Index
Class semper.access.SecureRoleInstance
java.lang.Object
|
+----semper.access.RoleInstance
|
+----semper.access.SecureRoleInstance
- public class SecureRoleInstance
- extends RoleInstance
SEMPER Access Control Service
Implementation of secure role instances. Secure roles
provide a high level of security and _does_ require authentication to
be unlocked.
- Version:
- $Revision: 1.1 $ $Date: 1996/11/20 15:47:32 $
- Author:
- Jaap-Henk Hoepman ([email protected])
- See Also:
- RoleInstance, SecureRole
-
SecureRoleInstance(SecureRole, AccessControlHandle)
- Create a new secure role instance
Values for the timeout and the password are taken from the preferences.
-
getInfo()
- Obtain a short string describing the role instance and its parameters.
-
islocked()
- Check if the role is locked.
-
unlock()
- Unlock the role.
SecureRoleInstance
public SecureRoleInstance(SecureRole template,
AccessControlHandle owner)
- Create a new secure role 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 role instance and its parameters.
Useful for logging.
- Returns:
- A short string describing the role instance.
- Overrides:
- getInfo in class RoleInstance
islocked
public boolean islocked()
- Check if the role is locked. Overridden here to check the timeout
as well.
- Returns:
- true if the role is locked, false otherwise
- Overrides:
- islocked in class RoleInstance
unlock
public boolean unlock()
- Unlock the role. The user is given the choice to unlock the role, but must
provide a password to do so.
- Returns:
- true if the user succesfully unlocked the role, false otherwise.
- Overrides:
- unlock in class RoleInstance
All Packages Class Hierarchy This Package Previous Next Index