org.aselect.authspserver.authsp.ip
Class IPAuthSP
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.aselect.system.servlet.ASelectHttpServlet
org.aselect.authspserver.authsp.ip.IPAuthSP
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class IPAuthSP
- extends ASelectHttpServlet
A-Select IP AuthSP
Description:
This Authentication Service Provider (AuthSP) handles
authentication requests based on valid IP Ranges
- Author:
- Alfa & Ariss
- See Also:
- Serialized Form
Method Summary |
protected void |
doGet(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
Process requests for the HTTP GET method. |
void |
init(javax.servlet.ServletConfig oServletConfig)
Initialization of the IP AuthSP. |
protected boolean |
isRestartableServlet()
Determines whether or not the IP AuthsP is restartable. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPost, 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 |
IPAuthSP
public IPAuthSP()
init
public void init(javax.servlet.ServletConfig oServletConfig)
throws javax.servlet.ServletException
- Initialization of the IP AuthSP.
Description:
Performs the following steps to initialise the IPAuthSP
:
- Retrieve handles to managers and loggers
- Retrieve crypto engine from servlet context
- Retrieve friendly name from servlet context
- Retrieve working_dir from servlet context
- Retrieve config_id from web.xml
- Get all ip ranges from configuration
- Load error properties
- Load HTML templates
- Get failure handling from configuration
Preconditions:
- The AuthSPServer must be succesfully started
- An error config file must exist
- An error template file must exist
-
An IP 'authsp' config section must be available in the configuration
of the AuthSP Server.
The id of this section must be available as 'config_id'
servlet init paramater.
- 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 javax.servlet.ServletException,
java.io.IOException
- Process requests for the HTTP
GET
method.
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
- See Also:
HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
isRestartableServlet
protected boolean isRestartableServlet()
- Determines whether or not the IP 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.