|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthenticatedSession
An interface to optionally authenticated sessions maintaining client data between requests.
Nested Class Summary | |
---|---|
static interface |
AuthenticatedSession.RemoteClient
An interface to remote clients. |
Method Summary | |
---|---|
void |
access()
Updates the accessed time information for this session. |
Enumeration<String> |
getAttributeNames()
|
AuthenticatedSession.RemoteClient |
getRemoteClient()
Gets the remote client that is associated with this session. |
Principal |
getUserPrincipal()
Gets the authenticated principal that is associated with this session. |
boolean |
isValid()
Checks whether the session is valid. |
void |
registerRemoteClient(AuthenticatedSession.RemoteClient client)
Registers the remote client that is associated with this session. |
HttpSession |
registerUserPrincipal(Principal principal,
AuthenticatedSession.RemoteClient... client)
Registers the authenticated principal that is associated with this session or a joined one. |
Methods inherited from interface javax.servlet.http.HttpSession |
---|
getAttribute, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getServletContext, getSessionContext, getValue, getValueNames, invalidate, isNew, putValue, removeAttribute, removeValue, setAttribute, setMaxInactiveInterval |
Method Detail |
---|
Enumeration<String> getAttributeNames()
getAttributeNames
in interface HttpSession
boolean isValid()
AuthenticatedSession.RemoteClient getRemoteClient()
void registerRemoteClient(AuthenticatedSession.RemoteClient client)
client
- the remote client.Principal getUserPrincipal()
HttpSession registerUserPrincipal(Principal principal, AuthenticatedSession.RemoteClient... client)
principal
- the authenticated principal.client
- remote client of the principal.
void access()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |