public class CRSEnrollment
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUTH_CREDS |
static java.lang.String |
AUTH_FAILED |
static java.lang.String |
AUTH_PASSWORD |
static java.lang.String |
AUTH_TOKEN |
static java.lang.String |
CERTINFO |
protected java.lang.String |
mAppendDN |
protected ICertAuthority |
mAuthority |
protected IAuthSubsystem |
mAuthSubsystem |
protected IConfigStore |
mConfig |
protected boolean |
mCreateEntry |
protected java.lang.String |
mEntryObjectclass |
protected boolean |
mFlattenDN |
protected ILogger |
mLogger |
protected java.lang.String |
mProfileId |
protected IProfileSubsystem |
mProfileSubsystem |
protected java.security.MessageDigest |
mSHADigest |
static netscape.security.util.ObjectIdentifier |
OID_SERIALNUMBER |
static netscape.security.util.ObjectIdentifier |
OID_UNSTRUCTUREDADDRESS |
static netscape.security.util.ObjectIdentifier |
OID_UNSTRUCTUREDNAME |
static java.lang.String |
SANE_DNSNAME |
static java.lang.String |
SANE_IPADDRESS |
static java.lang.String |
SUBJECTNAME |
| Constructor and Description |
|---|
CRSEnrollment() |
| Modifier and Type | Method and Description |
|---|---|
IAuthToken |
authenticate(AuthCredentials credentials,
IProfileAuthenticator authenticator,
javax.servlet.http.HttpServletRequest request) |
void |
decodePKIMessage(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse httpResp,
java.lang.String msg)
Decodes the PKI message and return information to RA.
|
IRequest |
findRequestByTransactionID(java.lang.String txid,
boolean ignoreRejected)
finds a request with this transaction ID.
|
java.lang.String |
getPasswordFromP10(netscape.security.pkcs.PKCS10 p10) |
void |
handleGetCACert(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse httpResp)
Return the CA certificate back to the requestor.
|
netscape.security.x509.X509CertImpl |
handleGetCertInitial(CRSPKIMessage req,
CRSPKIMessage resp)
Called if the router is requesting us to send it its certificate
Examine request queue for a request matching the transaction ID.
|
netscape.security.x509.X509CertImpl |
handlePKCSReq(javax.servlet.http.HttpServletRequest httpReq,
IRequest cmsRequest,
CRSPKIMessage req,
CRSPKIMessage crsResp,
com.netscape.cms.servlet.cert.scep.CRSEnrollment.CryptoContext cx) |
void |
handlePKIOperation(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse httpResp,
java.lang.String msg)
finds a request with this transaction ID.
|
protected java.lang.String |
hashPassword(java.lang.String pwd) |
void |
init(javax.servlet.ServletConfig sc) |
java.util.Hashtable<java.lang.String,byte[]> |
makeFingerPrints(CRSPKIMessage req) |
void |
service(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse httpResp)
Service a CRS Request.
|
static java.util.Hashtable<java.lang.String,java.lang.String> |
toHashtable(javax.servlet.http.HttpServletRequest req) |
void |
unwrapPKCS10(CRSPKIMessage req,
com.netscape.cms.servlet.cert.scep.CRSEnrollment.CryptoContext cx)
Here we decrypt the PKCS10 message from the client
|
void |
verifyRequest(CRSPKIMessage req,
com.netscape.cms.servlet.cert.scep.CRSEnrollment.CryptoContext cx) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected IProfileSubsystem mProfileSubsystem
protected java.lang.String mProfileId
protected ICertAuthority mAuthority
protected IConfigStore mConfig
protected IAuthSubsystem mAuthSubsystem
protected java.lang.String mAppendDN
protected java.lang.String mEntryObjectclass
protected boolean mCreateEntry
protected boolean mFlattenDN
protected ILogger mLogger
protected java.security.MessageDigest mSHADigest
public static final java.lang.String AUTH_PASSWORD
public static final java.lang.String AUTH_CREDS
public static final java.lang.String AUTH_TOKEN
public static final java.lang.String AUTH_FAILED
public static final java.lang.String SANE_DNSNAME
public static final java.lang.String SANE_IPADDRESS
public static final java.lang.String CERTINFO
public static final java.lang.String SUBJECTNAME
public static netscape.security.util.ObjectIdentifier OID_UNSTRUCTUREDNAME
public static netscape.security.util.ObjectIdentifier OID_UNSTRUCTUREDADDRESS
public static netscape.security.util.ObjectIdentifier OID_SERIALNUMBER
public static java.util.Hashtable<java.lang.String,java.lang.String> toHashtable(javax.servlet.http.HttpServletRequest req)
public void init(javax.servlet.ServletConfig sc)
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletpublic void service(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse httpResp)
throws javax.servlet.ServletException
service in class javax.servlet.http.HttpServlethttpReq - The HttpServletRequest.httpResp - The HttpServletResponse.javax.servlet.ServletExceptionpublic IAuthToken authenticate(AuthCredentials credentials, IProfileAuthenticator authenticator, javax.servlet.http.HttpServletRequest request) throws EBaseException
EBaseExceptionpublic void handleGetCACert(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse httpResp)
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic java.lang.String getPasswordFromP10(netscape.security.pkcs.PKCS10 p10)
public void decodePKIMessage(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse httpResp,
java.lang.String msg)
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic void handlePKIOperation(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse httpResp,
java.lang.String msg)
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic IRequest findRequestByTransactionID(java.lang.String txid, boolean ignoreRejected) throws EBaseException
EBaseExceptionpublic netscape.security.x509.X509CertImpl handleGetCertInitial(CRSPKIMessage req, CRSPKIMessage resp)
public void verifyRequest(CRSPKIMessage req, com.netscape.cms.servlet.cert.scep.CRSEnrollment.CryptoContext cx) throws com.netscape.cms.servlet.cert.scep.CRSEnrollment.CRSInvalidSignatureException
com.netscape.cms.servlet.cert.scep.CRSEnrollment.CRSInvalidSignatureExceptionpublic void unwrapPKCS10(CRSPKIMessage req, com.netscape.cms.servlet.cert.scep.CRSEnrollment.CryptoContext cx) throws javax.servlet.ServletException, org.mozilla.jss.CryptoManager.NotInitializedException, com.netscape.cms.servlet.cert.scep.CRSEnrollment.CryptoContext.CryptoContextException, com.netscape.cms.servlet.cert.scep.CRSEnrollment.CRSFailureException
javax.servlet.ServletExceptionorg.mozilla.jss.CryptoManager.NotInitializedExceptioncom.netscape.cms.servlet.cert.scep.CRSEnrollment.CryptoContext.CryptoContextExceptioncom.netscape.cms.servlet.cert.scep.CRSEnrollment.CRSFailureExceptionpublic netscape.security.x509.X509CertImpl handlePKCSReq(javax.servlet.http.HttpServletRequest httpReq,
IRequest cmsRequest,
CRSPKIMessage req,
CRSPKIMessage crsResp,
com.netscape.cms.servlet.cert.scep.CRSEnrollment.CryptoContext cx)
throws javax.servlet.ServletException,
org.mozilla.jss.CryptoManager.NotInitializedException,
com.netscape.cms.servlet.cert.scep.CRSEnrollment.CRSFailureException
javax.servlet.ServletExceptionorg.mozilla.jss.CryptoManager.NotInitializedExceptioncom.netscape.cms.servlet.cert.scep.CRSEnrollment.CRSFailureExceptionpublic java.util.Hashtable<java.lang.String,byte[]> makeFingerPrints(CRSPKIMessage req)
protected java.lang.String hashPassword(java.lang.String pwd)