public class AccountLockoutInfo extends Object
AccountLockoutInfo
defines a set of methods that are required
by the common account lockout class.Constructor and Description |
---|
AccountLockoutInfo() |
Modifier and Type | Method and Description |
---|---|
long |
getActualLockoutDuration()
Returns the actual time the user needs be locked out.
|
int |
getFailCount()
Returns the current failure count stored in this object.
|
long |
getLastFailTime()
Returns the last fail time stored in this object.
|
long |
getLockoutAt()
Returns the lockout time stored in this object.
|
String |
getUserToken()
Returns the user token.
|
int |
getWarningCount()
Returns the warning count.
|
boolean |
isLockout()
Returns true if user was locked out
|
void |
setActualLockoutDuration(long aActualLockoutDuration)
Sets the actual Lockout Duration
|
void |
setFailCount(int count)
Sets the lockout failure count.
|
void |
setLastFailTime(long now)
Sets the last fail time.
|
void |
setLockout(boolean locked)
Sets the lockout status.
|
void |
setLockoutAt(long now)
Sets the lockout time.
|
void |
setUserToken(String token)
Sets the user token.
|
void |
setWarningCount(int userWarningCount)
Sets the warning count, this is the number of allowed failed attempts
after which account deactivation warning message will be displayed to the
user.
|
public int getFailCount()
public long getLastFailTime()
public long getLockoutAt()
public long getActualLockoutDuration()
public boolean isLockout()
public void setFailCount(int count)
count
- lockout failure countpublic void setLastFailTime(long now)
now
- time of failurepublic void setLockoutAt(long now)
now
- time that user is lockoutpublic void setActualLockoutDuration(long aActualLockoutDuration)
aActualLockoutDuration
- actul current lockout durationpublic void setLockout(boolean locked)
locked
- lockout flagpublic void setWarningCount(int userWarningCount)
userWarningCount
- is the warning countpublic int getWarningCount()
public void setUserToken(String token)
public String getUserToken()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.