|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class extends the javax.servlet.http.HttpSession.
Method Summary | |
java.lang.String |
getRemoteAddr()
Returns IP address of the remote client. |
javax.security.auth.Subject |
getSubject()
Returns subject associated with the session. |
boolean |
isValid()
Checks whether the session is valid. |
void |
touch()
Updates the session. |
Methods inherited from interface javax.servlet.http.HttpSession |
getAttribute, getAttributeNames, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getSessionContext, getValue, getValueNames, invalidate, isNew, putValue, removeAttribute, removeValue, setAttribute, setMaxInactiveInterval |
Method Detail |
public boolean isValid()
public javax.security.auth.Subject getSubject()
The subject associated with the session represents an identity of the user, who is currently joining the session.
java.lang.IllegalStateException
- if session is not validpublic java.lang.String getRemoteAddr()
This method must return an IP address of the remote client which initiated the session creation. The address is used for the client authentication to prevent the session-stealing attacks.
public void touch()
This method updates the session's last accessed time to the current time.
java.lang.IllegalStateException
- if session is not valid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |