org.hardtokenmgmt.core.token
Class PINInfo

java.lang.Object
  extended by org.hardtokenmgmt.core.token.PINInfo

public class PINInfo
extends java.lang.Object

Class used to give information about the status of a certain PIN and it's PUK codes.

Version:
$Id$
Author:
Philip Vendil 2006-aug-30

Constructor Summary
PINInfo(boolean loginRequired, boolean pINCountLow, boolean pINFinalTry, boolean pINLocked, boolean pUKCountLow, boolean pUKFinalTry, boolean pUKLocked)
           
 
Method Summary
 boolean isLoginRequired()
          Is true if login in required to the PIN area inorder to make writable operations
 boolean isPINCountLow()
          Indicates if at least on false login have been done.
 boolean isPINFinalTry()
          Indicates of this is the last attempt
 boolean isPINLocked()
          Indicates if the PIN is blocked
 boolean isPINOK()
          Returns true if PIN have the maximum number of tries left can be used to indicate that a login went successful Is the same as !
 boolean isPUKCountLow()
          Indicates if at least on false login have been done.
 boolean isPUKFinalTry()
          Indicates of this is the last attempt
 boolean isPUKLocked()
          Indicates if the PUK is blocked
 boolean isPUKOK()
          Returns true if PUK have the maximum number of tries left can be used to indicate that a login went successful Is the same as !
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PINInfo

public PINInfo(boolean loginRequired,
               boolean pINCountLow,
               boolean pINFinalTry,
               boolean pINLocked,
               boolean pUKCountLow,
               boolean pUKFinalTry,
               boolean pUKLocked)
Parameters:
loginRequired -
pINCountLow -
pINFinalTry -
pINLocked -
pUKCountLow -
pUKFinalTry -
pUKLocked -
Method Detail

isLoginRequired

public boolean isLoginRequired()
Is true if login in required to the PIN area inorder to make writable operations

Returns:
Returns the loginRequired.

isPINCountLow

public boolean isPINCountLow()
Indicates if at least on false login have been done.

Returns:
Returns the pINCountLow.

isPINFinalTry

public boolean isPINFinalTry()
Indicates of this is the last attempt

Returns:
Returns the pINFinalTry.

isPINLocked

public boolean isPINLocked()
Indicates if the PIN is blocked

Returns:
Returns the pINLocked.

isPINOK

public boolean isPINOK()
Returns true if PIN have the maximum number of tries left can be used to indicate that a login went successful Is the same as !(isPINCountLow || isPINFinalTry || isPINLocked)


isPUKCountLow

public boolean isPUKCountLow()
Indicates if at least on false login have been done.

Returns:
Returns the pUKCountLow.

isPUKFinalTry

public boolean isPUKFinalTry()
Indicates of this is the last attempt

Returns:
Returns the pUKFinalTry.

isPUKLocked

public boolean isPUKLocked()
Indicates if the PUK is blocked

Returns:
Returns the pUKLocked.

isPUKOK

public boolean isPUKOK()
Returns true if PUK have the maximum number of tries left can be used to indicate that a login went successful Is the same as !(isPUKCountLow || isPUKFinalTry || isPUKLocked)