org.aselect.authspserver.authsp.ldap
Class LDAPAuthSP

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.ldap.LDAPAuthSP
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class LDAPAuthSP
extends ASelectHttpServlet

An A-Select AuthtSP that uses LDAP as back-end.

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


Concurrency issues:
-

Author:
Alfa & Ariss TODO use communication package for API calls? (Erwin)
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
LDAPAuthSP()
           
 
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 LDAP AuthSP.
protected  boolean isRestartableServlet()
          Determines whether or not the LDAP AuthsP 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

LDAPAuthSP

public LDAPAuthSP()
Method Detail

init

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

Description:
Performs the following steps to initialise the LDAPAuthSP:
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)

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)

isRestartableServlet

protected boolean isRestartableServlet()
Determines whether or not the LDAP AuthsP is restartable.

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


Copyright © 2008 SURFnet BV. All Rights Reserved.