org.aselect.authspserver.authsp.db
Class DBAuthSP

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.aselect.system.servlet.ASelectHttpServlet
              extended by org.aselect.authspserver.authsp.db.DBAuthSP
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class DBAuthSP
extends ASelectHttpServlet

An A-Select AuthSP that uses a database as back-end.

Description:
The A-Select DB AuthSP uses a database back-end to validate user/password combinations. The DB AuthSP retrieves the following components and attributes from the A-Select AuthSP Server:


Concurrency issues:
-

Author:
Cristina Gavrila, BTTSD, Hans Zandbelt, SURFnet
See Also:
Serialized Form

Field Summary
static java.lang.String MODULE
          The name of this module, that is used in the system logging.
static java.lang.String VERSION
          The version.
 
Constructor Summary
DBAuthSP()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
          Process requests for the HTTP GET method.
protected  void doPost(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
          Process requests for the HTTP POST method.
 void init(javax.servlet.ServletConfig oConfig)
          Initialization of the DB AuthSP.
protected  boolean isRestartableServlet()
          Determines whether or not a Servlet is restartable.
 
Methods inherited from class org.aselect.system.servlet.ASelectHttpServlet
getModuleName, getWorkingDir, handleRestartRequest, isReinit, isRestartInProgress, restartServlets, service, setDisableCachingHttpHeaders, showErrorPage
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, 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

MODULE

public static final java.lang.String MODULE
The name of this module, that is used in the system logging.

See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
The version.

See Also:
Constant Field Values
Constructor Detail

DBAuthSP

public DBAuthSP()
Method Detail

init

public void init(javax.servlet.ServletConfig oConfig)
          throws javax.servlet.ServletException
Initialization of the DB AuthSP.

Description:
Performs the following steps to initialise the AuthSP:
Preconditions:

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class ASelectHttpServlet
Throws:
javax.servlet.ServletException
See Also:
Servlet.init(javax.servlet.ServletConfig)

isRestartableServlet

protected boolean isRestartableServlet()
Description copied from class: ASelectHttpServlet
Determines whether or not a Servlet is restartable.

Description:
This method should return true if the Servlet is restartable, false otherwise.

Specified by:
isRestartableServlet in class ASelectHttpServlet
Returns:
true if the Servlet is restartable, otherwise false.

doGet

protected void doGet(javax.servlet.http.HttpServletRequest servletRequest,
                     javax.servlet.http.HttpServletResponse servletResponse)
              throws java.io.IOException
Process requests for the HTTP GET method.

This could be a API call, otherwise the authentication screen is displayed.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException
See Also:
HttpServlet.doGet( javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

doPost

protected void doPost(javax.servlet.http.HttpServletRequest servletRequest,
                      javax.servlet.http.HttpServletResponse servletResponse)
               throws java.io.IOException
Process requests for the HTTP POST method.

This should be the submitted authentication form.

Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException
See Also:
HttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)


Copyright © 2008 SURFnet BV. All Rights Reserved.