|
||||||||||
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
com.netscape.cms.servlet.base.CMSServlet
com.netscape.cms.servlet.cert.EnrollServlet
public class EnrollServlet
Submit a Certificate Enrollment request
Field Summary | |
---|---|
static java.lang.String |
ADMIN_ENROLL_SERVLET_ID
|
static java.lang.String |
CERT_TYPE
|
static java.lang.String |
CHALLENGE_PASSWORD
|
static java.lang.String |
CMC_REQUEST
|
static java.lang.String |
CRMF_REQID
|
static java.lang.String |
CRMF_REQUEST
|
static java.lang.String |
ENROLL_SUCCESS_TEMPLATE
|
static java.lang.String |
OLD_CERT_TYPE
|
static java.lang.String |
PKCS10_REQUEST
|
static java.lang.String |
REQUEST_CONTENT
|
static java.lang.String |
REQUEST_FORMAT
|
static java.lang.String |
REQUEST_FORMAT_CMC
|
static java.lang.String |
REQUEST_FORMAT_PKCS10
|
static java.lang.String |
SUBJECT_KEYGEN_INFO
|
static java.lang.String |
SUBJECT_NAME
|
Constructor Summary | |
---|---|
EnrollServlet()
|
Method Summary | |
---|---|
protected void |
addAdminAgent(CMSRequest cmsReq,
netscape.security.x509.X509CertImpl[] issuedCerts)
|
protected void |
checkAdminEnroll(CMSRequest cmsReq,
netscape.security.x509.X509CertImpl[] issuedCerts)
check if this is first enroll from admin enroll. |
boolean |
getEnforcePop()
XXX (SHOULD CHANGE TO READ FROM Servletconfig) Getter method to see if Proof of Posession checking is enabled. |
void |
init(javax.servlet.ServletConfig sc)
initialize the servlet. |
protected void |
process(CMSRequest cmsReq)
Process the HTTP request. |
protected void |
processX509(CMSRequest cmsReq)
Process X509 certificate enrollment request |
protected void |
renderServerEnrollResult(CMSRequest cmsReq)
|
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, 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 |
Field Detail |
---|
public static final java.lang.String ADMIN_ENROLL_SERVLET_ID
public static final java.lang.String ENROLL_SUCCESS_TEMPLATE
public static final java.lang.String OLD_CERT_TYPE
public static final java.lang.String CERT_TYPE
public static final java.lang.String REQUEST_FORMAT
public static final java.lang.String REQUEST_FORMAT_PKCS10
public static final java.lang.String REQUEST_FORMAT_CMC
public static final java.lang.String REQUEST_CONTENT
public static final java.lang.String SUBJECT_KEYGEN_INFO
public static final java.lang.String PKCS10_REQUEST
public static final java.lang.String CMC_REQUEST
public static final java.lang.String CRMF_REQUEST
public static final java.lang.String SUBJECT_NAME
public static final java.lang.String CRMF_REQID
public static final java.lang.String CHALLENGE_PASSWORD
Constructor Detail |
---|
public EnrollServlet()
Method Detail |
---|
public void init(javax.servlet.ServletConfig sc) throws javax.servlet.ServletException
the following parameters are read from the servlet config:
init
in interface javax.servlet.Servlet
init
in class CMSServlet
sc
- servlet configuration, read from the web.xml file
javax.servlet.ServletException
public boolean getEnforcePop()
protected void process(CMSRequest cmsReq) throws EBaseException
process
in class CMSServlet
cmsReq
- the object holding the request and response information
EBaseException
- if the servlet was unable to satisfactorily
process the requestprotected void processX509(CMSRequest cmsReq) throws EBaseException
(Certificate Request - either an "admin" cert request for an admin certificate, an "agent" cert request for "bulk enrollment", or an "EE" standard cert request)
(Certificate Request Processed - either an automated "admin" non-profile based CA admin cert acceptance, an automated "admin" non-profile based CA admin cert rejection, an automated "EE" non-profile based cert acceptance, or an automated "EE" non-profile based cert rejection)
cmsReq
- a certificate enrollment request
EBaseException
- an error has occurredprotected void checkAdminEnroll(CMSRequest cmsReq, netscape.security.x509.X509CertImpl[] issuedCerts) throws EBaseException
EBaseException
protected void addAdminAgent(CMSRequest cmsReq, netscape.security.x509.X509CertImpl[] issuedCerts) throws EBaseException
EBaseException
protected void renderServerEnrollResult(CMSRequest cmsReq) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |