|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.session.impl.AbstractSession
public abstract class AbstractSession
Base class for Shibboleth sessions.
Field Summary | |
---|---|
private long |
inactivityTimeout
Session inactivity timeout in milliseconds. |
private long |
lastActivity
The last activity time of the user. |
private static long |
serialVersionUID
Serial version UID. |
private String |
sessionId
The session ID. |
private Subject |
subject
Subject of this session. |
Constructor Summary | |
---|---|
AbstractSession(String id,
long timeout)
Constructor. |
Method Summary | |
---|---|
long |
getInactivityTimeout()
Gets the session inactivity timeout in milliseconds. |
org.joda.time.DateTime |
getLastActivityInstant()
Gets the time of the last activity from the user. |
String |
getPrincipalName()
A convenience method that gets the first principal retrieved from the Subject . |
String |
getSessionID()
Gets the unique identifier of the session. |
Subject |
getSubject()
Gets the subject with which this session is associated. |
void |
setLastActivityInstant(org.joda.time.DateTime activity)
Sets the time of the last activity from the user. |
void |
setSubject(Subject newSubject)
Sets the subject with which this session is associated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final String sessionId
private Subject subject
private long inactivityTimeout
private long lastActivity
Constructor Detail |
---|
public AbstractSession(String id, long timeout)
id
- ID of the sessiontimeout
- inactivity timeout for the session in millisecondsMethod Detail |
---|
public String getSessionID()
getSessionID
in interface Session
public Subject getSubject()
getSubject
in interface Session
public void setSubject(Subject newSubject)
setSubject
in interface Session
newSubject
- the subject with which this session is associatedpublic String getPrincipalName()
Subject
.
getPrincipalName
in interface Session
public long getInactivityTimeout()
getInactivityTimeout
in interface Session
public org.joda.time.DateTime getLastActivityInstant()
getLastActivityInstant
in interface Session
public void setLastActivityInstant(org.joda.time.DateTime activity)
setLastActivityInstant
in interface Session
activity
- time of the last activity from the user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |