org.hardtokenmgmt.core.logon
Interface ILogonGUICallback

All Known Implementing Classes:
AutoLogonView, LogonView

public interface ILogonGUICallback

Interface that a Controller component in charge of administrator login to a hard token must implement. It contains method of how to display error messages and PIN-input.

Version:
$Id$
Author:
Philip Vendil

Method Summary
 void clearMessages()
          Clears all messages
 boolean confirmTrustChanged()
          This call will block until the user confirms or rejects the displayed dialog that the new CA cert should be trusted.
 void displayMessage(java.lang.String message, int row, boolean errorMessage)
          Method used to print a message in the GUI.
 boolean isPINInputVisible()
           
 void setTitleMessage(java.lang.String message)
           
 void showPINInput(boolean show)
          Tells the controller to show or hide the PIN Input components.
 

Method Detail

showPINInput

void showPINInput(boolean show)
Tells the controller to show or hide the PIN Input components.


isPINInputVisible

boolean isPINInputVisible()
Returns:
true if the PIN Input components are visible.

clearMessages

void clearMessages()
Clears all messages


displayMessage

void displayMessage(java.lang.String message,
                    int row,
                    boolean errorMessage)
Method used to print a message in the GUI.

Parameters:
message - key of message that is looked up in the language resources
row - which row to display the message on, it's up to the implementation to decide where in the GUI to put the information.
errorMessage - true if the message should be displayed as an error.

confirmTrustChanged

boolean confirmTrustChanged()
This call will block until the user confirms or rejects the displayed dialog that the new CA cert should be trusted.

Returns:
true if the user concur otherwise false.

setTitleMessage

void setTitleMessage(java.lang.String message)
Parameters:
message - the title message to display, untranslated key.