org.hardtokenmgmt.core.util
Class PINChecker

java.lang.Object
  extended by org.hardtokenmgmt.core.util.PINChecker

public class PINChecker
extends java.lang.Object

Help method used to check a PIN value and to set the appropriate output to two labels

Version:
$Id$
Author:
Philip Vendil 2007 maj 30

Constructor Summary
PINChecker()
           
 
Method Summary
static java.lang.String getPin(javax.swing.JPasswordField pinField, javax.swing.JPasswordField verifyPinField, java.lang.String pintype, javax.swing.JLabel pinEnterErrorLabel, javax.swing.JLabel pinRulesInfo, javax.swing.JComponent view)
          Method that returns the PIN entered in the password fields and updates the error and info labels with information about what's wrong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PINChecker

public PINChecker()
Method Detail

getPin

public static java.lang.String getPin(javax.swing.JPasswordField pinField,
                                      javax.swing.JPasswordField verifyPinField,
                                      java.lang.String pintype,
                                      javax.swing.JLabel pinEnterErrorLabel,
                                      javax.swing.JLabel pinRulesInfo,
                                      javax.swing.JComponent view)
Method that returns the PIN entered in the password fields and updates the error and info labels with information about what's wrong

Parameters:
pinField -
verifyPinField -
pintype - on the IToken or null if no info about which pin should be displayed
pinEnterErrorLabel -
pinRulesInfo -
view - of the componenet to update
Returns:
the entered PIN