org.keycloak.models.sessions.mem

## Class UsernameLoginFailureAdapter

- java.lang.Object
- - org.keycloak.models.sessions.mem.UsernameLoginFailureAdapter

- All Implemented Interfaces:
    UsernameLoginFailureModel

      public class UsernameLoginFailureAdapter
      extends Object
      implements UsernameLoginFailureModel

  Author:
    Stian Thorgersen

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `UsernameLoginFailureAdapter(UsernameLoginFailureEntity entity)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `clearFailures()`
    `int` | `getFailedLoginNotBefore()`
    `long` | `getLastFailure()`
    `String` | `getLastIPFailure()`
    `int` | `getNumFailures()`
    `String` | `getRealm()`
    `String` | `getUsername()`
    `void` | `incrementFailures()`
    `void` | `setFailedLoginNotBefore(int notBefore)`
    `void` | `setLastFailure(long lastFailure)`
    `void` | `setLastIPFailure(String ip)`

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

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

- - ### Constructor Detail

    - #### UsernameLoginFailureAdapter

          public UsernameLoginFailureAdapter(UsernameLoginFailureEntity entity)

  - ### Method Detail

    - #### getUsername

          public String getUsername()

      Specified by:
        `getUsername` in interface `UsernameLoginFailureModel`

    - #### getRealm

          public String getRealm()

    - #### getFailedLoginNotBefore

          public int getFailedLoginNotBefore()

      Specified by:
        `getFailedLoginNotBefore` in interface `UsernameLoginFailureModel`

    - #### setFailedLoginNotBefore

          public void setFailedLoginNotBefore(int notBefore)

      Specified by:
        `setFailedLoginNotBefore` in interface `UsernameLoginFailureModel`

    - #### getNumFailures

          public int getNumFailures()

      Specified by:
        `getNumFailures` in interface `UsernameLoginFailureModel`

    - #### incrementFailures

          public void incrementFailures()

      Specified by:
        `incrementFailures` in interface `UsernameLoginFailureModel`

    - #### clearFailures

          public void clearFailures()

      Specified by:
        `clearFailures` in interface `UsernameLoginFailureModel`

    - #### getLastFailure

          public long getLastFailure()

      Specified by:
        `getLastFailure` in interface `UsernameLoginFailureModel`

    - #### setLastFailure

          public void setLastFailure(long lastFailure)

      Specified by:
        `setLastFailure` in interface `UsernameLoginFailureModel`

    - #### getLastIPFailure

          public String getLastIPFailure()

      Specified by:
        `getLastIPFailure` in interface `UsernameLoginFailureModel`

    - #### setLastIPFailure

          public void setLastIPFailure(String ip)

      Specified by:
        `setLastIPFailure` in interface `UsernameLoginFailureModel`

Copyright © 2015. All Rights Reserved.