|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.security.session.SessionID
public class SessionID
Constructor Summary | |
---|---|
SessionID(int duration)
The constructor ensures that a sessionID that is unique within the JVM will be created. |
|
SessionID(java.lang.String id,
int duration)
|
Method Summary | |
---|---|
void |
close()
kills a SessionID by marking it as invalid. |
java.util.Date |
getCreated()
|
java.util.Date |
getExpiration()
if sessionID never expires this method returns new Timestamp(0) |
java.lang.String |
getId()
this method throws an exception if the sessinID has been killed or is alive anymore |
boolean |
isAlive()
returns true if the expiration date of the SessionID is after the current timestamp |
void |
reset()
resets the expiration date to the current timestamp plus duration passed to the constructor when creating the SessionID this method throws an exception if the sessinID has been killed or is alive anymore |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionID(int duration)
SessionID(String, int)
and ensure that the passed ID is valid.
duration
- duration in millis the ID is valid. -1 indicates that a sessionID never expires.public SessionID(java.lang.String id, int duration)
id
- encapsulated IDduration
- duration in millis the ID is valid. -1 indicates that a sessionID never expires.Method Detail |
---|
public java.util.Date getCreated()
public java.util.Date getExpiration()
public java.lang.String getId() throws SessionStatusException
SessionStatusException
public boolean isAlive()
true
if the expiration date of the SessionID is after the
current timestamppublic void reset() throws SessionStatusException
SessionStatusException
public void close()
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org