ch.othello.openscep.servlet
Class BasicRequestServlet
java.lang.Object
|
+--Acme.Serve.servlet.GenericServlet
|
+--Acme.Serve.servlet.http.HttpServlet
|
+--ch.othello.openscep.servlet.BasicServlet
|
+--ch.othello.openscep.servlet.BasicRequestServlet
- All Implemented Interfaces:
- Serializable, Acme.Serve.servlet.Servlet
- Direct Known Subclasses:
- MicrosoftRequestServlet, NetscapeRequestServlet
- public abstract class BasicRequestServlet
- extends BasicServlet
Scep Http Servlet for a Netscape Certification Request
$Id: BasicRequestServlet.java,v 1.11 2002/03/02 01:40:49 alani Exp $
$Log: BasicRequestServlet.java,v $
Revision 1.11 2002/03/02 01:40:49 alani
made this class abstract
code cleaning
Revision 1.10 2002/02/27 04:12:26 alani
chunked cookie is now only 500 bytes
add expires= to cookie
Revision 1.9 2002/02/24 23:55:32 alani
added decorator functionality, it depends on the forceChallenge property now if the user is asked for a challenge password
Revision 1.8 2002/02/24 22:27:22 alani
added chunking of state data into several cookies if the data
is bigger than 4000 bytes
Revision 1.7 2002/02/23 23:05:38 alani
renamed SPKAC field to CERTREQ
made redirect to pollservlet independent of the browser type
Revision 1.6 2002/02/23 00:02:47 alani
refactoring the servlet classes, fixed some errors in BasicRequest & BasicPoll Servlets
Revision 1.5 2002/02/22 07:40:05 alani
fixed & improved Polling for requests
Revision 1.4 2002/02/22 01:30:42 alani
correctly set the attributes caCert, pubKey, privKey, subject, subjectSCEP and communityString
Revision 1.3 2002/02/14 21:45:37 alani
made servlet output internationalized
added redirection with browser detection for unknown urls
Revision 1.2 2002/02/14 17:18:17 alani
fixed NetscapeRequest, first try at polling
Revision 1.1 2002/02/13 12:00:05 alani
web servlets refactored
Revision 1.1 2002/01/24 13:14:54 alani
wrote HttpClient
- Since:
- $Date: 2002/03/02 01:40:49 $
- Version:
- $Revision: 1.11 $
- Author:
- See Also:
- Serialized Form
Fields inherited from class Acme.Serve.servlet.GenericServlet |
|
Method Summary |
void |
askForChallenge(Acme.Serve.servlet.http.HttpServletRequest req,
Acme.Serve.servlet.http.HttpServletResponse response)
|
protected abstract void |
browserCertificateRequest(Acme.Serve.servlet.http.HttpServletRequest req)
|
protected String |
getParam(Acme.Serve.servlet.http.HttpServletRequest req,
String name)
|
protected void |
installCertificate(Acme.Serve.servlet.http.HttpServletResponse response,
Acme.Serve.servlet.ServletOutputStream p)
|
void |
sendCertificateRequest(Acme.Serve.servlet.http.HttpServletRequest req,
Acme.Serve.servlet.http.HttpServletResponse response)
|
void |
sendEnrollmentForm(Acme.Serve.servlet.http.HttpServletRequest req,
Acme.Serve.servlet.http.HttpServletResponse response)
|
abstract void |
sendFormFooter(Acme.Serve.servlet.http.HttpServletRequest req,
Acme.Serve.servlet.ServletOutputStream p)
|
abstract void |
sendFormHeader(Acme.Serve.servlet.ServletOutputStream p)
|
void |
sendPendingPage(Acme.Serve.servlet.http.HttpServletResponse response,
Acme.Serve.servlet.ServletOutputStream p)
|
void |
service(Acme.Serve.servlet.http.HttpServletRequest req,
Acme.Serve.servlet.http.HttpServletResponse response)
|
void |
textBox(Acme.Serve.servlet.ServletOutputStream p,
String name,
int size)
|
Methods inherited from class Acme.Serve.servlet.http.HttpServlet |
service |
Methods inherited from class Acme.Serve.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, init, init, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicRequestServlet
public BasicRequestServlet()
service
public void service(Acme.Serve.servlet.http.HttpServletRequest req,
Acme.Serve.servlet.http.HttpServletResponse response)
throws Acme.Serve.servlet.ServletException,
IOException
- Overrides:
service
in class BasicServlet
Acme.Serve.servlet.ServletException
IOException
askForChallenge
public void askForChallenge(Acme.Serve.servlet.http.HttpServletRequest req,
Acme.Serve.servlet.http.HttpServletResponse response)
throws Acme.Serve.servlet.ServletException,
IOException
Acme.Serve.servlet.ServletException
IOException
textBox
public void textBox(Acme.Serve.servlet.ServletOutputStream p,
String name,
int size)
throws IOException
IOException
sendFormHeader
public abstract void sendFormHeader(Acme.Serve.servlet.ServletOutputStream p)
throws IOException
IOException
sendFormFooter
public abstract void sendFormFooter(Acme.Serve.servlet.http.HttpServletRequest req,
Acme.Serve.servlet.ServletOutputStream p)
throws IOException
IOException
sendEnrollmentForm
public void sendEnrollmentForm(Acme.Serve.servlet.http.HttpServletRequest req,
Acme.Serve.servlet.http.HttpServletResponse response)
throws Acme.Serve.servlet.ServletException,
IOException
Acme.Serve.servlet.ServletException
IOException
sendPendingPage
public void sendPendingPage(Acme.Serve.servlet.http.HttpServletResponse response,
Acme.Serve.servlet.ServletOutputStream p)
throws IOException
IOException
getParam
protected String getParam(Acme.Serve.servlet.http.HttpServletRequest req,
String name)
sendCertificateRequest
public void sendCertificateRequest(Acme.Serve.servlet.http.HttpServletRequest req,
Acme.Serve.servlet.http.HttpServletResponse response)
throws Acme.Serve.servlet.ServletException,
IOException
Acme.Serve.servlet.ServletException
IOException
installCertificate
protected void installCertificate(Acme.Serve.servlet.http.HttpServletResponse response,
Acme.Serve.servlet.ServletOutputStream p)
throws IOException
IOException
browserCertificateRequest
protected abstract void browserCertificateRequest(Acme.Serve.servlet.http.HttpServletRequest req)
ScepClient is copyright by Ueli Rutishauser + Alain Schaefer