| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jcms.authentication.AuthenticationHandler
com.jalios.jcms.authentication.handlers.SessionAuthenticationHandler
public class SessionAuthenticationHandler
Save authentification made by other handlers into session and use it later on to re-authenticate.
| Field Summary | |
|---|---|
| static int | ORDER_SESSION_HANDLEROrder used by the SessionAuthenticationHandler | 
| static String | REVISION | 
| Fields inherited from class com.jalios.jcms.authentication.AuthenticationHandler | 
|---|
| channel, GENERIC_BAD_AUTHENTICATION_MSG | 
| Method Summary | |
|---|---|
| static Member | checkAuthenticationFromSession(javax.servlet.http.HttpServletRequest request)Returns the member corresponding to the information specified in the session. | 
| static SessionAuthenticationHandler | getInstance() | 
|  void | login(AuthenticationContext ctxt)Authenticate a member. | 
| static void | storeSessionAuthentication(javax.servlet.http.HttpServletRequest request,
                           Member loggedMember)Store the given logged Member into the session for future authentication. | 
| Methods inherited from class com.jalios.jcms.authentication.AuthenticationHandler | 
|---|
| compareTo, equals, getOrder, init, loadProperties, logout, setOrder | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String REVISION
public static final int ORDER_SESSION_HANDLER
| Method Detail | 
|---|
public static final SessionAuthenticationHandler getInstance()
public void login(AuthenticationContext ctxt)
           throws IOException
AuthenticationHandlerAuthenticationContext object (request, response, login.. etc) AuthenticationContext.setLoggedMember(com.jalios.jcms.Member)AuthenticationContext.doChain(),AuthenticationContext.
login in class AuthenticationHandlerctxt - the AuthenticationContext used for this login
IOExceptionpublic static final Member checkAuthenticationFromSession(javax.servlet.http.HttpServletRequest request)
request - the request where to look for silent params
public static final void storeSessionAuthentication(javax.servlet.http.HttpServletRequest request,
                                                    Member loggedMember)
request - the current HttpServletRequestloggedMember - the Member newly logged in| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||