Class UserSessionEntity
java.lang.Object
org.keycloak.models.sessions.infinispan.entities.SessionEntity
org.keycloak.models.sessions.infinispan.entities.UserSessionEntity
- Author:
- Stian Thorgersen
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic UserSessionEntity
create
(String id, RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId) static UserSessionEntity
createFromModel
(UserSessionModel userSession) boolean
getId()
int
getNotes()
int
getState()
getUser()
int
hashCode()
boolean
mergeRemoteEntityWithLocalEntity
(SessionEntityWrapper localEntityWrapper) void
setAuthenticatedClientSessions
(AuthenticatedClientSessionStore authenticatedClientSessions) void
setAuthMethod
(String authMethod) void
setBrokerSessionId
(String brokerSessionId) void
setBrokerUserId
(String brokerUserId) void
setIpAddress
(String ipAddress) void
setLastSessionRefresh
(int lastSessionRefresh) void
setLoginUsername
(String loginUsername) void
void
setRememberMe
(boolean rememberMe) void
setStarted
(int started) void
setState
(UserSessionModel.State state) void
toString()
static void
updateSessionEntity
(UserSessionEntity entity, RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId) Methods inherited from class org.keycloak.models.sessions.infinispan.entities.SessionEntity
getRealmId, isOffline, setOffline, setRealmId
-
Field Details
-
logger
public static final org.jboss.logging.Logger logger -
LAST_SESSION_REFRESH_REMOTE
- See Also:
-
-
Constructor Details
-
UserSessionEntity
-
-
Method Details
-
getId
-
getUser
-
setUser
-
getLoginUsername
-
setLoginUsername
-
getIpAddress
-
setIpAddress
-
getAuthMethod
-
setAuthMethod
-
isRememberMe
@ProtoField(7) public boolean isRememberMe() -
setRememberMe
public void setRememberMe(boolean rememberMe) -
getStarted
@ProtoField(8) public int getStarted() -
setStarted
public void setStarted(int started) -
getLastSessionRefresh
@ProtoField(9) public int getLastSessionRefresh() -
setLastSessionRefresh
public void setLastSessionRefresh(int lastSessionRefresh) -
getNotes
@ProtoField(value=10, mapImplementation=java.util.concurrent.ConcurrentHashMap.class) public Map<String,String> getNotes() -
setNotes
-
getAuthenticatedClientSessions
-
setAuthenticatedClientSessions
public void setAuthenticatedClientSessions(AuthenticatedClientSessionStore authenticatedClientSessions) -
getState
-
setState
-
getBrokerSessionId
-
setBrokerSessionId
-
getBrokerUserId
-
setBrokerUserId
-
equals
- Specified by:
equals
in classSessionEntity
-
hashCode
public int hashCode()- Specified by:
hashCode
in classSessionEntity
-
toString
-
mergeRemoteEntityWithLocalEntity
public SessionEntityWrapper mergeRemoteEntityWithLocalEntity(SessionEntityWrapper localEntityWrapper) - Overrides:
mergeRemoteEntityWithLocalEntity
in classSessionEntity
-
create
public static UserSessionEntity create(String id, RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId) -
updateSessionEntity
public static void updateSessionEntity(UserSessionEntity entity, RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId) -
createFromModel
-