Class MapUserSessionEntity
- java.lang.Object
-
- org.keycloak.models.map.common.UpdatableEntity.Impl
-
- org.keycloak.models.map.userSession.MapUserSessionEntity
-
- All Implemented Interfaces:
AbstractEntity,UpdatableEntity
public class MapUserSessionEntity extends UpdatableEntity.Impl implements AbstractEntity
- Author:
- Martin Kanis
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntity
UpdatableEntity.Impl
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
updated
-
-
Constructor Summary
Constructors Constructor Description MapUserSessionEntity()MapUserSessionEntity(String id, String realmId)MapUserSessionEntity(String id, RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId, boolean offline)
-
Method Summary
-
Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
clearUpdatedFlag, isUpdated
-
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceAbstractEntity
-
setId
public void setId(String id)
- Specified by:
setIdin interfaceAbstractEntity
-
getRealmId
public String getRealmId()
-
setRealmId
public void setRealmId(String realmId)
-
getUserId
public String getUserId()
-
setUserId
public void setUserId(String userId)
-
getBrokerSessionId
public String getBrokerSessionId()
-
setBrokerSessionId
public void setBrokerSessionId(String brokerSessionId)
-
getBrokerUserId
public String getBrokerUserId()
-
setBrokerUserId
public void setBrokerUserId(String brokerUserId)
-
getLoginUsername
public String getLoginUsername()
-
setLoginUsername
public void setLoginUsername(String loginUsername)
-
getIpAddress
public String getIpAddress()
-
setIpAddress
public void setIpAddress(String ipAddress)
-
getAuthMethod
public String getAuthMethod()
-
setAuthMethod
public void setAuthMethod(String authMethod)
-
isRememberMe
public boolean isRememberMe()
-
setRememberMe
public void setRememberMe(boolean rememberMe)
-
getStarted
public int getStarted()
-
setStarted
public void setStarted(int started)
-
getLastSessionRefresh
public int getLastSessionRefresh()
-
setLastSessionRefresh
public void setLastSessionRefresh(int lastSessionRefresh)
-
getExpiration
public long getExpiration()
-
setExpiration
public void setExpiration(long expiration)
-
getState
public UserSessionModel.State getState()
-
setState
public void setState(UserSessionModel.State state)
-
setAuthenticatedClientSessions
public void setAuthenticatedClientSessions(Map<String,String> authenticatedClientSessions)
-
addAuthenticatedClientSession
public void addAuthenticatedClientSession(String clientId, String clientSessionId)
-
clearAuthenticatedClientSessions
public void clearAuthenticatedClientSessions()
-
isOffline
public boolean isOffline()
-
setOffline
public void setOffline(boolean offline)
-
getPersistenceState
public UserSessionModel.SessionPersistenceState getPersistenceState()
-
setPersistenceState
public void setPersistenceState(UserSessionModel.SessionPersistenceState persistenceState)
-
-