public abstract class MapUserSessionAdapter<K> extends AbstractUserSessionModel<K>
UserSessionModel.SearchableFields, UserSessionModel.SessionPersistenceState, UserSessionModel.Stateentity, realm, sessionCORRESPONDING_SESSION_ID| Constructor and Description |
|---|
MapUserSessionAdapter(KeycloakSession session,
RealmModel realm,
MapUserSessionEntity<K> entity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
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 |
getIpAddress() |
int |
getLastSessionRefresh() |
String |
getLoginUsername() |
String |
getNote(String name) |
Map<String,String> |
getNotes() |
RealmModel |
getRealm() |
int |
getStarted() |
UserSessionModel.State |
getState() |
UserModel |
getUser() |
int |
hashCode() |
boolean |
isOffline() |
boolean |
isRememberMe() |
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 |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, removeAuthenticatedClientSessionspublic MapUserSessionAdapter(KeycloakSession session, RealmModel realm, MapUserSessionEntity<K> entity)
public RealmModel getRealm()
public String getBrokerSessionId()
UserSessionModelpublic String getBrokerUserId()
public UserModel getUser()
public String getLoginUsername()
public String getIpAddress()
public String getAuthMethod()
public boolean isRememberMe()
public int getStarted()
public int getLastSessionRefresh()
public void setLastSessionRefresh(int seconds)
public boolean isOffline()
public Map<String,AuthenticatedClientSessionModel> getAuthenticatedClientSessions()
UserSessionModelAuthenticatedClientSessionModel object.public AuthenticatedClientSessionModel getAuthenticatedClientSessionByClient(String clientUUID)
UserSessionModelpublic void removeNote(String name)
public UserSessionModel.State getState()
public void setState(UserSessionModel.State state)
public void restartSession(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId)
Copyright © 2021 JBoss by Red Hat. All rights reserved.