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) |
Map<String,AuthenticatedClientSessionModel> |
getAuthenticatedClientSessions() |
String |
getAuthMethod() |
String |
getBrokerSessionId() |
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()
public 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()
public AuthenticatedClientSessionModel getAuthenticatedClientSessionByClient(String clientUUID)
public 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.