Class PWResetAccountLockout
- java.lang.Object
-
- com.sun.identity.password.ui.model.PWResetAccountLockout
-
public class PWResetAccountLockout extends Object
PWResetAccountLockoutdefines 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 Summary
Constructors Constructor Description PWResetAccountLockout(PWResetModelImpl model)Constructs a password reset account lockout object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetWarnUserCount(String userDN)Returnss the warning count for the user.voidinvalidAnswer(AMIdentity amid)Stores the attempt of the user's password reset failure in the map.booleanisLockout(String userDN)Returns true if the user is locked out from resetting password.voidremoveUserLockoutEntry(String userDN)Removes the user DN from the fail map entry.
-
-
-
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 objectAccountLockInfoobject. 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
-
-