public interface UserSessionModel
Modifier and Type | Interface and Description |
---|---|
static class |
UserSessionModel.State |
Modifier and Type | Method and Description |
---|---|
default AuthenticatedClientSessionModel |
getAuthenticatedClientSessionByClient(String clientUUID)
Returns a client session for the given client UUID.
|
Map<String,AuthenticatedClientSessionModel> |
getAuthenticatedClientSessions()
Returns map where key is ID of the client (its UUID) and value is ID respective
AuthenticatedClientSessionModel object. |
String |
getAuthMethod() |
String |
getBrokerSessionId()
If created via a broker external login, this is an identifier that can be
used to match external broker backchannel logout requests to a UserSession
|
String |
getBrokerUserId() |
String |
getId() |
String |
getIpAddress() |
int |
getLastSessionRefresh() |
String |
getLoginUsername() |
String |
getNote(String name) |
Map<String,String> |
getNotes() |
RealmModel |
getRealm() |
int |
getStarted() |
UserSessionModel.State |
getState() |
UserModel |
getUser() |
boolean |
isOffline() |
boolean |
isRememberMe() |
void |
removeAuthenticatedClientSessions(Collection<String> removedClientUUIDS)
Removes authenticated client sessions for all clients whose UUID is present in
removedClientUUIDS parameter. |
void |
removeNote(String name) |
void |
restartSession(RealmModel realm,
UserModel user,
String loginUsername,
String ipAddress,
String authMethod,
boolean rememberMe,
String brokerSessionId,
String brokerUserId) |
void |
setLastSessionRefresh(int seconds) |
void |
setNote(String name,
String value) |
void |
setState(UserSessionModel.State state) |
String getId()
RealmModel getRealm()
String getBrokerSessionId()
String getBrokerUserId()
UserModel getUser()
String getLoginUsername()
String getIpAddress()
String getAuthMethod()
boolean isRememberMe()
int getStarted()
int getLastSessionRefresh()
void setLastSessionRefresh(int seconds)
boolean isOffline()
Map<String,AuthenticatedClientSessionModel> getAuthenticatedClientSessions()
AuthenticatedClientSessionModel
object.default AuthenticatedClientSessionModel getAuthenticatedClientSessionByClient(String clientUUID)
void removeAuthenticatedClientSessions(Collection<String> removedClientUUIDS)
removedClientUUIDS
parameter.removedClientUUIDS
- void removeNote(String name)
UserSessionModel.State getState()
void setState(UserSessionModel.State state)
Copyright © 2019 JBoss by Red Hat. All rights reserved.