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, updateMongoEntity
protected MongoUsernameLoginFailureEntity user
public UsernameLoginFailureAdapter(MongoStoreInvocationContext invocationContext, MongoUsernameLoginFailureEntity user)
protected MongoUsernameLoginFailureEntity getMongoEntity()
getMongoEntity
in class AbstractMongoAdapter<MongoUsernameLoginFailureEntity>
public String getUsername()
getUsername
in interface UsernameLoginFailureModel
public int getFailedLoginNotBefore()
getFailedLoginNotBefore
in interface UsernameLoginFailureModel
public void setFailedLoginNotBefore(int notBefore)
setFailedLoginNotBefore
in interface UsernameLoginFailureModel
public int getNumFailures()
getNumFailures
in interface UsernameLoginFailureModel
public void incrementFailures()
incrementFailures
in interface UsernameLoginFailureModel
public void clearFailures()
clearFailures
in interface UsernameLoginFailureModel
public long getLastFailure()
getLastFailure
in interface UsernameLoginFailureModel
public void setLastFailure(long lastFailure)
setLastFailure
in interface UsernameLoginFailureModel
public String getLastIPFailure()
getLastIPFailure
in interface UsernameLoginFailureModel
public void setLastIPFailure(String ip)
setLastIPFailure
in interface UsernameLoginFailureModel
Copyright © 2015. All rights reserved.