com.mentata.sg8
Class sign

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.mentata.sg8.SG8Servlet
              extended bycom.mentata.sg8.sign
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class sign
extends SG8Servlet

A servlet for signing on or off of a gateway context. This servlet enables users to establish an authenticated connection with a directory server and have it stored with their session. If the session is not encrypted, the servlet will throw an exception. If the request does not name a context and object, the servlet will also throw an exception. Otherwise, a corresponding L3DPath bean is constructed and passed through the session to the authenticate JSP, which will in turn send a request back with account binding information or the indicator to sign off as appropriate. If signing on, an authenticated connection is created and stored in the session for use in the other servlets and the request is redirected to the action indicated in the path. If signing off, the authenticated connection is removed from the session and the path is resent to the authenticate JSP.

Since:
0.7
Author:
Jon Roberts
See Also:
Serialized Form

Constructor Summary
sign()
           
 
Method Summary
 void doGet(HttpServletRequest req, HttpServletResponse res)
          Forwards the request to the authenticate JSP.
 void doPost(HttpServletRequest req, HttpServletResponse res)
          Adds or removes from the session an authenticated connection to the directory.
 
Methods inherited from class com.mentata.sg8.SG8Servlet
getClassName, getContext, getPath
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

sign

public sign()
Method Detail

doGet

public void doGet(HttpServletRequest req,
                  HttpServletResponse res)
           throws ServletException,
                  IOException
Forwards the request to the authenticate JSP.

Overrides:
doGet in class SG8Servlet
Parameters:
req - the servlet request
res - the servlet response
Throws:
ServletException - if the request is insecure or inappropriate
IOException

doPost

public void doPost(HttpServletRequest req,
                   HttpServletResponse res)
            throws ServletException,
                   IOException
Adds or removes from the session an authenticated connection to the directory.

Overrides:
doPost in class SG8Servlet
Parameters:
req - the servlet request
res - the servlet response
Throws:
ServletException - if the request is insecure or inappropriate
IOException