|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.service.security.securityprovider.CertificateSigner
public class CertificateSigner
Certificate Signing Utility class.
Acknowledgement: Part of the jCertServices package
A Class to sign certificate requests. It uses the Legion of The Boucy Castle JCE provider (jce-jdk13-117.jar) available at http://www.bouncycastle.org/
| Constructor Summary | |
|---|---|
CertificateSigner()
|
|
| Method Summary | |
|---|---|
static void |
save(X509Certificate _signedCert,
OutputStream os)
Save a signed certificate (PEM encoded) |
static X509Certificate |
signCertificate(CertificateManager certMan,
InputStream inCertRq,
String caPwd)
Signs a Cert request (CSR) |
static X509Certificate |
signCertificate(CertificateManager certMan,
String certRqPath,
String caPwd)
CertSigner Constructor: Reads a cert request and signs it with a set of CA certs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CertificateSigner()
| Method Detail |
|---|
public static X509Certificate signCertificate(CertificateManager certMan,
String certRqPath,
String caPwd)
throws Exception
certRqPath - Full path to the CSR (Cert request)caCertPath - Full path to the CA cert (PEM)caKeyPath - Full path to the CA key (PEM)caPwd - CA password
IOException
NoSuchAlgorithmException
NoSuchProviderException
InvalidKeyException
GeneralSecurityException
Exception
public static X509Certificate signCertificate(CertificateManager certMan,
InputStream inCertRq,
String caPwd)
throws Exception
inCertRq - CSR Input streamcaPwd - CA password
IOException
NoSuchAlgorithmException
NoSuchProviderException
InvalidKeyException
GeneralSecurityException
Exception
public static void save(X509Certificate _signedCert,
OutputStream os)
throws IOException,
CertificateEncodingException
os - Stream where the cert is to be saved
IOException - if a save error occurs
CertificateEncodingException - if a PEM encoding error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||