Class InfinispanUserLoginFailureProvider
java.lang.Object
org.keycloak.models.sessions.infinispan.InfinispanUserLoginFailureProvider
- All Implemented Interfaces:
UserLoginFailureProvider
,Provider
- Author:
- Martin Kanis
-
Field Summary
Modifier and TypeFieldDescriptionprotected final SessionEventsSenderTransaction
protected final org.infinispan.Cache<LoginFailureKey,
SessionEntityWrapper<LoginFailureEntity>> protected final InfinispanChangelogBasedTransaction<LoginFailureKey,
LoginFailureEntity> protected final KeycloakSession
-
Constructor Summary
ConstructorDescriptionInfinispanUserLoginFailureProvider
(KeycloakSession session, RemoteCacheInvoker remoteCacheInvoker, org.infinispan.Cache<LoginFailureKey, SessionEntityWrapper<LoginFailureEntity>> loginFailureCache, SerializeExecutionsByKey<LoginFailureKey> serializer) -
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.protected void
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
-
session
-
loginFailureCache
protected final org.infinispan.Cache<LoginFailureKey,SessionEntityWrapper<LoginFailureEntity>> loginFailureCache -
loginFailuresTx
protected final InfinispanChangelogBasedTransaction<LoginFailureKey,LoginFailureEntity> loginFailuresTx -
clusterEventsSenderTx
-
-
Constructor Details
-
InfinispanUserLoginFailureProvider
public InfinispanUserLoginFailureProvider(KeycloakSession session, RemoteCacheInvoker remoteCacheInvoker, org.infinispan.Cache<LoginFailureKey, SessionEntityWrapper<LoginFailureEntity>> loginFailureCache, SerializeExecutionsByKey<LoginFailureKey> serializer)
-
-
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
-
removeAllLocalUserLoginFailuresEvent
-
close
public void close()
-