Class PWResetAccountLockout


  • public class PWResetAccountLockout
    extends Object
    PWResetAccountLockout defines a set for methods to lock and unlock the user's account if their attempt to reset password were unsuccessful after n of tries.
    • Constructor Detail

      • PWResetAccountLockout

        public PWResetAccountLockout​(PWResetModelImpl model)
        Constructs a password reset account lockout object.
        Parameters:
        model - model use in this class
    • Method Detail

      • invalidAnswer

        public void invalidAnswer​(AMIdentity amid)
        Stores the attempt of the user's password reset failure in the map. It uses the user DN as the key and stored object AccountLockInfo object. It will remove the user from hash map if user is physically locked out.
        Parameters:
        amid - The subject.
      • getWarnUserCount

        public int getWarnUserCount​(String userDN)
        Returnss the warning count for the user.
        Parameters:
        userDN - User distinguished name.
        Returns:
        the warning count for the user.
      • removeUserLockoutEntry

        public void removeUserLockoutEntry​(String userDN)
        Removes the user DN from the fail map entry.
        Parameters:
        userDN - user DN
      • isLockout

        public boolean isLockout​(String userDN)
        Returns true if the user is locked out from resetting password.
        Parameters:
        userDN - user DN
        Returns:
        true if the user is locked out