public class UserSession
extends java.lang.Object
The current UserSession can be retrieved through the UserSessionService
Modifier and Type | Field and Description |
---|---|
java.lang.String |
clientId
Id used to uniquely identify a client session.
|
java.lang.String |
locale
Locale for the session.
|
java.lang.String |
samlTokenXml
The XML value of the SAML Token for the local domain representing the current user.
|
static java.lang.String |
SERVER_INFO
Unique key used to store list of
ServerInfo
in the HttpSession |
ServerInfo[] |
serversInfo
List of all the servers in the current session.
|
static java.lang.String |
USER_NAME
Unique key used to store logged in user name in the HttpSession
|
java.lang.String |
userName
Name of the user who owns the session.
|
Constructor and Description |
---|
UserSession() |
public static final java.lang.String SERVER_INFO
ServerInfo
in the HttpSessionpublic static final java.lang.String USER_NAME
public volatile java.lang.String userName
public volatile java.lang.String locale
public volatile ServerInfo[] serversInfo
ServerInfo
public volatile java.lang.String clientId
You can use it for instance to keep track of session specific resources and clean
them up when you are notified of the session ending in your
ClientSessionEndListener
. Note that the HttpSession id cannot be used in
place of clientId because the same client session can involve multiple Http sessions.
clientId is only set by the framework when UserSession is accessed in one of two ways:
BaseProxy
, as shown in the SDK samples.ClientSessionEndListener
public volatile java.lang.String samlTokenXml
samlTokenXml can be null if for some reason the UserSession didn't use a proper SSO authentication, but this should not happen in production mode.
Copyright @ 2013-2018 VMware, Inc. All rights reserved.