com.konakartadmin.bl
Class AdminSecurityMgr.LoginAttempt

java.lang.Object
  extended by com.konakartadmin.bl.AdminSecurityMgr.LoginAttempt
Enclosing class:
AdminSecurityMgr

protected class AdminSecurityMgr.LoginAttempt
extends java.lang.Object

Class that contains the login attempt, information for a user so that we can block hackers


Field Summary
private  long lastAttempt
           
private  int numberAttempts
           
 
Constructor Summary
AdminSecurityMgr.LoginAttempt()
           
 
Method Summary
 long getLastAttempt()
           
 int getNumberAttempts()
           
 boolean isBlocked()
          Register another login attempt
 void setLastAttempt(long lastAttempt)
           
 void setNumberAttempts(int numberAttempts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastAttempt

private long lastAttempt

numberAttempts

private int numberAttempts
Constructor Detail

AdminSecurityMgr.LoginAttempt

public AdminSecurityMgr.LoginAttempt()
Method Detail

isBlocked

public boolean isBlocked()
                  throws KKAdminException
Register another login attempt

Returns:
True if blocked
Throws:
KKAdminException

getLastAttempt

public long getLastAttempt()
Returns:
Returns the lastAttempt.

setLastAttempt

public void setLastAttempt(long lastAttempt)
Parameters:
lastAttempt - The lastAttempt to set.

getNumberAttempts

public int getNumberAttempts()
Returns:
Returns the numberAttempts.

setNumberAttempts

public void setNumberAttempts(int numberAttempts)
Parameters:
numberAttempts - The numberAttempts to set.


Copyright © 2011 DS Data Systems UK Ltd.