public class LoginAttemptEntity extends Object implements LoginAttempt
| Constructor and Description |
|---|
LoginAttemptEntity() |
| Modifier and Type | Method and Description |
|---|---|
static LoginAttemptEntity |
create(String username,
long timeout) |
short |
getAttempts() |
Date |
getExpiredTime() |
String |
getId() |
Date |
getLatestTime() |
String |
getUsername() |
void |
increaseAttempt()
increase attempt & update the latest time to current time
|
void |
setAttempts(short attempts) |
void |
setExpiredTime(Date expiredTime) |
void |
setId(String id) |
void |
setLatestTime(Date latestTime) |
void |
setUsername(String username) |
String |
toString() |
public static LoginAttemptEntity create(String username, long timeout)
public String getId()
public void setId(String id)
public String getUsername()
getUsername in interface LoginAttemptpublic void setUsername(String username)
public short getAttempts()
getAttempts in interface LoginAttemptpublic void setAttempts(short attempts)
public Date getExpiredTime()
getExpiredTime in interface LoginAttemptpublic void setExpiredTime(Date expiredTime)
public Date getLatestTime()
getLatestTime in interface LoginAttemptpublic void setLatestTime(Date latestTime)
public void increaseAttempt()
LoginAttemptincreaseAttempt in interface LoginAttemptCopyright © 2018. All rights reserved.