public class StatefulUserSessionData extends UserSessionData
UserSessionData which is based on a SessionrequestData| Constructor and Description |
|---|
StatefulUserSessionData(java.lang.String sessionToken,
java.lang.String remoteAddress,
RequestData requestData) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkConsistency()
Checks for consistency.
|
protected java.lang.Long |
doGetLoggedBasicUserId() |
protected boolean |
doHasPendingSecondaryPassword() |
AccessClient |
getAccessClient()
Return the current access client only if
SessionData.getPrincipalType() return an instance of
AccessClientPrincipalType. |
UserAuthVO |
getAuthenticatedUser()
Returns the user authentication data, or null if none
|
java.lang.String |
getChannelName()
Returns the internal name of the current channel.
|
java.lang.String |
getPrincipal()
Returns the principal used to access this session, if any
|
PrincipalType |
getPrincipalType()
Returns the principal type used for the current session.
|
java.lang.String |
getRemoteAddress()
Returns the remote address, of the client accessing the application
|
Session |
getSession()
Returns the session in case this session data performed a login
|
TimeInterval |
getSessionTimeout() |
java.lang.String |
getSessionToken() |
Token |
getToken()
Return the current token only if
SessionData.getPrincipalType() return an instance of TokenPrincipalType. |
void |
replaceSessionToken(java.lang.String newSessionToken) |
java.lang.String |
toString() |
doGetConfigurationId, doGetPreferredLocales, doGetProducts, doGetSubjectId, fallbackToDefaultLocales, getAccessibleBasicGroups, getChannelConfiguration, getGroup, getLoggedBasicUser, getPermissions, getRoles, hasExpiredPassword, hasExpiredSecondaryPassword, hasPendingAgreements, hasPengingSecondaryPassword, hasPermission, hasRequiredValue, isAdmin, isAdminOf, isAliasOperator, isBroker, isBrokerOf, isGlobalAdmin, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isOwnerOf, isRestrictedOperator, isVisible, manages, relatesTobean, doGetConfigurationAccessor, getApplicationContext, getChannel, getConfiguration, getConfigurationEntity, getLoggedOperator, getLoggedUser, getNetwork, getProducts, getRawEntityManagerHandler, getRequestData, getSubjectId, isGlobalAdminInNetwork, isGuest, isManagerOf, isScript, isSystem, isUserManager, resolveNetworkId, runAsSystem, runAsSystempublic StatefulUserSessionData(java.lang.String sessionToken,
java.lang.String remoteAddress,
RequestData requestData)
public void checkConsistency()
throws InvalidSessionDataException
SessionDatacheckConsistency in interface SessionDatacheckConsistency in class UserSessionDataInvalidSessionDataExceptionpublic AccessClient getAccessClient()
SessionDataSessionData.getPrincipalType() return an instance of
AccessClientPrincipalType. Otherwise it
returns null.public UserAuthVO getAuthenticatedUser()
SessionDatagetAuthenticatedUser in interface SessionDatagetAuthenticatedUser in class UserSessionDatapublic java.lang.String getChannelName()
SessionDatapublic java.lang.String getPrincipal()
SessionDatagetPrincipal in interface SessionDatagetPrincipal in class AbstractSessionDatapublic PrincipalType getPrincipalType()
SessionDatagetPrincipalType in interface SessionDatagetPrincipalType in class AbstractSessionDatapublic java.lang.String getRemoteAddress()
SessionDatagetRemoteAddress in interface SessionDatagetRemoteAddress in class AbstractSessionDatapublic Session getSession()
SessionDatagetSession in interface SessionDatagetSession in class AbstractSessionDatapublic TimeInterval getSessionTimeout()
public java.lang.String getSessionToken()
public Token getToken()
SessionDataSessionData.getPrincipalType() return an instance of TokenPrincipalType.
Otherwise it returns null.public void replaceSessionToken(java.lang.String newSessionToken)
public java.lang.String toString()
toString in class java.lang.Objectprotected java.lang.Long doGetLoggedBasicUserId()
doGetLoggedBasicUserId in class UserSessionDataprotected boolean doHasPendingSecondaryPassword()
doHasPendingSecondaryPassword in class UserSessionData