org.hardtokenmgmt.ui.pinlocked
Class PINLockedController
java.lang.Object
org.hardtokenmgmt.core.ui.BaseController
org.hardtokenmgmt.ui.pinlocked.PINLockedController
- All Implemented Interfaces:
- IController
public class PINLockedController
- extends BaseController
Controller of the Unlock PIN page, fetching the PUK from EJBCA and
unlocks the card and sets the newly entered PIN.
This pages are also accessed from the non-admin controllers.
Controller Memory Settings:
- VALIDTO : The validity of the token
- USERNAME : The name of the owner of the token
- SERIALNR : The serial number of the token.
- Version:
- $Id$
- Author:
- Philip Vendil 2007 feb 16
|
Method Summary |
void |
getControl(java.lang.String callingController)
Method called by the Main applet when it's time for this
controller to take control |
boolean |
isAuthorizedToController(java.security.cert.X509Certificate admin)
Method called by the main applet to check that
the administrator is authorized to this controller |
protected void |
switchControlTo(java.lang.String controllerClassPath)
Method that should be used when the controller is complete with its
operations and want to give the control to another controller |
protected void |
switchToFreshController(java.lang.String controllerClassPath)
Same as swithcControlTo but always creates a fresh controller. |
| Methods inherited from class org.hardtokenmgmt.core.ui.BaseController |
debug, debug, error, error, getAdministratorSettings, getControllerMemory, getControllerSetting, getControllerSetting, getGlobalSettings, getHTMFAdminInterface, getProcessableToken, getTokenManager, getView, getWSRAInterface, info, info, isAdmin, isNonAdmin |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PINTYPE_BASIC
public static final int PINTYPE_BASIC
- See Also:
- Constant Field Values
PINTYPE_SIGNATURE
public static final int PINTYPE_SIGNATURE
- See Also:
- Constant Field Values
PINLockedController
public PINLockedController()
getControl
public void getControl(java.lang.String callingController)
- Method called by the Main applet when it's time for this
controller to take control
- Parameters:
callingController - class path to the controller calling this controller or null
if this was the main controller.- See Also:
IController.getControl(String)
isAuthorizedToController
public boolean isAuthorizedToController(java.security.cert.X509Certificate admin)
- Method called by the main applet to check that
the administrator is authorized to this controller
- Parameters:
admin - the certificate of the loggen in administrator.
- Returns:
- true if the administrator is authorized to this controller
- See Also:
IController.isAuthorizedToController(X509Certificate)
switchControlTo
protected void switchControlTo(java.lang.String controllerClassPath)
- Description copied from class:
BaseController
- Method that should be used when the controller is complete with its
operations and want to give the control to another controller
- Overrides:
switchControlTo in class BaseController
switchToFreshController
protected void switchToFreshController(java.lang.String controllerClassPath)
- Description copied from class:
BaseController
- Same as swithcControlTo but always creates a fresh controller.
What it does is to remove the cached controller and then creates a new one.
- Overrides:
switchToFreshController in class BaseController