org.keycloak.adapters.undertow

## Class SessionManagementBridge

- java.lang.Object
- - org.keycloak.adapters.undertow.SessionManagementBridge

- All Implemented Interfaces:
    UserSessionManagement

      public class SessionManagementBridge
      extends Object
      implements UserSessionManagement

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected io.undertow.server.session.SessionManager` | `sessionManager`
    `protected UndertowUserSessionManagement` | `userSessionManagement`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SessionManagementBridge(UndertowUserSessionManagement userSessionManagement, io.undertow.server.session.SessionManager sessionManager)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getActiveSessions()`
    `Set<String>` | `getActiveUsers()`
    `Long` | `getUserLoginTime(String username)`
    `void` | `logoutAll()`
    `void` | `logoutKeycloakSession(String id)`
    `void` | `logoutUser(String user)`

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

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

- - ### Field Detail

    - #### userSessionManagement

          protected UndertowUserSessionManagement userSessionManagement

    - #### sessionManager

          protected io.undertow.server.session.SessionManager sessionManager

  - ### Constructor Detail

    - #### SessionManagementBridge

          public SessionManagementBridge(UndertowUserSessionManagement userSessionManagement,
                                 io.undertow.server.session.SessionManager sessionManager)

  - ### Method Detail

    - #### getActiveSessions

          public int getActiveSessions()

      Specified by:
        `getActiveSessions` in interface `UserSessionManagement`

    - #### getUserLoginTime

          public Long getUserLoginTime(String username)

      Specified by:
        `getUserLoginTime` in interface `UserSessionManagement`

    - #### getActiveUsers

          public Set<String> getActiveUsers()

      Specified by:
        `getActiveUsers` in interface `UserSessionManagement`

    - #### logoutAll

          public void logoutAll()

      Specified by:
        `logoutAll` in interface `UserSessionManagement`

    - #### logoutUser

          public void logoutUser(String user)

      Specified by:
        `logoutUser` in interface `UserSessionManagement`

    - #### logoutKeycloakSession

          public void logoutKeycloakSession(String id)

      Specified by:
        `logoutKeycloakSession` in interface `UserSessionManagement`

Copyright © 2014. All Rights Reserved.