Class UserLoginFailureAdapter
java.lang.Object
org.keycloak.models.sessions.infinispan.UserLoginFailureAdapter
- All Implemented Interfaces:
UserLoginFailureModel
- Author:
- Stian Thorgersen
-
Constructor Summary
ConstructorDescriptionUserLoginFailureAdapter
(InfinispanUserLoginFailureProvider provider, LoginFailureKey key, LoginFailureEntity entity) -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
getId()
long
int
int
void
void
void
setFailedLoginNotBefore
(int notBefore) void
setLastFailure
(long lastFailure) void
-
Constructor Details
-
UserLoginFailureAdapter
public UserLoginFailureAdapter(InfinispanUserLoginFailureProvider provider, LoginFailureKey key, LoginFailureEntity entity)
-
-
Method Details
-
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
-
getNumTemporaryLockouts
public int getNumTemporaryLockouts()- Specified by:
getNumTemporaryLockouts
in interfaceUserLoginFailureModel
-
incrementTemporaryLockouts
public void incrementTemporaryLockouts()- Specified by:
incrementTemporaryLockouts
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
- Specified by:
getLastIPFailure
in interfaceUserLoginFailureModel
-
setLastIPFailure
- Specified by:
setLastIPFailure
in interfaceUserLoginFailureModel
-
getId
- Specified by:
getId
in interfaceUserLoginFailureModel
-