org.aselect.authspserver.authsp.radius
Class RadiusAuthSP
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.aselect.system.servlet.ASelectHttpServlet
org.aselect.authspserver.authsp.radius.RadiusAuthSP
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class RadiusAuthSP
- extends ASelectHttpServlet
The Radius AuthSP.
Description:
The Radius AuthSP is able to authenticate users against a
Radius Server/Back-end based on the
Concurrency issues:
None
Protocol Description
Incoming request from the A-Select Server (Radius Protocol Handler):
name |
value |
rid | A-Select Server request id |
result_code | AuthSP result code |
a-select-server | A-Select Server ID |
signature | Generated signature of all paramaters in the above sequence |
Outgoing response which will be returned to the A-Select Server (Radius Protocol Handler):
name |
value |
rid | A-Select Server request id |
result_code | AuthSP result code |
a-select-server | A-Select Server ID |
signature | Generated signature of all paramaters in the above sequence |
Note: The Algorithm and the JCE Provider used to generate the signatures
is configurable in the AuthSP Server config and must be the same as on the
A-Select Server otherwise generated signatures will never be valid.
- Author:
- Alfa & Ariss
- See Also:
- Serialized Form
Method Summary |
protected void |
doGet(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
Entrypoint for handling the A-Select Radius AuthSP protocol requests from
the A-Select Server. |
protected void |
doPost(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
Private entry point of the Radius AuthSP. |
void |
init(javax.servlet.ServletConfig servletConfig)
Initializes the Radius AuthSP. |
protected boolean |
isRestartableServlet()
Determines whether or not the Radius AuthSP is restartable. |
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 |
RadiusAuthSP
public RadiusAuthSP()
init
public void init(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
- Initializes the Radius AuthSP.
Description:
The Radius AuthSP uses the following components from the A-Select AuthSP
Server:
- Retrieving the Crypto Engine from the servlet context.
- Reading the friendly_name and working_dir from the servlet Context.
- Loading the radius AuthSP Configuration from the AuthSP Server Config.
- Loading the authenticate.html and error.html Template files.
- 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
- Entrypoint for handling the A-Select Radius AuthSP protocol requests from
the A-Select Server.
- 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)
doPost
protected void doPost(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
throws javax.servlet.ServletException,
java.io.IOException
- Private entry point of the Radius AuthSP.
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
- See Also:
HttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
isRestartableServlet
protected boolean isRestartableServlet()
- Determines whether or not the Radius 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.