public abstract class CmpCaClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.bouncycastle.asn1.x509.GeneralName |
responderSubject |
| Constructor and Description |
|---|
CmpCaClient(String caUri,
X509Certificate caCert,
org.bouncycastle.asn1.x500.X500Name requestorSubject,
org.bouncycastle.asn1.x500.X500Name responderSubject,
String hashAlgo) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.bouncycastle.cert.cmp.ProtectedPKIMessage |
build(org.bouncycastle.cert.cmp.ProtectedPKIMessageBuilder builder) |
protected org.bouncycastle.operator.ContentSigner |
buildSigner(PrivateKey signingKey) |
protected abstract byte[] |
decrypt(org.bouncycastle.asn1.crmf.EncryptedValue ev) |
X509Certificate[] |
enrollCertsViaCrmf(String[] certprofiles,
PrivateKey[] privateKey,
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo[] publicKeyInfo,
String[] subject,
boolean profileInUri) |
KeyAndCert[] |
enrollCertsViaCrmfCaGenKeypair(String[] certprofiles,
String[] subject,
boolean profileAndMetaInUri) |
X509Certificate |
enrollCertViaCrmf(String certprofile,
PrivateKey privateKey,
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo,
String subject,
boolean profileInUri) |
KeyAndCert |
enrollCertViaCrmfCaGenKeypair(String certprofile,
String subject,
boolean profileAndMetaInUri) |
X509Certificate |
enrollCertViaCsr(String certprofile,
org.bouncycastle.asn1.pkcs.CertificationRequest csr,
boolean profileInUri) |
X509Certificate |
getCaCert() |
void |
init() |
boolean |
revokeCert(BigInteger serialNumber,
org.bouncycastle.asn1.x509.CRLReason reason) |
byte[] |
send(byte[] request,
String uri) |
void |
shutdown() |
boolean |
unrevokeCert(BigInteger serialNumber) |
X509Certificate[] |
updateCertsViaCrmf(PrivateKey[] privateKey,
org.bouncycastle.asn1.x500.X500Name issuer,
BigInteger[] oldCertSerialNumbers) |
KeyAndCert[] |
updateCertsViaCrmfCaGenKeypair(org.bouncycastle.asn1.x500.X500Name issuer,
BigInteger[] oldCertSerialNumbers,
boolean profileAndMetaInUri) |
X509Certificate |
updateCertViaCrmf(PrivateKey privateKey,
org.bouncycastle.asn1.x500.X500Name issuer,
BigInteger oldCertSerialNumber) |
KeyAndCert |
updateCertViaCrmfCaGenKeypair(org.bouncycastle.asn1.x500.X500Name issuer,
BigInteger oldCertSerialNumber,
boolean profileAndMetaInUri) |
protected abstract boolean |
verifyProtection(org.bouncycastle.cert.cmp.GeneralPKIMessage pkiMessage) |
protected final org.bouncycastle.asn1.x509.GeneralName responderSubject
public CmpCaClient(String caUri, X509Certificate caCert, org.bouncycastle.asn1.x500.X500Name requestorSubject, org.bouncycastle.asn1.x500.X500Name responderSubject, String hashAlgo) throws Exception
Exceptionpublic void shutdown()
public X509Certificate getCaCert()
protected abstract org.bouncycastle.cert.cmp.ProtectedPKIMessage build(org.bouncycastle.cert.cmp.ProtectedPKIMessageBuilder builder)
throws Exception
Exceptionprotected abstract boolean verifyProtection(org.bouncycastle.cert.cmp.GeneralPKIMessage pkiMessage)
throws Exception
Exceptionpublic X509Certificate enrollCertViaCsr(String certprofile, org.bouncycastle.asn1.pkcs.CertificationRequest csr, boolean profileInUri) throws Exception
Exceptionpublic X509Certificate enrollCertViaCrmf(String certprofile, PrivateKey privateKey, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo, String subject, boolean profileInUri) throws Exception
Exceptionpublic X509Certificate[] enrollCertsViaCrmf(String[] certprofiles, PrivateKey[] privateKey, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo[] publicKeyInfo, String[] subject, boolean profileInUri) throws Exception
Exceptionpublic KeyAndCert enrollCertViaCrmfCaGenKeypair(String certprofile, String subject, boolean profileAndMetaInUri) throws Exception
Exceptionpublic KeyAndCert[] enrollCertsViaCrmfCaGenKeypair(String[] certprofiles, String[] subject, boolean profileAndMetaInUri) throws Exception
Exceptionpublic X509Certificate updateCertViaCrmf(PrivateKey privateKey, org.bouncycastle.asn1.x500.X500Name issuer, BigInteger oldCertSerialNumber) throws Exception
Exceptionpublic X509Certificate[] updateCertsViaCrmf(PrivateKey[] privateKey, org.bouncycastle.asn1.x500.X500Name issuer, BigInteger[] oldCertSerialNumbers) throws Exception
Exceptionpublic KeyAndCert updateCertViaCrmfCaGenKeypair(org.bouncycastle.asn1.x500.X500Name issuer, BigInteger oldCertSerialNumber, boolean profileAndMetaInUri) throws Exception
Exceptionpublic KeyAndCert[] updateCertsViaCrmfCaGenKeypair(org.bouncycastle.asn1.x500.X500Name issuer, BigInteger[] oldCertSerialNumbers, boolean profileAndMetaInUri) throws Exception
Exceptionpublic boolean revokeCert(BigInteger serialNumber, org.bouncycastle.asn1.x509.CRLReason reason) throws Exception
Exceptionpublic boolean unrevokeCert(BigInteger serialNumber) throws Exception
Exceptionpublic byte[] send(byte[] request,
String uri)
throws IOException
IOExceptionprotected abstract byte[] decrypt(org.bouncycastle.asn1.crmf.EncryptedValue ev)
throws Exception
Exceptionprotected org.bouncycastle.operator.ContentSigner buildSigner(PrivateKey signingKey) throws org.bouncycastle.operator.OperatorCreationException
org.bouncycastle.operator.OperatorCreationExceptionCopyright © 2018. All rights reserved.