com.netscape.cms.servlet.csadmin
Class CertUtil
java.lang.Object
com.netscape.cms.servlet.csadmin.CertUtil
public class CertUtil
- extends java.lang.Object
Method Summary |
static void |
addUserCertificate(netscape.security.x509.X509CertImpl cert)
|
static netscape.security.x509.X509CertImpl |
createLocalCert(IConfigStore config,
netscape.security.x509.X509Key x509key,
java.lang.String prefix,
java.lang.String certTag,
java.lang.String type,
org.apache.velocity.context.Context context)
|
static IRequest |
createLocalRequest(IRequestQueue queue,
java.lang.String serialNum,
netscape.security.x509.X509CertInfo info)
|
static netscape.security.x509.X509CertImpl |
createRemoteCert(java.lang.String hostname,
int port,
java.lang.String content,
javax.servlet.http.HttpServletResponse response,
WizardPanelBase panel)
|
static java.lang.String |
fingerPrintFormat(java.lang.String content)
|
static java.lang.String |
getAdminProfileAlgorithm(IConfigStore config)
reads from the admin cert profile caAdminCert.profile and takes the first
entry in the list of allowed algorithms. |
static java.lang.String |
getPKCS10(IConfigStore config,
java.lang.String prefix,
Cert certObj,
org.apache.velocity.context.Context context)
|
static boolean |
privateKeyExistsOnToken(java.lang.String certTag,
java.lang.String tokenname,
java.lang.String nickname)
|
static void |
updateLocalRequest(IConfigStore config,
java.lang.String certTag,
java.lang.String certReq,
java.lang.String reqType,
java.lang.String subjectName)
update local cert request with the actual request
called from CertRequestPanel.java |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CertUtil
public CertUtil()
createRemoteCert
public static netscape.security.x509.X509CertImpl createRemoteCert(java.lang.String hostname,
int port,
java.lang.String content,
javax.servlet.http.HttpServletResponse response,
WizardPanelBase panel)
throws java.io.IOException
- Throws:
java.io.IOException
getPKCS10
public static java.lang.String getPKCS10(IConfigStore config,
java.lang.String prefix,
Cert certObj,
org.apache.velocity.context.Context context)
throws java.io.IOException
- Throws:
java.io.IOException
createLocalRequest
public static IRequest createLocalRequest(IRequestQueue queue,
java.lang.String serialNum,
netscape.security.x509.X509CertInfo info)
throws EBaseException
- Throws:
EBaseException
updateLocalRequest
public static void updateLocalRequest(IConfigStore config,
java.lang.String certTag,
java.lang.String certReq,
java.lang.String reqType,
java.lang.String subjectName)
- update local cert request with the actual request
called from CertRequestPanel.java
getAdminProfileAlgorithm
public static java.lang.String getAdminProfileAlgorithm(IConfigStore config)
- reads from the admin cert profile caAdminCert.profile and takes the first
entry in the list of allowed algorithms. Users that wish a different algorithm
can specify it in the profile using default.params.signingAlg
createLocalCert
public static netscape.security.x509.X509CertImpl createLocalCert(IConfigStore config,
netscape.security.x509.X509Key x509key,
java.lang.String prefix,
java.lang.String certTag,
java.lang.String type,
org.apache.velocity.context.Context context)
throws java.io.IOException
- Throws:
java.io.IOException
addUserCertificate
public static void addUserCertificate(netscape.security.x509.X509CertImpl cert)
fingerPrintFormat
public static java.lang.String fingerPrintFormat(java.lang.String content)
privateKeyExistsOnToken
public static boolean privateKeyExistsOnToken(java.lang.String certTag,
java.lang.String tokenname,
java.lang.String nickname)