## 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.infinispan |
  org.keycloak.models.sessions.jpa |
  org.keycloak.models.sessions.mem |
  org.keycloak.models.sessions.mongo |
  org.keycloak.models.utils |
  org.keycloak.protocol |
  org.keycloak.protocol.oidc |
  org.keycloak.protocol.saml |
  org.keycloak.services.managers |

- - ### 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
    --- | ---
    `void` | UserSessionProvider.`removeUserSession(RealmModel realm, UserSessionModel session)`
    `void` | ClientSessionModel.`setUserSession(UserSessionModel userSession)`

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

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

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

    Methods in org.keycloak.models.sessions.infinispan with parameters of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | InfinispanUserSessionProvider.`removeUserSession(RealmModel realm, UserSessionModel session)`
    `void` | ClientSessionAdapter.`setUserSession(UserSessionModel userSession)`

  - ### 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
    --- | ---
    `void` | JpaUserSessionProvider.`removeUserSession(RealmModel realm, UserSessionModel session)`
    `void` | ClientSessionAdapter.`setUserSession(UserSessionModel userSession)`

  - ### 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
    --- | ---
    `void` | MemUserSessionProvider.`removeUserSession(RealmModel realm, UserSessionModel session)`
    `void` | ClientSessionAdapter.`setUserSession(UserSessionModel userSession)`

  - ### 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
    --- | ---
    `void` | MongoUserSessionProvider.`removeUserSession(RealmModel realm, UserSessionModel session)`
    `void` | ClientSessionAdapter.`setUserSession(UserSessionModel userSession)`

  - ### 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.protocol

    Methods in org.keycloak.protocol with parameters of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `javax.ws.rs.core.Response` | LoginProtocol.`authenticated(UserSessionModel userSession, ClientSessionCode accessCode)`
    `void` | LoginProtocol.`backchannelLogout(UserSessionModel userSession, ClientSessionModel clientSession)`

  - ### Uses of UserSessionModel in org.keycloak.protocol.oidc

    Methods in org.keycloak.protocol.oidc with parameters of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `static void` | TokenManager.`attachClientSession(UserSessionModel session, ClientSessionModel clientSession)`
    `javax.ws.rs.core.Response` | OpenIDConnect.`authenticated(UserSessionModel userSession, ClientSessionCode accessCode)`
    `void` | OpenIDConnect.`backchannelLogout(UserSessionModel userSession, ClientSessionModel clientSession)`
    `AccessToken` | TokenManager.`createClientAccessToken(Set<RoleModel> requestedRoles, RealmModel realm, ClientModel client, UserModel user, UserSessionModel session)`
    `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)`

  - ### Uses of UserSessionModel in org.keycloak.protocol.saml

    Methods in org.keycloak.protocol.saml with parameters of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `javax.ws.rs.core.Response` | SamlProtocol.`authenticated(UserSessionModel userSession, ClientSessionCode accessCode)`
    `void` | SamlProtocol.`backchannelLogout(UserSessionModel userSession, ClientSessionModel clientSession)`

  - ### 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
    --- | ---
    `static AccessToken` | AuthenticationManager.`createIdentityToken(RealmModel realm, UserModel user, UserSessionModel session)`
    `static void` | AuthenticationManager.`createLoginCookie(RealmModel realm, UserModel user, UserSessionModel session, javax.ws.rs.core.UriInfo uriInfo, ClientConnection connection)`
    `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)`
    `static javax.ws.rs.core.Response` | AuthenticationManager.`nextActionAfterAuthentication(KeycloakSession session, UserSessionModel userSession, ClientSessionModel clientSession, ClientConnection clientConnection, org.jboss.resteasy.spi.HttpRequest request, javax.ws.rs.core.UriInfo uriInfo, EventBuilder event)`
    `static javax.ws.rs.core.Response` | AuthenticationManager.`redirectAfterSuccessfulFlow(KeycloakSession session, RealmModel realm, UserSessionModel userSession, ClientSessionModel clientSession, org.jboss.resteasy.spi.HttpRequest request, javax.ws.rs.core.UriInfo uriInfo, ClientConnection clientConnection)`

    Method parameters in org.keycloak.services.managers with type arguments of type UserSessionModel
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | ResourceAdminManager.`logoutUserSessions(URI requestUri, RealmModel realm, List<UserSessionModel> userSessions)`

    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)`

Copyright © 2014. All Rights Reserved.