Fields Summary |
---|
public static final String | SESSION_ID_KEYWell-known invocationProperty names |
public static final String | SESSION_KEY |
private final SessionManager | managerSession manager that can handle Sessions of this exact type.
(Different SessionManagers might use different subclasses of this Class) |
private final String | keyUnique key based either on the SCT or RM sequence id for the session |
private final Object | userDataA container for user-defined data that will be exposed in WebServiceContext. |
private com.sun.xml.ws.security.SecurityContextTokenInfo | securityInfo |
private com.sun.xml.ws.rm.Sequence | sequence |
private final long | creationTime |
private long | lastAccessedTime |
Methods Summary |
---|
public long | getCreationTime()Accessor for creation time.
return creationTime;
|
public long | getLastAccessedTime()Accessor for lastAccessed time, which can be used to invalidate Sessions
have not been active since a certain time.
return lastAccessedTime;
|
public com.sun.xml.ws.security.SecurityContextTokenInfo | getSecurityInfo()Accessor for the securityInfo field.
return securityInfo;
|
public com.sun.xml.ws.rm.Sequence | getSequence()Accessor for the sequence field.
return sequence;
|
public java.lang.String | getSessionKey()Accessor for Session Key.
return key;
|
public java.lang.Object | getUserData()Accessor for the userData field.
return userData;
|
public void | resetLastAccessedTime()Resets the lastAccessedTime to the current time.
lastAccessedTime = System.currentTimeMillis();
|
public void | save()Saves the state of the session using whatever persistence mechanism the
SessionManager offers.
manager.saveSession(getSessionKey());
|
public void | setSecurityInfo(com.sun.xml.ws.security.SecurityContextTokenInfo securityInfo)Mutator for the securityInfo field.
this.securityInfo = securityInfo;
|
public void | setSequence(com.sun.xml.ws.rm.Sequence sequence)Mutator for the securityInfo field.
this.sequence = sequence;
|