public class UserSessionAdapter extends Object implements UserSessionModel
UserSessionModel.State
Constructor and Description |
---|
UserSessionAdapter(KeycloakSession session,
InfinispanUserSessionProvider provider,
org.infinispan.Cache<String,SessionEntity> cache,
RealmModel realm,
UserSessionEntity entity) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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() |
List<ClientSessionModel> |
getClientSessions() |
String |
getId() |
String |
getIpAddress() |
int |
getLastSessionRefresh() |
String |
getLoginUsername() |
String |
getNote(String name) |
int |
getStarted() |
UserSessionModel.State |
getState() |
UserModel |
getUser() |
int |
hashCode() |
boolean |
isRememberMe() |
void |
removeNote(String name) |
void |
setLastSessionRefresh(int lastSessionRefresh) |
void |
setNote(String name,
String value) |
void |
setState(UserSessionModel.State state) |
public UserSessionAdapter(KeycloakSession session, InfinispanUserSessionProvider provider, org.infinispan.Cache<String,SessionEntity> cache, RealmModel realm, UserSessionEntity entity)
public String getId()
getId
in interface UserSessionModel
public String getBrokerSessionId()
UserSessionModel
getBrokerSessionId
in interface UserSessionModel
public String getBrokerUserId()
getBrokerUserId
in interface UserSessionModel
public UserModel getUser()
getUser
in interface UserSessionModel
public String getLoginUsername()
getLoginUsername
in interface UserSessionModel
public String getIpAddress()
getIpAddress
in interface UserSessionModel
public String getAuthMethod()
getAuthMethod
in interface UserSessionModel
public boolean isRememberMe()
isRememberMe
in interface UserSessionModel
public int getStarted()
getStarted
in interface UserSessionModel
public int getLastSessionRefresh()
getLastSessionRefresh
in interface UserSessionModel
public void setLastSessionRefresh(int lastSessionRefresh)
setLastSessionRefresh
in interface UserSessionModel
public String getNote(String name)
getNote
in interface UserSessionModel
public void setNote(String name, String value)
setNote
in interface UserSessionModel
public void removeNote(String name)
removeNote
in interface UserSessionModel
public UserSessionModel.State getState()
getState
in interface UserSessionModel
public void setState(UserSessionModel.State state)
setState
in interface UserSessionModel
public List<ClientSessionModel> getClientSessions()
getClientSessions
in interface UserSessionModel
Copyright © 2015. All rights reserved.