public class DeviceActivityManager extends Object
Constructor and Description |
---|
DeviceActivityManager() |
Modifier and Type | Method and Description |
---|---|
static void |
attachDevice(UserSessionModel userSession,
KeycloakSession session)
Attaches a device to the given
userSession where the device information is obtained from the HttpHeaders.USER_AGENT in the current
request, if available. |
static DeviceRepresentation |
getCurrentDevice(UserSessionModel userSession)
Returns the device information associated with the given
userSession . |
public static DeviceRepresentation getCurrentDevice(UserSessionModel userSession)
userSession
.userSession
- the userSessionpublic static void attachDevice(UserSessionModel userSession, KeycloakSession session)
userSession
where the device information is obtained from the HttpHeaders.USER_AGENT
in the current
request, if available.userSession
- the user sessionsession
- the keycloak sessionCopyright © 2021 JBoss by Red Hat. All rights reserved.