Package org.keycloak.services.managers
Class UserSessionManager
java.lang.Object
org.keycloak.services.managers.UserSessionManager
- Author:
- Marek Posolda
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createOrUpdateOfflineSession
(AuthenticatedClientSessionModel clientSession, UserSessionModel userSession) createUserSession
(String id, RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId, UserSessionModel.SessionPersistenceState persistenceState) createUserSession
(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId) findClientsWithOfflineToken
(RealmModel realm, UserModel user) findOfflineSessions
(RealmModel realm, UserModel user) Deprecated.findOfflineSessionsStream
(RealmModel realm, UserModel user) findOfflineUserSession
(RealmModel realm, String userSessionId) boolean
isOfflineTokenAllowed
(ClientSessionContext clientSessionCtx) boolean
revokeOfflineToken
(UserModel user, ClientModel client) void
revokeOfflineUserSession
(UserSessionModel userSession)
-
Constructor Details
-
UserSessionManager
-
-
Method Details
-
createOrUpdateOfflineSession
public void createOrUpdateOfflineSession(AuthenticatedClientSessionModel clientSession, UserSessionModel userSession) -
findOfflineUserSession
-
findClientsWithOfflineToken
-
findOfflineSessions
Deprecated. -
findOfflineSessionsStream
-
revokeOfflineToken
-
revokeOfflineUserSession
-
isOfflineTokenAllowed
-
createUserSession
public UserSessionModel createUserSession(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId) -
createUserSession
public UserSessionModel createUserSession(String id, RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId, UserSessionModel.SessionPersistenceState persistenceState)
-