Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.roller.presentation
Class LoginServlet  view LoginServlet download LoginServlet.java

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.roller.presentation.LoginServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public final class LoginServlet
extends javax.servlet.http.HttpServlet

Implementation of HttpServlet that is used to get a username and password and mEncrypt the password before sending to container-managed authentication.

View Source

Version:
$Revision: 1.6 $ $Date: 2003/05/25 13:11:08 $

Field Summary
private static java.lang.String mAlgorithm
           
private static java.lang.String mAuthURL
           
private static java.lang.Boolean mEncrypt
           
private  org.apache.commons.logging.Log mLogger
           
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
LoginServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Route the user to the execute method
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Route the user to the execute method
 void execute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it).
 void init()
          Validates the Init and Context parameters, configures authentication URL
 
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, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mAuthURL

private static java.lang.String mAuthURL

mAlgorithm

private static java.lang.String mAlgorithm

mEncrypt

private static java.lang.Boolean mEncrypt

mLogger

private org.apache.commons.logging.Log mLogger
Constructor Detail

LoginServlet

public LoginServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Validates the Init and Context parameters, configures authentication URL


doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException,
                  javax.servlet.ServletException
Route the user to the execute method


doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException,
                   javax.servlet.ServletException
Route the user to the execute method


execute

public void execute(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws java.io.IOException,
                    javax.servlet.ServletException
Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it).