| Constructor and Description |
|---|
CmpClientImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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.
|
String |
getConfFile() |
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 invalidityDate,
org.xipki.util.ReqRespDebug debug)
Revokes a certificate.
|
CertIdOrError |
revokeCert(String caName,
X509Certificate cert,
int reason,
Date invalidityDate,
org.xipki.util.ReqRespDebug debug)
Revokes a certificate.
|
Map<String,CertIdOrError> |
revokeCerts(RevokeCertRequest request,
org.xipki.util.ReqRespDebug debug)
Revoke a set of certificates.
|
void |
setConfFile(String confFile) |
void |
setSecurityFactory(org.xipki.security.SecurityFactory securityFactory) |
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.
|
public void setSecurityFactory(org.xipki.security.SecurityFactory securityFactory)
public void close()
close in interface Closeableclose in interface AutoCloseablepublic EnrollCertResult enrollCert(String caName, org.bouncycastle.asn1.pkcs.CertificationRequest csr, String profile, Date notBefore, Date notAfter, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientenrollCert in interface CmpClientcaName - 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.CmpClientException - if client error occurs.PkiErrorException - if the response returns none-success status.public EnrollCertResult enrollCerts(String caName, EnrollCertRequest request, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientenrollCerts in interface CmpClientcaName - CA name. Could be null.request - Request. Must not be null.debug - Request/response debug control. Could be null.CmpClientException - if client error occurs.PkiErrorException - if the response returns none-success status.public CertIdOrError revokeCert(String caName, X509Certificate cert, int reason, Date invalidityDate, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientrevokeCert in interface CmpClientcaName - CA name. Could be null.cert - Target certificate. Must not be null.reason - Revocation reason.invalidityDate - Invalidity time. Could be null.debug - Request/response debug control. Could be null.CmpClientException - if client error occurs.PkiErrorException - if the response returns none-success status.public CertIdOrError revokeCert(String caName, BigInteger serial, int reason, Date invalidityDate, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientrevokeCert in interface CmpClientcaName - CA name. Could be null.serial - Serial number of the target certificate. Must not be null.reason - Revocation reason.invalidityDate - Invalidity time. Could be null.debug - Request/response debug control. Could be null.CmpClientException - if client error occurs.PkiErrorException - if the response returns none-success status.public Map<String,CertIdOrError> revokeCerts(RevokeCertRequest request, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientrevokeCerts in interface CmpClientrequest - Request. Must not be null.debug - Request/response debug control. Could be null.CmpClientException - if client error occurs.PkiErrorException - if the response returns none-success status.public X509CRL downloadCrl(String caName, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientdownloadCrl in interface CmpClientcaName - CA name. Must not be null.debug - Request/response debug control. Could be null.null.CmpClientException - if client error occurs.PkiErrorException - if the response returns none-success status.public X509CRL downloadCrl(String caName, BigInteger crlNumber, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientdownloadCrl in interface CmpClientcaName - CA name. Must not be null.crlNumber - CRL number. null to download the current CRL.debug - Request/response debug control. Could be null.null.CmpClientException - if client error occurs.PkiErrorException - if the response returns none-success status.public X509CRL generateCrl(String caName, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientgenerateCrl in interface CmpClientcaName - CA name. Must not be null.debug - Request/response debug control. Could be null.null.CmpClientException - if client error occurs.PkiErrorException - if the response returns none-success status.public String getCaNameByIssuer(org.bouncycastle.asn1.x500.X500Name issuer) throws CmpClientException
CmpClientgetCaNameByIssuer in interface CmpClientissuer - Issuer's subject.CmpClientException - if client error occurs.public String getCaNameForProfile(String certprofile) throws CmpClientException
CmpClientcertprofile.getCaNameForProfile in interface CmpClientcertprofile - The name of certprofilecertprofile.CmpClientException - If more than one CA supports the certificate.public String getConfFile()
public void setConfFile(String confFile)
public Set<String> getCaNames() throws CmpClientException
getCaNames in interface CmpClientCmpClientExceptionpublic CertIdOrError unrevokeCert(String caName, X509Certificate cert, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientunrevokeCert in interface CmpClientcaName - CA name. Could be null.cert - Target certificate. Must not be null.debug - Request/response debug control. Could be null.CmpClientException - if client error occurs.PkiErrorException - if the response returns none-success status.public CertIdOrError unrevokeCert(String caName, BigInteger serial, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientunrevokeCert in interface CmpClientcaName - CA name. Could be null.serial - Serial number of the certificate. Must not be null.debug - Request/response debug control. Could be null.CmpClientException - if client error occurs.PkiErrorException - if the response returns none-success status.public Map<String,CertIdOrError> unrevokeCerts(UnrevokeOrRemoveCertRequest request, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientunrevokeCerts in interface CmpClientrequest - Request. Must not be null.debug - Request/response debug control. Could be null.CmpClientException - if client error occurs.PkiErrorException - if the response returns none-success status.public CertIdOrError removeCert(String caName, X509Certificate cert, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientremoveCert in interface CmpClientcaName - CA name. Could be null.cert - Target certificate.debug - Request/response debug control. Could be null.CmpClientException - if client error occurs.PkiErrorException - if the response returns none-success status.public CertIdOrError removeCert(String caName, BigInteger serial, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientremoveCert in interface CmpClientcaName - CA name. Could be null.serial - Serial number of the target certificate.debug - Request/response debug control. Could be null.CmpClientException - if client error occurs.PkiErrorException - if the response returns none-success status.public Map<String,CertIdOrError> removeCerts(UnrevokeOrRemoveCertRequest request, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientremoveCerts in interface CmpClientrequest - Request. Must not be null.debug - Request/response debug control. Could be null.CmpClientException - if client error occurs.PkiErrorException - if the response returns none-success status.public Set<CertprofileInfo> getCertprofiles(String caName) throws CmpClientException
CmpClientgetCertprofiles in interface CmpClientcaName - CA name. Must not be nullCmpClientException - if client error occurs.public org.xipki.util.HealthCheckResult getHealthCheckResult(String caName) throws CmpClientException
CmpClientgetHealthCheckResult in interface CmpClientcaName - CA name. Must not be null.CmpClientException - if client error occurs.public X509Certificate getCaCert(String caName) throws CmpClientException
CmpClientgetCaCert in interface CmpClientcaName - the CA nameCmpClientException - if client error occurs.public List<X509Certificate> getCaCertchain(String caName) throws CmpClientException
CmpClientgetCaCertchain in interface CmpClientcaName - the CA nameCmpClientException - if client error occurs.public org.bouncycastle.asn1.x500.X500Name getCaCertSubject(String caName) throws CmpClientException
CmpClientgetCaCertSubject in interface CmpClientcaName - the CA nameCmpClientException - if client error occurs.public List<X509Certificate> getDhPocPeerCertificates(String caName) throws CmpClientException
CmpClientgetDhPocPeerCertificates in interface CmpClientcaName - the CA nameCmpClientException - if client error occurs.Copyright © 2019. All rights reserved.