org.keycloak.models.sessions.infinispan

## Class UserSessionAdapter

- java.lang.Object
- - org.keycloak.models.sessions.infinispan.UserSessionAdapter

- All Implemented Interfaces:
    UserSessionModel

      public class UserSessionAdapter
      extends Object
      implements UserSessionModel

  Author:
    Stian Thorgersen

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `UserSessionAdapter(KeycloakSession session, InfinispanUserSessionProvider provider, org.infinispan.Cache<String,SessionEntity> cache, RealmModel realm, UserSessionEntity entity)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `String` | `getAuthMethod()`
    `List<ClientSessionModel>` | `getClientSessions()`
    `String` | `getId()`
    `String` | `getIpAddress()`
    `int` | `getLastSessionRefresh()`
    `String` | `getLoginUsername()`
    `int` | `getStarted()`
    `UserModel` | `getUser()`
    `int` | `hashCode()`
    `boolean` | `isRememberMe()`
    `void` | `setLastSessionRefresh(int lastSessionRefresh)`

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

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

- - ### Constructor Detail

    - #### UserSessionAdapter

          public UserSessionAdapter(KeycloakSession session,
                            InfinispanUserSessionProvider provider,
                            org.infinispan.Cache<String,SessionEntity> cache,
                            RealmModel realm,
                            UserSessionEntity entity)

  - ### Method Detail

    - #### getId

          public String getId()

      Specified by:
        `getId` in interface `UserSessionModel`

    - #### getUser

          public UserModel getUser()

      Specified by:
        `getUser` in interface `UserSessionModel`

    - #### getLoginUsername

          public String getLoginUsername()

      Specified by:
        `getLoginUsername` in interface `UserSessionModel`

    - #### getIpAddress

          public String getIpAddress()

      Specified by:
        `getIpAddress` in interface `UserSessionModel`

    - #### getAuthMethod

          public String getAuthMethod()

      Specified by:
        `getAuthMethod` in interface `UserSessionModel`

    - #### isRememberMe

          public boolean isRememberMe()

      Specified by:
        `isRememberMe` in interface `UserSessionModel`

    - #### getStarted

          public int getStarted()

      Specified by:
        `getStarted` in interface `UserSessionModel`

    - #### getLastSessionRefresh

          public int getLastSessionRefresh()

      Specified by:
        `getLastSessionRefresh` in interface `UserSessionModel`

    - #### setLastSessionRefresh

          public void setLastSessionRefresh(int lastSessionRefresh)

      Specified by:
        `setLastSessionRefresh` in interface `UserSessionModel`

    - #### getClientSessions

          public List<ClientSessionModel> getClientSessions()

      Specified by:
        `getClientSessions` in interface `UserSessionModel`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

Copyright © 2014. All Rights Reserved.