Package | Description |
---|---|
org.keycloak.models |
Modifier and Type | Method and Description |
---|---|
UserSessionModel |
UserSessionProvider.createOfflineUserSession(UserSessionModel userSession)
Newly created userSession won't contain attached AuthenticatedClientSessions
|
UserSessionModel |
UserSessionProvider.createUserSession(RealmModel realm,
UserModel user,
String loginUsername,
String ipAddress,
String authMethod,
boolean rememberMe,
String brokerSessionId,
String brokerUserId) |
UserSessionModel |
UserSessionProvider.createUserSession(String id,
RealmModel realm,
UserModel user,
String loginUsername,
String ipAddress,
String authMethod,
boolean rememberMe,
String brokerSessionId,
String brokerUserId) |
UserSessionModel |
UserSessionProvider.getOfflineUserSession(RealmModel realm,
String userSessionId) |
UserSessionModel |
AuthenticatedClientSessionModel.getUserSession() |
UserSessionModel |
UserSessionProvider.getUserSession(RealmModel realm,
String id) |
UserSessionModel |
UserSessionProvider.getUserSessionByBrokerSessionId(RealmModel realm,
String brokerSessionId) |
UserSessionModel |
UserSessionProvider.getUserSessionWithPredicate(RealmModel realm,
String id,
boolean offline,
Predicate<UserSessionModel> predicate)
Return userSession of specified ID as long as the predicate passes.
|
Modifier and Type | Method and Description |
---|---|
List<UserSessionModel> |
UserSessionProvider.getOfflineUserSessions(RealmModel realm,
ClientModel client,
int first,
int max) |
List<UserSessionModel> |
UserSessionProvider.getOfflineUserSessions(RealmModel realm,
UserModel user) |
List<UserSessionModel> |
UserSessionProvider.getUserSessionByBrokerUserId(RealmModel realm,
String brokerUserId) |
List<UserSessionModel> |
UserSessionProvider.getUserSessions(RealmModel realm,
ClientModel client) |
List<UserSessionModel> |
UserSessionProvider.getUserSessions(RealmModel realm,
ClientModel client,
int firstResult,
int maxResults) |
List<UserSessionModel> |
UserSessionProvider.getUserSessions(RealmModel realm,
UserModel user) |
Modifier and Type | Method and Description |
---|---|
AuthenticatedClientSessionModel |
UserSessionProvider.createClientSession(RealmModel realm,
ClientModel client,
UserSessionModel userSession) |
AuthenticatedClientSessionModel |
UserSessionProvider.createOfflineClientSession(AuthenticatedClientSessionModel clientSession,
UserSessionModel offlineUserSession)
Will automatically attach newly created offline client session to the offlineUserSession
|
UserSessionModel |
UserSessionProvider.createOfflineUserSession(UserSessionModel userSession)
Newly created userSession won't contain attached AuthenticatedClientSessions
|
AuthenticatedClientSessionModel |
UserSessionProvider.getClientSession(UserSessionModel userSession,
ClientModel client,
UUID clientSessionId,
boolean offline) |
void |
UserSessionProvider.removeOfflineUserSession(RealmModel realm,
UserSessionModel userSession)
Removes the attached clientSessions as well
|
void |
UserSessionProvider.removeUserSession(RealmModel realm,
UserSessionModel session)
This will remove attached ClientLoginSessionModels too
|
Modifier and Type | Method and Description |
---|---|
UserSessionModel |
UserSessionProvider.getUserSessionWithPredicate(RealmModel realm,
String id,
boolean offline,
Predicate<UserSessionModel> predicate)
Return userSession of specified ID as long as the predicate passes.
|
void |
UserSessionProvider.importUserSessions(Collection<UserSessionModel> persistentUserSessions,
boolean offline)
Triggered by persister during pre-load.
|
Copyright © 2019 JBoss by Red Hat. All rights reserved.