Class UserLock


  • public class UserLock
    extends Object
    Utility class to manage user locking and time delays
    • 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.