com.ora.jsp.servlets
Class AuthenticateAction

java.lang.Object
  |
  +--com.ora.jsp.servlets.AuthenticateAction
All Implemented Interfaces:
Action

public class AuthenticateAction
extends java.lang.Object
implements Action

This class performs authentication in the Project Billboard application.

Version:
1.0
Author:
Hans Bergsten, Gefion software

Field Summary
private  ActionUtils utils
           
 
Constructor Summary
AuthenticateAction()
           
 
Method Summary
 void perform(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Autheticates a user with help from the EmployeeRegistryBean, using the "userName" and "password" request parameters.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

utils

private ActionUtils utils
Constructor Detail

AuthenticateAction

public AuthenticateAction()
Method Detail

perform

public void perform(javax.servlet.http.HttpServlet servlet,
                    javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws java.io.IOException,
                    javax.servlet.ServletException
Autheticates a user with help from the EmployeeRegistryBean, using the "userName" and "password" request parameters. If the user can be authenticated, the "validUser" session attribute is set to an instance of the EmployeeBean, to serve as an authentication token in this application.

Cookies with the user name and password are set or reset as specified by the "remember" request parameter.

Specified by:
perform in interface Action