Package org.keycloak.services.managers
Class UserSessionManager
- java.lang.Object
-
- org.keycloak.services.managers.UserSessionManager
-
public class UserSessionManager extends Object
- Author:
- Marek Posolda
-
-
Constructor Summary
Constructors Constructor Description UserSessionManager(KeycloakSession session)
-
Method Summary
-
-
-
Constructor Detail
-
UserSessionManager
public UserSessionManager(KeycloakSession session)
-
-
Method Detail
-
createOrUpdateOfflineSession
public void createOrUpdateOfflineSession(AuthenticatedClientSessionModel clientSession, UserSessionModel userSession)
-
findOfflineUserSession
public UserSessionModel findOfflineUserSession(RealmModel realm, String userSessionId)
-
findClientsWithOfflineToken
public Set<ClientModel> findClientsWithOfflineToken(RealmModel realm, UserModel user)
-
findOfflineSessions
@Deprecated public List<UserSessionModel> findOfflineSessions(RealmModel realm, UserModel user)
Deprecated.
-
findOfflineSessionsStream
public Stream<UserSessionModel> findOfflineSessionsStream(RealmModel realm, UserModel user)
-
revokeOfflineToken
public boolean revokeOfflineToken(UserModel user, ClientModel client)
-
revokeOfflineUserSession
public void revokeOfflineUserSession(UserSessionModel userSession)
-
isOfflineTokenAllowed
public boolean isOfflineTokenAllowed(ClientSessionContext clientSessionCtx)
-
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)
-
-