Class MapUserLoginFailureProvider
java.lang.Object
org.keycloak.models.map.loginFailure.MapUserLoginFailureProvider
- All Implemented Interfaces:
UserLoginFailureProvider
,Provider
- Author:
- Martin Kanis
-
Field Summary
Modifier and TypeFieldDescriptionprotected final MapStorage<MapUserLoginFailureEntity,
UserLoginFailureModel> -
Constructor Summary
ConstructorDescriptionMapUserLoginFailureProvider
(KeycloakSession session, MapStorage<MapUserLoginFailureEntity, UserLoginFailureModel> userLoginFailureStore) -
Method Summary
Modifier and TypeMethodDescriptionaddUserLoginFailure
(RealmModel realm, String userId) Adds aUserLoginFailureModel
for the given realm and user id.void
close()
getUserLoginFailure
(RealmModel realm, String userId) Returns theUserLoginFailureModel
for the given realm and user id.void
Removes all theUserLoginFailureModel
for the given realm.void
removeUserLoginFailure
(RealmModel realm, String userId) Removes aUserLoginFailureModel
for the given realm and user id.
-
Field Details
-
store
-
-
Constructor Details
-
MapUserLoginFailureProvider
public MapUserLoginFailureProvider(KeycloakSession session, MapStorage<MapUserLoginFailureEntity, UserLoginFailureModel> userLoginFailureStore)
-
-
Method Details
-
getUserLoginFailure
Description copied from interface:UserLoginFailureProvider
Returns theUserLoginFailureModel
for the given realm and user id.- Specified by:
getUserLoginFailure
in interfaceUserLoginFailureProvider
- Parameters:
realm
-RealmModel
userId
-String
Id of the user.- Returns:
- Returns the
UserLoginFailureModel
for the given realm and user id.
-
addUserLoginFailure
Description copied from interface:UserLoginFailureProvider
Adds aUserLoginFailureModel
for the given realm and user id.- Specified by:
addUserLoginFailure
in interfaceUserLoginFailureProvider
- Parameters:
realm
-RealmModel
userId
-String
Id of the user.- Returns:
- Returns newly created
UserLoginFailureModel
.
-
removeUserLoginFailure
Description copied from interface:UserLoginFailureProvider
Removes aUserLoginFailureModel
for the given realm and user id.- Specified by:
removeUserLoginFailure
in interfaceUserLoginFailureProvider
- Parameters:
realm
-RealmModel
userId
-String
Id of the user.
-
removeAllUserLoginFailures
Description copied from interface:UserLoginFailureProvider
Removes all theUserLoginFailureModel
for the given realm.- Specified by:
removeAllUserLoginFailures
in interfaceUserLoginFailureProvider
- Parameters:
realm
-RealmModel
-
close
public void close()
-