@ManagedData @Description(value="RM and SC session information") public class Session extends Object
Session object is used to manage state between multiple requests
from the same client. It contains a session key field to uniquely identify the Session,
a SecurityInfo field that contains the security parameters used to
protect the session and userdata field that can store the state for multiple
requests from the client.| Modifier and Type | Field and Description |
|---|---|
static String |
SESSION_ID_KEY
Well-known invocationProperty names
|
static String |
SESSION_KEY |
| Modifier | Constructor and Description |
|---|---|
protected |
Session() |
|
Session(SessionManager manager,
String key,
Object userData)
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
SecurityContextTokenInfo |
getSecurityInfo()
Accessor for the
securityInfo field. |
String |
getSessionKey()
Accessor for Session Key.
|
Object |
getUserData()
Accessor for the
userData field. |
void |
save()
Saves the state of the session using whatever persistence mechanism the
SessionManager offers. |
void |
setSecurityInfo(SecurityContextTokenInfo securityInfo)
Mutator for the
securityInfo field. |
public static final String SESSION_ID_KEY
public static final String SESSION_KEY
protected Session()
public Session(SessionManager manager, String key, Object userData)
manager - - A SessionManager that can handle Sessions
of this type.key - - The unique session iddata - - Holder for user-defined data.@ManagedAttribute @Description(value="Session key") public String getSessionKey()
public Object getUserData()
userData field.@ManagedAttribute @Description(value="Security context token info") public SecurityContextTokenInfo getSecurityInfo()
securityInfo field.public void setSecurityInfo(SecurityContextTokenInfo securityInfo)
securityInfo field.public void save()
SessionManager offers.Copyright © 2005–2018 Oracle Corporation. All rights reserved.