org.keycloak.models.map.loginFailure

## Class MapUserLoginFailureProvider<K>

- java.lang.Object
- - org.keycloak.models.map.loginFailure.MapUserLoginFailureProvider<K>

- All Implemented Interfaces:
    UserLoginFailureProvider, Provider

      public class MapUserLoginFailureProvider<K>
      extends Object
      implements UserLoginFailureProvider

  Author:
    Martin Kanis

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected MapKeycloakTransaction<K,MapUserLoginFailureEntity<K>,UserLoginFailureModel>` | `userLoginFailureTx`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MapUserLoginFailureProvider(KeycloakSession session, MapStorage<K,MapUserLoginFailureEntity<K>,UserLoginFailureModel> userLoginFailureStore)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `UserLoginFailureModel` | `addUserLoginFailure(RealmModel realm, String userId)` Adds a `UserLoginFailureModel` for the given realm and user id.
    `void` | `close()`
    `UserLoginFailureModel` | `getUserLoginFailure(RealmModel realm, String userId)` Returns the `UserLoginFailureModel` for the given realm and user id.
    `void` | `removeAllUserLoginFailures(RealmModel realm)` Removes all the `UserLoginFailureModel` for the given realm.
    `void` | `removeUserLoginFailure(RealmModel realm, String userId)` Removes a `UserLoginFailureModel` for the given realm and user id.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### userLoginFailureTx

          protected final MapKeycloakTransaction<K,MapUserLoginFailureEntity<K>,UserLoginFailureModel> userLoginFailureTx

  - ### Constructor Detail

    - #### MapUserLoginFailureProvider

          public MapUserLoginFailureProvider(KeycloakSession session,
                                             MapStorage<K,MapUserLoginFailureEntity<K>,UserLoginFailureModel> userLoginFailureStore)

  - ### Method Detail

    - #### getUserLoginFailure

          public UserLoginFailureModel getUserLoginFailure(RealmModel realm,
                                                           String userId)

      Description copied from interface: `UserLoginFailureProvider`
      Returns the `UserLoginFailureModel` for the given realm and user id.
      Specified by:
        `getUserLoginFailure` in interface `UserLoginFailureProvider`
      Parameters:
        `realm` - `RealmModel`
        `userId` - `String` Id of the user.
      Returns:
        Returns the `UserLoginFailureModel` for the given realm and user id.

    - #### addUserLoginFailure

          public UserLoginFailureModel addUserLoginFailure(RealmModel realm,
                                                           String userId)

      Description copied from interface: `UserLoginFailureProvider`
      Adds a `UserLoginFailureModel` for the given realm and user id.
      Specified by:
        `addUserLoginFailure` in interface `UserLoginFailureProvider`
      Parameters:
        `realm` - `RealmModel`
        `userId` - `String` Id of the user.
      Returns:
        Returns newly created `UserLoginFailureModel`.

    - #### removeUserLoginFailure

          public void removeUserLoginFailure(RealmModel realm,
                                             String userId)

      Description copied from interface: `UserLoginFailureProvider`
      Removes a `UserLoginFailureModel` for the given realm and user id.
      Specified by:
        `removeUserLoginFailure` in interface `UserLoginFailureProvider`
      Parameters:
        `realm` - `RealmModel`
        `userId` - `String` Id of the user.

    - #### removeAllUserLoginFailures

          public void removeAllUserLoginFailures(RealmModel realm)

      Description copied from interface: `UserLoginFailureProvider`
      Removes all the `UserLoginFailureModel` for the given realm.
      Specified by:
        `removeAllUserLoginFailures` in interface `UserLoginFailureProvider`
      Parameters:
        `realm` - `RealmModel`

    - #### close

          public void close()

      Specified by:
        `close` in interface `Provider`

Copyright © 2021 JBoss by Red Hat. All rights reserved.