## Uses of Interface
org.keycloak.models.UserSessionModel

- Packages that use UserSessionModel
  Package | Description
  --- | ---
  org.keycloak.account |
  org.keycloak.account.freemarker |
  org.keycloak.account.freemarker.model |
  org.keycloak.events |
  org.keycloak.models |
  org.keycloak.models.sessions.jpa |
  org.keycloak.models.sessions.mem |
  org.keycloak.models.sessions.mongo |
  org.keycloak.models.utils |
  org.keycloak.services.managers |
  org.keycloak.services.resources.flows |

- - ### Uses of UserSessionModel in org.keycloak.account

    Method parameters in org.keycloak.account with type arguments of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `AccountProvider` | AccountProvider.`setSessions(List<UserSessionModel> sessions)`

  - ### Uses of UserSessionModel in org.keycloak.account.freemarker

    Method parameters in org.keycloak.account.freemarker with type arguments of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `AccountProvider` | FreeMarkerAccountProvider.`setSessions(List<UserSessionModel> sessions)`

  - ### Uses of UserSessionModel in org.keycloak.account.freemarker.model

    Constructors in org.keycloak.account.freemarker.model with parameters of type UserSessionModel
    Constructor and Description
    `SessionsBean.UserSessionBean(RealmModel realm, UserSessionModel session)`

    Constructor parameters in org.keycloak.account.freemarker.model with type arguments of type UserSessionModel
    Constructor and Description
    `SessionsBean(RealmModel realm, List<UserSessionModel> sessions)`

  - ### Uses of UserSessionModel in org.keycloak.events

    Methods in org.keycloak.events with parameters of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `EventBuilder` | EventBuilder.`session(UserSessionModel session)`

  - ### Uses of UserSessionModel in org.keycloak.models

    Methods in org.keycloak.models that return UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `UserSessionModel` | UserSessionProvider.`createUserSession(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe)`
    `UserSessionModel` | ClientSessionModel.`getUserSession()`
    `UserSessionModel` | UserSessionProvider.`getUserSession(RealmModel realm, String id)`

    Methods in org.keycloak.models that return types with arguments of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `List<UserSessionModel>` | UserSessionProvider.`getUserSessions(RealmModel realm, ClientModel client)`
    `List<UserSessionModel>` | UserSessionProvider.`getUserSessions(RealmModel realm, ClientModel client, int firstResult, int maxResults)`
    `List<UserSessionModel>` | UserSessionProvider.`getUserSessions(RealmModel realm, UserModel user)`

    Methods in org.keycloak.models with parameters of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `ClientSessionModel` | UserSessionProvider.`createClientSession(RealmModel realm, ClientModel client, UserSessionModel userSession, String redirectUri, String state, Set<String> roles)`
    `void` | UserSessionProvider.`removeUserSession(RealmModel realm, UserSessionModel session)`

  - ### Uses of UserSessionModel in org.keycloak.models.sessions.jpa

    Methods in org.keycloak.models.sessions.jpa that return UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `UserSessionModel` | JpaUserSessionProvider.`createUserSession(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe)`
    `UserSessionModel` | ClientSessionAdapter.`getUserSession()`
    `UserSessionModel` | JpaUserSessionProvider.`getUserSession(RealmModel realm, String id)`

    Methods in org.keycloak.models.sessions.jpa that return types with arguments of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `List<UserSessionModel>` | JpaUserSessionProvider.`getUserSessions(RealmModel realm, ClientModel client)`
    `List<UserSessionModel>` | JpaUserSessionProvider.`getUserSessions(RealmModel realm, ClientModel client, int firstResult, int maxResults)`
    `List<UserSessionModel>` | JpaUserSessionProvider.`getUserSessions(RealmModel realm, UserModel user)`

    Methods in org.keycloak.models.sessions.jpa with parameters of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `ClientSessionModel` | JpaUserSessionProvider.`createClientSession(RealmModel realm, ClientModel client, UserSessionModel userSession, String redirectUri, String state, Set<String> roles)`
    `void` | JpaUserSessionProvider.`removeUserSession(RealmModel realm, UserSessionModel session)`

  - ### Uses of UserSessionModel in org.keycloak.models.sessions.mem

    Classes in org.keycloak.models.sessions.mem that implement UserSessionModel
    Modifier and Type | Class and Description
    --- | ---
    `class` | `UserSessionAdapter`

    Methods in org.keycloak.models.sessions.mem that return UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `UserSessionModel` | MemUserSessionProvider.`createUserSession(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe)`
    `UserSessionModel` | ClientSessionAdapter.`getUserSession()`
    `UserSessionModel` | MemUserSessionProvider.`getUserSession(RealmModel realm, String id)`

    Methods in org.keycloak.models.sessions.mem that return types with arguments of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `List<UserSessionModel>` | MemUserSessionProvider.`getUserSessions(RealmModel realm, ClientModel client)`
    `List<UserSessionModel>` | MemUserSessionProvider.`getUserSessions(RealmModel realm, ClientModel client, int firstResult, int maxResults)`
    `List<UserSessionModel>` | MemUserSessionProvider.`getUserSessions(RealmModel realm, UserModel user)`

    Methods in org.keycloak.models.sessions.mem with parameters of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `ClientSessionModel` | MemUserSessionProvider.`createClientSession(RealmModel realm, ClientModel client, UserSessionModel userSession, String redirectUri, String state, Set<String> roles)`
    `void` | MemUserSessionProvider.`removeUserSession(RealmModel realm, UserSessionModel session)`

  - ### Uses of UserSessionModel in org.keycloak.models.sessions.mongo

    Methods in org.keycloak.models.sessions.mongo that return UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `UserSessionModel` | MongoUserSessionProvider.`createUserSession(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe)`
    `UserSessionModel` | ClientSessionAdapter.`getUserSession()`
    `UserSessionModel` | MongoUserSessionProvider.`getUserSession(RealmModel realm, String id)`

    Methods in org.keycloak.models.sessions.mongo that return types with arguments of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `List<UserSessionModel>` | MongoUserSessionProvider.`getUserSessions(RealmModel realm, ClientModel client)`
    `List<UserSessionModel>` | MongoUserSessionProvider.`getUserSessions(RealmModel realm, ClientModel client, int firstResult, int maxResults)`
    `List<UserSessionModel>` | MongoUserSessionProvider.`getUserSessions(RealmModel realm, UserModel user)`

    Methods in org.keycloak.models.sessions.mongo with parameters of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `ClientSessionModel` | MongoUserSessionProvider.`createClientSession(RealmModel realm, ClientModel client, UserSessionModel userSession, String redirectUri, String state, Set<String> roles)`
    `void` | MongoUserSessionProvider.`removeUserSession(RealmModel realm, UserSessionModel session)`

  - ### Uses of UserSessionModel in org.keycloak.models.utils

    Methods in org.keycloak.models.utils with parameters of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `static UserSessionRepresentation` | ModelToRepresentation.`toRepresentation(UserSessionModel session)`

  - ### Uses of UserSessionModel in org.keycloak.services.managers

    Methods in org.keycloak.services.managers that return UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `UserSessionModel` | Auth.`getSession()`
    `UserSessionModel` | AuthenticationManager.AuthResult.`getSession()`

    Methods in org.keycloak.services.managers with parameters of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `AccessCode` | TokenManager.`createAccessCode(String scopeParam, String state, String redirect, KeycloakSession session, RealmModel realm, ClientModel client, UserModel user, UserSessionModel userSession)`
    `AccessToken` | TokenManager.`createClientAccessToken(Set<RoleModel> requestedRoles, RealmModel realm, ClientModel client, UserModel user, UserSessionModel session)`
    `AccessToken` | AuthenticationManager.`createIdentityToken(RealmModel realm, UserModel user, UserSessionModel session)`
    `void` | AuthenticationManager.`createLoginCookie(RealmModel realm, UserModel user, UserSessionModel session, javax.ws.rs.core.UriInfo uriInfo, ClientConnection connection)`
    `TokenManager.AccessTokenResponseBuilder` | TokenManager.AccessTokenResponseBuilder.`generateAccessToken(String scopeParam, ClientModel client, UserModel user, UserSessionModel session)`
    `protected AccessToken` | TokenManager.`initToken(RealmModel realm, ClientModel client, UserModel user, UserSessionModel session)`
    `static boolean` | AuthenticationManager.`isSessionValid(RealmModel realm, UserSessionModel userSession)`
    `static void` | AuthenticationManager.`logout(KeycloakSession session, RealmModel realm, UserSessionModel userSession, javax.ws.rs.core.UriInfo uriInfo, ClientConnection connection)`
    `void` | ResourceAdminManager.`logoutSession(URI requestUri, RealmModel realm, UserSessionModel session)`
    `void` | ResourceAdminManager.`logoutUser(URI requestUri, RealmModel realm, String user, UserSessionModel session)`

    Constructors in org.keycloak.services.managers with parameters of type UserSessionModel
    Constructor and Description
    `Auth(RealmModel realm, AccessToken token, UserModel user, ClientModel client, UserSessionModel session, boolean cookie)`
    `AuthenticationManager.AuthResult(UserModel user, UserSessionModel session, AccessToken token)`

  - ### Uses of UserSessionModel in org.keycloak.services.resources.flows

    Methods in org.keycloak.services.resources.flows with parameters of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `javax.ws.rs.core.Response` | OAuthFlows.`processAccessCode(String scopeParam, String state, String redirect, ClientModel client, UserModel user, UserSessionModel session, EventBuilder event)`
    `javax.ws.rs.core.Response` | OAuthFlows.`redirectAccessCode(AccessCode accessCode, UserSessionModel userSession, String state, String redirect)`

Copyright © 2014. All Rights Reserved.