Package org.keycloak.utils
Class KeycloakSessionUtil
java.lang.Object
org.keycloak.utils.KeycloakSessionUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeycloakSession
Get theKeycloakSession
currently associated with the thread.static KeycloakSession
setKeycloakSession
(KeycloakSession session) Associate theKeycloakSession
with the current thread.
-
Method Details
-
getKeycloakSession
Get theKeycloakSession
currently associated with the thread.- Returns:
- the current session
-
setKeycloakSession
Associate theKeycloakSession
with the current thread.
Warning: should not be called directly. Keycloak will manage this.- Parameters:
session
-- Returns:
- the existing
KeycloakSession
or null
-