|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.aselect.authspserver.authsp.pki.PKIAuthSP
public class PKIAuthSP
PKI AuthSP.
Description:
The PKI AuthSP implements PKI-based authentication for A-Select 1.4.1 through
CA validation, Backend validation and optionally 2-Factor authentication.
Requirements:
Field Summary | |
---|---|
static java.lang.String |
MODULE
The name of this module, that is used in the system logging. |
Constructor Summary | |
---|---|
PKIAuthSP()
|
Method Summary | |
---|---|
void |
destroy()
Destroys the PKIManager with all its threads. |
protected void |
doGet(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
Entrypoint for handling the A-Select PKI AuthSP protocol requests. |
protected void |
doPost(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
Entrypoint for handling 2-Factor user input form. |
void |
handleAuthenticate(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
Handles the PKI authentication. |
void |
init(javax.servlet.ServletConfig oServletConfig)
Initializes the PKI AuthSP |
void |
initHtmlTemplates()
Initializes the HTML Templates. |
boolean |
validateBinaryBlob(java.lang.Object oConfig,
java.lang.String sSubjectDn,
java.security.cert.X509Certificate oClientCert)
Validates the the binary blob of the incoming client certificate. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
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 |
---|
public static final java.lang.String MODULE
Constructor Detail |
---|
public PKIAuthSP()
Method Detail |
---|
public void init(javax.servlet.ServletConfig oServletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
Servlet.init(javax.servlet.ServletConfig)
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
GenericServlet.destroy()
public void initHtmlTemplates() throws javax.servlet.ServletException
javax.servlet.ServletException
- when a template file can't be found or read.protected void doPost(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
HttpServlet.doPost(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
protected void doGet(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
HttpServlet.doGet(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
public void handleAuthenticate(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws javax.servlet.ServletException
servletRequest
- Incoming RequestservletResponse
- Outgoing Response
javax.servlet.ServletException
- If something goes wrong with the handle resultpublic boolean validateBinaryBlob(java.lang.Object oConfig, java.lang.String sSubjectDn, java.security.cert.X509Certificate oClientCert) throws ASelectException
oConfig
- The binary blob configurationsSubjectDn
- The Id used as index in the backendoClientCert
- The incoming client certificate
ASelectException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |