org.keycloak.models.sessions.jpa

## Class UsernameLoginFailureAdapter

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

- All Implemented Interfaces:
    UsernameLoginFailureModel

      public class UsernameLoginFailureAdapter
      extends Object
      implements UsernameLoginFailureModel

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected UsernameLoginFailureEntity` | `user`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `UsernameLoginFailureAdapter(UsernameLoginFailureEntity user)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `clearFailures()`
    `int` | `getFailedLoginNotBefore()`
    `long` | `getLastFailure()`
    `String` | `getLastIPFailure()`
    `int` | `getNumFailures()`
    `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`

- - ### Field Detail

    - #### user

          protected UsernameLoginFailureEntity user

  - ### Constructor Detail

    - #### UsernameLoginFailureAdapter

          public UsernameLoginFailureAdapter(UsernameLoginFailureEntity user)

  - ### Method Detail

    - #### getUsername

          public String getUsername()

      Specified by:
        `getUsername` in interface `UsernameLoginFailureModel`

    - #### 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 © 2014. All Rights Reserved.