Package org.openbravo.base.secureApp
Class UserLock
- java.lang.Object
-
- org.openbravo.base.secureApp.UserLock
-
public class UserLock extends Object
Utility class to manage user locking and time delays
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFail()
A new failed login attempt, increments the count of fails and blocks the user if neededvoid
delayResponse()
Delays the response of checking in case it is configured in Openbravo.properties (login.trial.delay.increment and login.trial.delay.max), and the current username has login attempts failed.boolean
isLockedUser()
-
-
-
Constructor Detail
-
UserLock
public UserLock(String userName)
-
-
Method Detail
-
addFail
public void addFail()
A new failed login attempt, increments the count of fails and blocks the user if needed
-
isLockedUser
public boolean isLockedUser()
-
delayResponse
public void delayResponse()
Delays the response of checking in case it is configured in Openbravo.properties (login.trial.delay.increment and login.trial.delay.max), and the current username has login attempts failed.
-
-