Class SessionResource

java.lang.Object
org.keycloak.services.resources.account.SessionResource

public class SessionResource extends Object
Author:
Pedro Igor
  • Constructor Details

  • Method Details

    • toRepresentation

      @GET @Produces("application/json") public Stream<SessionRepresentation> toRepresentation()
      Get session information.
      Returns:
    • devices

      @Path("devices") @GET @Produces("application/json") public Collection<DeviceRepresentation> devices()
      Get device activity information based on the active sessions.
      Returns:
    • logout

      @DELETE @Produces("application/json") public jakarta.ws.rs.core.Response logout(@QueryParam("current") boolean removeCurrent)
      Remove sessions
      Parameters:
      removeCurrent - remove current session (default is false)
      Returns:
    • logout

      @Path("/{id}") @DELETE @Produces("application/json") public jakarta.ws.rs.core.Response logout(@PathParam("id") String id)
      Remove a specific session
      Parameters:
      id - a specific session to remove
      Returns: