public class UsernameLoginFailureAdapter extends AbstractMongoAdapter<MongoUsernameLoginFailureEntity> implements UsernameLoginFailureModel
| Modifier and Type | Field and Description |
|---|---|
protected MongoUsernameLoginFailureEntity |
user |
invocationContext| Constructor and Description |
|---|
UsernameLoginFailureAdapter(MongoStoreInvocationContext invocationContext,
MongoUsernameLoginFailureEntity user) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearFailures() |
int |
getFailedLoginNotBefore() |
long |
getLastFailure() |
String |
getLastIPFailure() |
protected MongoUsernameLoginFailureEntity |
getMongoEntity() |
int |
getNumFailures() |
String |
getUsername() |
void |
incrementFailures() |
void |
setFailedLoginNotBefore(int notBefore) |
void |
setLastFailure(long lastFailure) |
void |
setLastIPFailure(String ip) |
equals, getMongoStore, hashCode, updateMongoEntityprotected MongoUsernameLoginFailureEntity user
public UsernameLoginFailureAdapter(MongoStoreInvocationContext invocationContext, MongoUsernameLoginFailureEntity user)
protected MongoUsernameLoginFailureEntity getMongoEntity()
getMongoEntity in class AbstractMongoAdapter<MongoUsernameLoginFailureEntity>public String getUsername()
getUsername in interface UsernameLoginFailureModelpublic int getFailedLoginNotBefore()
getFailedLoginNotBefore in interface UsernameLoginFailureModelpublic void setFailedLoginNotBefore(int notBefore)
setFailedLoginNotBefore in interface UsernameLoginFailureModelpublic int getNumFailures()
getNumFailures in interface UsernameLoginFailureModelpublic void incrementFailures()
incrementFailures in interface UsernameLoginFailureModelpublic void clearFailures()
clearFailures in interface UsernameLoginFailureModelpublic long getLastFailure()
getLastFailure in interface UsernameLoginFailureModelpublic void setLastFailure(long lastFailure)
setLastFailure in interface UsernameLoginFailureModelpublic String getLastIPFailure()
getLastIPFailure in interface UsernameLoginFailureModelpublic void setLastIPFailure(String ip)
setLastIPFailure in interface UsernameLoginFailureModelCopyright © 2014. All Rights Reserved.