| Constructor and Description |
|---|
CmpClientImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.xipki.security.X509Cert |
caCert(String caName,
org.xipki.util.ReqRespDebug debug)
Returns the CA certificate.
|
List<org.xipki.security.X509Cert> |
caCerts(String caName,
org.xipki.util.ReqRespDebug debug)
Returns the CA certificate chain.
|
void |
close() |
org.bouncycastle.cert.X509CRLHolder |
downloadCrl(String caName,
org.xipki.util.ReqRespDebug debug)
Downloads the current CRL.
|
EnrollCertResult |
enrollCert(String caName,
Requestor requestor,
org.bouncycastle.asn1.pkcs.CertificationRequest csr,
String profile,
Date notBefore,
Date notAfter,
org.xipki.util.ReqRespDebug debug)
Enrolls a certificate.
|
EnrollCertResult |
enrollCerts(String caName,
Requestor requestor,
EnrollCertRequest request,
org.xipki.util.ReqRespDebug debug)
Enrolls a set of certificates.
|
List<org.xipki.security.X509Cert> |
getDhPopPeerCertificates()
Returns the certificates held by CA for the DH KeyAgreement.
|
void |
init() |
CertIdOrError |
revokeCert(String caName,
Requestor requestor,
org.xipki.security.X509Cert issuerCert,
BigInteger serial,
int reason,
Date invalidityDate,
org.xipki.util.ReqRespDebug debug)
Revokes a certificate.
|
CertIdOrError |
revokeCert(String caName,
Requestor requestor,
org.xipki.security.X509Cert issuerCert,
org.xipki.security.X509Cert cert,
int reason,
Date invalidityDate,
org.xipki.util.ReqRespDebug debug)
Revokes a certificate.
|
Map<String,CertIdOrError> |
revokeCerts(String caName,
Requestor requestor,
RevokeCertRequest request,
org.xipki.util.ReqRespDebug debug)
Revoke a set of certificates.
|
void |
setConfFile(String confFile) |
void |
setSecurityFactory(org.xipki.security.SecurityFactory securityFactory) |
CertIdOrError |
unsuspendCert(String caName,
Requestor requestor,
org.xipki.security.X509Cert issuerCert,
BigInteger serial,
org.xipki.util.ReqRespDebug debug)
Unsuspends a certificate.
|
CertIdOrError |
unsuspendCert(String caName,
Requestor requestor,
org.xipki.security.X509Cert issuerCert,
org.xipki.security.X509Cert cert,
org.xipki.util.ReqRespDebug debug)
Unsuspends certificates.
|
Map<String,CertIdOrError> |
unsuspendCerts(String caName,
Requestor requestor,
UnrevokeCertRequest request,
org.xipki.util.ReqRespDebug debug)
Unsuspends certificates.
|
public void setSecurityFactory(org.xipki.security.SecurityFactory securityFactory)
public void setConfFile(String confFile)
public void close()
close in interface Closeableclose in interface AutoCloseablepublic EnrollCertResult enrollCert(String caName, Requestor requestor, 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. Must not 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, Requestor requestor, EnrollCertRequest request, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientenrollCerts in interface CmpClientcaName - CA name. Must not 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, Requestor requestor, org.xipki.security.X509Cert issuerCert, org.xipki.security.X509Cert cert, int reason, Date invalidityDate, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientrevokeCert in interface CmpClientcaName - CA name. Must not be null.issuerCert - Issuer's certificate. Must not 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, Requestor requestor, org.xipki.security.X509Cert issuerCert, BigInteger serial, int reason, Date invalidityDate, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientrevokeCert in interface CmpClientcaName - CA name. Must not be null.issuerCert - Issuer's certificate. Must not 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(String caName, Requestor requestor, 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 org.bouncycastle.cert.X509CRLHolder 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 CertIdOrError unsuspendCert(String caName, Requestor requestor, org.xipki.security.X509Cert issuerCert, org.xipki.security.X509Cert cert, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientunsuspendCert in interface CmpClientcaName - CA name. Must not be null.issuerCert - Issuer's certificate. Must not 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 unsuspendCert(String caName, Requestor requestor, org.xipki.security.X509Cert issuerCert, BigInteger serial, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientunsuspendCert in interface CmpClientcaName - CA name. Must not be null.issuerCert - Issuer's certificate. Must not 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> unsuspendCerts(String caName, Requestor requestor, UnrevokeCertRequest request, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientunsuspendCerts in interface CmpClientcaName - CA name. Must not 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 org.xipki.security.X509Cert caCert(String caName, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientcaCert in interface CmpClientcaName - the CA nameCmpClientException - if client error occurs.PkiErrorExceptionpublic List<org.xipki.security.X509Cert> caCerts(String caName, org.xipki.util.ReqRespDebug debug) throws CmpClientException, PkiErrorException
CmpClientcaCerts in interface CmpClientcaName - the CA nameCmpClientException - if client error occurs.PkiErrorExceptionpublic List<org.xipki.security.X509Cert> getDhPopPeerCertificates()
CmpClientgetDhPopPeerCertificates in interface CmpClientCopyright © 2023. All rights reserved.