public class CaClientExample extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CaClientExample.MyKeypair |
| Constructor and Description |
|---|
CaClientExample() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.bouncycastle.operator.ContentSigner |
buildSigner(PrivateKey signingKey,
String hashAlgo) |
protected static String |
expandPath(String path) |
protected static org.bouncycastle.asn1.pkcs.CertificationRequest |
genCsr(CaClientExample.MyKeypair keypair,
String subject) |
protected static org.bouncycastle.asn1.pkcs.CertificationRequest |
genCsr(CaClientExample.MyKeypair keypair,
String subject,
String challengePassword) |
protected static CaClientExample.MyKeypair |
generateDsaKeypair() |
protected static CaClientExample.MyKeypair |
generateEcKeypair() |
protected static CaClientExample.MyKeypair |
generateRsaKeypair() |
protected static void |
printCert(String prefix,
X509Certificate cert) |
protected static void |
printKeyAndCert(String prefix,
KeyAndCert keyAndCert) |
protected static CaClientExample.MyKeypair generateRsaKeypair() throws Exception
Exceptionprotected static CaClientExample.MyKeypair generateEcKeypair() throws GeneralSecurityException
GeneralSecurityExceptionprotected static CaClientExample.MyKeypair generateDsaKeypair() throws Exception
Exceptionprotected static org.bouncycastle.asn1.pkcs.CertificationRequest genCsr(CaClientExample.MyKeypair keypair, String subject) throws GeneralSecurityException, org.bouncycastle.operator.OperatorCreationException
GeneralSecurityExceptionorg.bouncycastle.operator.OperatorCreationExceptionprotected static org.bouncycastle.asn1.pkcs.CertificationRequest genCsr(CaClientExample.MyKeypair keypair, String subject, String challengePassword) throws GeneralSecurityException, org.bouncycastle.operator.OperatorCreationException
GeneralSecurityExceptionorg.bouncycastle.operator.OperatorCreationExceptionprotected static void printKeyAndCert(String prefix, KeyAndCert keyAndCert) throws CertificateEncodingException, IOException
protected static void printCert(String prefix, X509Certificate cert) throws CertificateEncodingException
CertificateEncodingExceptionprotected static org.bouncycastle.operator.ContentSigner buildSigner(PrivateKey signingKey, String hashAlgo) throws org.bouncycastle.operator.OperatorCreationException
org.bouncycastle.operator.OperatorCreationExceptionCopyright © 2018. All rights reserved.