Class UserLoginFailureAdapter
- java.lang.Object
-
- org.keycloak.models.sessions.infinispan.UserLoginFailureAdapter
-
- All Implemented Interfaces:
UserLoginFailureModel
public class UserLoginFailureAdapter extends Object implements UserLoginFailureModel
- Author:
- Stian Thorgersen
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.UserLoginFailureModel
UserLoginFailureModel.SearchableFields
-
-
Constructor Summary
Constructors Constructor Description UserLoginFailureAdapter(InfinispanUserLoginFailureProvider provider, LoginFailureKey key, LoginFailureEntity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearFailures()
int
getFailedLoginNotBefore()
String
getId()
long
getLastFailure()
String
getLastIPFailure()
int
getNumFailures()
String
getUserId()
void
incrementFailures()
void
setFailedLoginNotBefore(int notBefore)
void
setLastFailure(long lastFailure)
void
setLastIPFailure(String ip)
-
-
-
Constructor Detail
-
UserLoginFailureAdapter
public UserLoginFailureAdapter(InfinispanUserLoginFailureProvider provider, LoginFailureKey key, LoginFailureEntity entity)
-
-
Method Detail
-
getUserId
public String getUserId()
- Specified by:
getUserId
in interfaceUserLoginFailureModel
-
getFailedLoginNotBefore
public int getFailedLoginNotBefore()
- Specified by:
getFailedLoginNotBefore
in interfaceUserLoginFailureModel
-
setFailedLoginNotBefore
public void setFailedLoginNotBefore(int notBefore)
- Specified by:
setFailedLoginNotBefore
in interfaceUserLoginFailureModel
-
getNumFailures
public int getNumFailures()
- Specified by:
getNumFailures
in interfaceUserLoginFailureModel
-
incrementFailures
public void incrementFailures()
- Specified by:
incrementFailures
in interfaceUserLoginFailureModel
-
clearFailures
public void clearFailures()
- Specified by:
clearFailures
in interfaceUserLoginFailureModel
-
getLastFailure
public long getLastFailure()
- Specified by:
getLastFailure
in interfaceUserLoginFailureModel
-
setLastFailure
public void setLastFailure(long lastFailure)
- Specified by:
setLastFailure
in interfaceUserLoginFailureModel
-
getLastIPFailure
public String getLastIPFailure()
- Specified by:
getLastIPFailure
in interfaceUserLoginFailureModel
-
setLastIPFailure
public void setLastIPFailure(String ip)
- Specified by:
setLastIPFailure
in interfaceUserLoginFailureModel
-
getId
public String getId()
- Specified by:
getId
in interfaceUserLoginFailureModel
-
-