|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.cams.session.AbstractBaseSession
Abstract base class for all Session objects.
ManagedSession,
RemoteSession,
Session,
Serialized Form| Field Summary | |
protected NamespaceMap |
namespaceMap
Session's namespace map. |
protected SessionStatus |
sessionStatus
Session status. |
protected long |
touchTime
Last time session was touched. |
| Constructor Summary | |
AbstractBaseSession(SessionId sessionId,
String securityDomainName,
long creationTime,
long touchTime,
Map authenticationMap,
SessionStatus sessionStatus,
NamespaceMap namespaceMap)
Create an AbstractBaseSession with the given SessionId, creation time, last touch time, AuthenticationMethod Map, Session status, and NamespaceMap |
|
AbstractBaseSession(SessionId sessionId,
String securityDomainName,
long creationTime,
Map authenticationMap)
Create an AbstractBaseSession with the given SessionId and AuthenticationMethod Map |
|
| Method Summary | |
Object |
getAttribute(String namespace,
String name)
Get a attribute from the session |
String[] |
getAttributeNames(String namespace)
Get the names of all the attributes in the session |
Map |
getAuthenticationMethods()
Get the authentication methods used to login the Subject. |
long |
getCreationTime()
Get the session creation time. |
SessionId |
getId()
Get the Session's Id |
long |
getLastTouchTime()
Get the instant the session was last touched. |
String[] |
getNamespaces()
Get all attribute namespaces. |
String |
getSecurityDomainName()
Get the Session's security domain name. |
SessionStatus |
getStatus()
Get the Session status. |
void |
recycle()
Recycle the resources of this object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected long touchTime
protected SessionStatus sessionStatus
protected NamespaceMap namespaceMap
| Constructor Detail |
public AbstractBaseSession(SessionId sessionId,
String securityDomainName,
long creationTime,
Map authenticationMap)
sessionId - the session idsecurityDomainName - the name of the security domain to which this
session belongsauthenticationMap - the Map of AuthenticationMethods
public AbstractBaseSession(SessionId sessionId,
String securityDomainName,
long creationTime,
long touchTime,
Map authenticationMap,
SessionStatus sessionStatus,
NamespaceMap namespaceMap)
sessionId - the session idsecurityDomainName - the name of the security domain to which this
session belongscreationTime - the session creation timetouchTime - the session last touch timeauthenticationMap - the Map of AuthenticationMethodssessionStatus - the session's statusnamespaceMap - the namespace map of the session| Method Detail |
public void recycle()
recycle in interface Recyclablepublic final SessionId getId()
getId in interface Sessionpublic String getSecurityDomainName()
getSecurityDomainName in interface Sessionpublic final long getLastTouchTime()
getLastTouchTime in interface Sessionpublic final long getCreationTime()
getCreationTime in interface Sessionpublic final SessionStatus getStatus()
getStatus in interface Sessionpublic final Map getAuthenticationMethods()
getAuthenticationMethods in interface SessionAuthenticationMethod
public final Object getAttribute(String namespace,
String name)
getAttribute in interface Sessionnamespace - the namespace of the name/value pairname - the name string to get the value for
public final String[] getNamespaces()
getNamespaces in interface Sessionpublic final String[] getAttributeNames(String namespace)
getAttributeNames in interface Sessionnamespace - the namespace of attributes to be retrieved.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||