public interface CmpClient extends Closeable
| Modifier and Type | Method and Description |
|---|---|
X509CRL |
downloadCrl(String caName,
BigInteger crlNumber,
org.xipki.util.ReqRespDebug debug)
Downloads the CRL for the given CRL number.
|
X509CRL |
downloadCrl(String caName,
org.xipki.util.ReqRespDebug debug)
Downloads the current CRL.
|
EnrollCertResult |
enrollCert(String caName,
org.bouncycastle.asn1.pkcs.CertificationRequest csr,
String profile,
Date notBefore,
Date notAfter,
org.xipki.util.ReqRespDebug debug)
Enrolls a certificate.
|
EnrollCertResult |
enrollCerts(String caName,
EnrollCertRequest request,
org.xipki.util.ReqRespDebug debug)
Enrolls a set of certificates.
|
X509CRL |
generateCrl(String caName,
org.xipki.util.ReqRespDebug debug)
Generates and downloads a new CRL.
|
X509Certificate |
getCaCert(String caName)
Returns the CA certificate.
|
List<X509Certificate> |
getCaCertchain(String caName)
Returns the CA certificate chain.
|
org.bouncycastle.asn1.x500.X500Name |
getCaCertSubject(String caName)
Returns the subject of CA certificate.
|
String |
getCaNameByIssuer(org.bouncycastle.asn1.x500.X500Name issuer)
Gets the name of the CA.
|
String |
getCaNameForProfile(String certprofile)
Returns name of CA that supports give
certprofile. |
Set<String> |
getCaNames() |
Set<CertprofileInfo> |
getCertprofiles(String caName)
Return set given Certprofiles supported by the CA caName.
|
List<X509Certificate> |
getDhPocPeerCertificates(String caName)
Returns the certificates held by CA for the DH KeyAgreement.
|
org.xipki.util.HealthCheckResult |
getHealthCheckResult(String caName)
Gets the health status.
|
boolean |
init() |
CertIdOrError |
removeCert(String caName,
BigInteger serial,
org.xipki.util.ReqRespDebug debug)
Removes a certificate.
|
CertIdOrError |
removeCert(String caName,
X509Certificate cert,
org.xipki.util.ReqRespDebug debug)
Removes a certificate.
|
Map<String,CertIdOrError> |
removeCerts(UnrevokeOrRemoveCertRequest request,
org.xipki.util.ReqRespDebug debug)
Removes certificates.
|
CertIdOrError |
revokeCert(String caName,
BigInteger serial,
int reason,
Date invalidityTime,
org.xipki.util.ReqRespDebug debug)
Revokes a certificate.
|
CertIdOrError |
revokeCert(String caName,
X509Certificate cert,
int reason,
Date invalidityTime,
org.xipki.util.ReqRespDebug debug)
Revokes a certificate.
|
Map<String,CertIdOrError> |
revokeCerts(RevokeCertRequest request,
org.xipki.util.ReqRespDebug debug)
Revoke a set of certificates.
|
CertIdOrError |
unrevokeCert(String caName,
BigInteger serial,
org.xipki.util.ReqRespDebug debug)
Unrevokes a certificate.
|
CertIdOrError |
unrevokeCert(String caName,
X509Certificate cert,
org.xipki.util.ReqRespDebug debug)
Unrevokes certificates.
|
Map<String,CertIdOrError> |
unrevokeCerts(UnrevokeOrRemoveCertRequest request,
org.xipki.util.ReqRespDebug debug)
Unrevokes certificates.
|
boolean init()
Set<String> getCaNames() throws CmpClientException
CmpClientExceptionSet<CertprofileInfo> getCertprofiles(String caName) throws CmpClientException
caName - CA name. Must not be nullCmpClientException - if client error occurs.EnrollCertResult enrollCert(String caName, org.bouncycastle.asn1.pkcs.CertificationRequest csr, String profile, Date notBefore, Date notAfter, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
caName - CA name. Could be null.csr - CSR. Must not benull.profile - Certificate profile name. Must not benull.notBefore - NotBefore. Could be null.notAfter - NotAfter. Could be null.debug - Request/response debug control. Could be null.PkiErrorException - if the response returns none-success status.CmpClientException - if client error occurs.EnrollCertResult enrollCerts(String caName, EnrollCertRequest request, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
caName - CA name. Could be null.request - Request. Must not be null.debug - Request/response debug control. Could be null.PkiErrorException - if the response returns none-success status.CmpClientException - if client error occurs.CertIdOrError revokeCert(String caName, BigInteger serial, int reason, Date invalidityTime, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
caName - CA name. Could be null.serial - Serial number of the target certificate. Must not be null.reason - Revocation reason.invalidityTime - Invalidity time. Could be null.debug - Request/response debug control. Could be null.PkiErrorException - if the response returns none-success status.CmpClientException - if client error occurs.CertIdOrError revokeCert(String caName, X509Certificate cert, int reason, Date invalidityTime, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
caName - CA name. Could be null.cert - Target certificate. Must not be null.reason - Revocation reason.invalidityTime - Invalidity time. Could be null.debug - Request/response debug control. Could be null.PkiErrorException - if the response returns none-success status.CmpClientException - if client error occurs.Map<String,CertIdOrError> revokeCerts(RevokeCertRequest request, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
request - Request. Must not be null.debug - Request/response debug control. Could be null.PkiErrorException - if the response returns none-success status.CmpClientException - if client error occurs.X509CRL downloadCrl(String caName, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
caName - CA name. Must not be null.debug - Request/response debug control. Could be null.null.PkiErrorException - if the response returns none-success status.CmpClientException - if client error occurs.X509CRL downloadCrl(String caName, BigInteger crlNumber, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
caName - CA name. Must not be null.crlNumber - CRL number. null to download the current CRL.debug - Request/response debug control. Could be null.null.PkiErrorException - if the response returns none-success status.CmpClientException - if client error occurs.X509CRL generateCrl(String caName, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
caName - CA name. Must not be null.debug - Request/response debug control. Could be null.null.PkiErrorException - if the response returns none-success status.CmpClientException - if client error occurs.String getCaNameByIssuer(org.bouncycastle.asn1.x500.X500Name issuer) throws CmpClientException
issuer - Issuer's subject.CmpClientException - if client error occurs.CertIdOrError unrevokeCert(String caName, BigInteger serial, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
caName - CA name. Could be null.serial - Serial number of the certificate. Must not be null.debug - Request/response debug control. Could be null.PkiErrorException - if the response returns none-success status.CmpClientException - if client error occurs.CertIdOrError unrevokeCert(String caName, X509Certificate cert, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
caName - CA name. Could be null.cert - Target certificate. Must not be null.debug - Request/response debug control. Could be null.PkiErrorException - if the response returns none-success status.CmpClientException - if client error occurs.Map<String,CertIdOrError> unrevokeCerts(UnrevokeOrRemoveCertRequest request, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
request - Request. Must not be null.debug - Request/response debug control. Could be null.PkiErrorException - if the response returns none-success status.CmpClientException - if client error occurs.CertIdOrError removeCert(String caName, BigInteger serial, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
caName - CA name. Could be null.serial - Serial number of the target certificate.debug - Request/response debug control. Could be null.PkiErrorException - if the response returns none-success status.CmpClientException - if client error occurs.CertIdOrError removeCert(String caName, X509Certificate cert, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
caName - CA name. Could be null.cert - Target certificate.debug - Request/response debug control. Could be null.PkiErrorException - if the response returns none-success status.CmpClientException - if client error occurs.Map<String,CertIdOrError> removeCerts(UnrevokeOrRemoveCertRequest request, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
request - Request. Must not be null.debug - Request/response debug control. Could be null.PkiErrorException - if the response returns none-success status.CmpClientException - if client error occurs.org.xipki.util.HealthCheckResult getHealthCheckResult(String caName) throws CmpClientException
caName - CA name. Must not be null.CmpClientException - if client error occurs.X509Certificate getCaCert(String caName) throws CmpClientException
caName - the CA nameCmpClientException - if client error occurs.List<X509Certificate> getCaCertchain(String caName) throws CmpClientException
caName - the CA nameCmpClientException - if client error occurs.org.bouncycastle.asn1.x500.X500Name getCaCertSubject(String caName) throws CmpClientException
caName - the CA nameCmpClientException - if client error occurs.List<X509Certificate> getDhPocPeerCertificates(String caName) throws CmpClientException
caName - the CA nameCmpClientException - if client error occurs.String getCaNameForProfile(String certprofile) throws CmpClientException
certprofile.certprofile - The name of certprofilecertprofile.CmpClientException - If more than one CA supports the certificate.Copyright © 2019. All rights reserved.