public class SecuritySession
extends java.lang.Object
SecurityCache that is
in effect when the session is created, is kept here. This allows for a safe
fading out of all older generations of SecurityCache as soon
as the last session referring to the old SecurityCache goes
away.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
browserWebSocket
The browser WebSocket address.
|
private SecurityCache |
cache
security cache in effect by the time of session creation
|
private SecurityContext |
context
security context created for this session
|
private java.lang.String |
description
Session description from SsoAuthenticator.
|
private java.lang.String |
driverName
The client driver name.
|
private int |
httpPort
The web client HTTP port.
|
private java.lang.Object |
id
An object that serves as an ID of this connection
|
private boolean |
interactive
Flag to mark a session as an interactive user.
|
private java.lang.String |
osUserName
The related session UUID.
|
private long |
pid
The related session UUID.
|
private java.lang.String |
relatedSessionUuid
The related session UUID.
|
private java.lang.String |
sessionUuid
The session UUID.
|
private long |
timestamp
Timestamp of when this session was created.
|
private java.lang.String |
userid
Account name.
|
| Constructor and Description |
|---|
SecuritySession(java.lang.Object id,
SecurityCache cache)
Package private constructor for client side Session.
|
SecuritySession(java.lang.Object id,
SecurityCache cache,
SecurityContext context)
Package private constructor for server side Session.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBrowserWebSocket()
Gets the browser WebSocket address.
|
(package private) SecurityCache |
getCache()
Gets the security cache this session is bound to.
|
java.lang.String |
getDescription()
Returns the session description from SsoAuthenticator.
|
java.lang.String |
getDriverName()
Returns the client ui driver class.
|
int |
getHttpPort()
Returns the web client HTTP port.
|
java.lang.String |
getOsUserName()
Returns the OS user name.
|
long |
getPid()
Returns the client pid.
|
java.lang.String |
getRelatedSessionUuid()
Gets related session UUID.
|
(package private) SecurityContext |
getSecurityContext()
Gets the session security context.
|
(package private) java.lang.Object |
getSessionId()
Gets the session ID object.
|
long |
getTimeStamp()
Obtain the timestamp of when this session was created.
|
java.lang.String |
getUid()
Gets session UUID.
|
(package private) java.lang.String |
getUserid()
Gets the session's account name.
|
(package private) boolean |
hasContext(SecurityContext context)
Checks whether this session was created with the specified security
context.
|
(package private) boolean |
isInteractive()
Reports if the session is interactive.
|
(package private) void |
setBrowserWebSocket(java.lang.String browserWebSocket)
Sets the browser WebSocket address.
|
(package private) void |
setDescription(java.lang.String description)
Sets the session description from SsoAuthenticator.
|
(package private) void |
setDriverName(java.lang.String driverName)
Sets the ui driver class.
|
(package private) void |
setHttpPort(int httpPort)
Sets the web client HTTP port.
|
(package private) void |
setInteractive()
Mark the session as interactive.
|
(package private) void |
setOsUserName(java.lang.String osUserName)
Sets the OS user name.
|
(package private) void |
setPid(long pid)
Sets the client pid.
|
(package private) void |
setRelatedSessionUuid(java.lang.String relatedUuid)
Sets the uuid of the original session (different from uuid when forked).
|
(package private) void |
setUserid(java.lang.String userid)
Set the session's account name.
|
(package private) void |
setUuid(java.lang.String uuid)
Sets the session UUID.
|
private java.lang.Object id
private SecurityContext context
private SecurityCache cache
private long timestamp
private java.lang.String userid
private boolean interactive
private java.lang.String sessionUuid
private java.lang.String relatedSessionUuid
private java.lang.String driverName
private long pid
private java.lang.String osUserName
private int httpPort
private java.lang.String description
private java.lang.String browserWebSocket
SecuritySession(java.lang.Object id,
SecurityCache cache)
id - session ID, normally the socket that maps the connectioncache - reference to a SecurityCacheSecuritySession(java.lang.Object id,
SecurityCache cache,
SecurityContext context)
id - session ID, normally the socket that maps the connectioncache - reference to a SecurityCachecontext - security context to be associated with the sessionvoid setDriverName(java.lang.String driverName)
driverName - The ui driver class.public java.lang.String getDriverName()
void setPid(long pid)
pid - The client pid.public long getPid()
void setOsUserName(java.lang.String osUserName)
osUserName - The OS user name.public java.lang.String getOsUserName()
public java.lang.String getDescription()
void setDescription(java.lang.String description)
description - The session description from SsoAuthenticator.public int getHttpPort()
void setHttpPort(int httpPort)
httpPort - The web client HTTP port.public java.lang.String getBrowserWebSocket()
void setBrowserWebSocket(java.lang.String browserWebSocket)
browserWebSocket - The browser WebSocket address.boolean hasContext(SecurityContext context)
context - security context to checktrue if security context matchesjava.lang.Object getSessionId()
public java.lang.String getUid()
public java.lang.String getRelatedSessionUuid()
void setUuid(java.lang.String uuid)
uuid - The session UUID.void setRelatedSessionUuid(java.lang.String relatedUuid)
relatedUuid - The uuid of the related session.java.lang.String getUserid()
void setUserid(java.lang.String userid)
userid - The account name.void setInteractive()
boolean isInteractive()
true if the session is interactive.SecurityContext getSecurityContext()
SecurityContextSecurityCache getCache()
SecurityCachepublic long getTimeStamp()