Package org.keycloak.services.util
Class UserSessionUtil
java.lang.Object
org.keycloak.services.util.UserSessionUtil
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UserSessionModel
createTransientUserSession
(KeycloakSession session, UserSessionModel userSession) findValidSessionForAccessToken
(KeycloakSession session, RealmModel realm, AccessToken token, ClientModel client, Consumer<UserSessionModel> invalidSessionCallback) findValidSessionForIdentityCookie
(KeycloakSession session, RealmModel realm, AccessToken token, Consumer<UserSessionModel> invalidSessionCallback) findValidSessionForRefreshToken
(KeycloakSession session, RealmModel realm, RefreshToken token, ClientModel client, Consumer<UserSessionModel> invalidSessionCallback) static UserSessionModel
getUserSessionWithImpersonatorClient
(KeycloakSession session, RealmModel realm, String userSessionId, boolean offline, String clientUUID)
-
Constructor Details
-
UserSessionUtil
public UserSessionUtil()
-
-
Method Details
-
findValidSessionForIdentityCookie
public static UserSessionUtil.UserSessionValidationResult findValidSessionForIdentityCookie(KeycloakSession session, RealmModel realm, AccessToken token, Consumer<UserSessionModel> invalidSessionCallback) -
findValidSessionForRefreshToken
public static UserSessionUtil.UserSessionValidationResult findValidSessionForRefreshToken(KeycloakSession session, RealmModel realm, RefreshToken token, ClientModel client, Consumer<UserSessionModel> invalidSessionCallback) -
findValidSessionForAccessToken
public static UserSessionUtil.UserSessionValidationResult findValidSessionForAccessToken(KeycloakSession session, RealmModel realm, AccessToken token, ClientModel client, Consumer<UserSessionModel> invalidSessionCallback) -
createTransientUserSession
public static UserSessionModel createTransientUserSession(KeycloakSession session, UserSessionModel userSession) -
getUserSessionWithImpersonatorClient
public static UserSessionModel getUserSessionWithImpersonatorClient(KeycloakSession session, RealmModel realm, String userSessionId, boolean offline, String clientUUID)
-