Class SessionResource
java.lang.Object
org.keycloak.services.resources.account.SessionResource
- Author:
 - Pedro Igor
 
- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
SessionResource
 
 - 
 - 
Method Details
- 
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:
 
 
 -