public class X509Ca extends Object
| Constructor and Description |
|---|
X509Ca(CaManagerImpl caManager,
CaInfo caInfo,
CertStore certstore) |
| Modifier and Type | Method and Description |
|---|---|
long |
addRequest(byte[] request) |
void |
addRequestCert(long requestId,
long certId) |
org.xipki.ca.api.NameId |
authenticateUser(String user,
byte[] password) |
void |
checkCsr(org.bouncycastle.asn1.pkcs.CertificationRequest csr) |
void |
clearPublishQueue(List<String> publisherNames) |
org.xipki.ca.api.CertificateInfo |
generateCert(CertTemplateData certTemplate,
org.xipki.ca.server.mgmt.api.RequestorInfo requestor,
org.xipki.ca.api.RequestType reqType,
byte[] transactionId,
String msgId) |
List<org.xipki.ca.api.CertificateInfo> |
generateCerts(List<CertTemplateData> certTemplates,
org.xipki.ca.server.mgmt.api.RequestorInfo requestor,
org.xipki.ca.api.RequestType reqType,
byte[] transactionId,
String msgId) |
X509CRL |
generateCrlOnDemand(String msgId) |
org.bouncycastle.asn1.x509.CertificateList |
getBcCrl(BigInteger crlNumber) |
org.bouncycastle.asn1.x509.CertificateList |
getBcCurrentCrl() |
ByUserRequestorInfo |
getByUserRequestor(org.xipki.ca.api.NameId userIdent) |
org.xipki.ca.api.NameId |
getCaIdent() |
CaInfo |
getCaInfo() |
CaManagerImpl |
getCaManager() |
X509Certificate |
getCert(BigInteger serialNumber) |
List<X509Certificate> |
getCert(org.bouncycastle.asn1.x500.X500Name subjectName,
byte[] transactionId)
Returns the certificates satisfying the given search criteria.
|
byte[] |
getCertRequest(BigInteger serialNumber) |
org.xipki.ca.server.mgmt.api.CertWithRevocationInfo |
getCertWithRevocationInfo(BigInteger serialNumber) |
org.xipki.ca.server.mgmt.api.CmpControl |
getCmpControl() |
X509CRL |
getCrl(BigInteger crlNumber) |
X509CRL |
getCurrentCrl() |
String |
getHexSha1OfCert() |
CmpRequestorInfo |
getMacRequestor(org.bouncycastle.asn1.x500.X500Name sender,
byte[] senderKID) |
CmpRequestorInfo |
getRequestor(org.bouncycastle.asn1.x500.X500Name requestorSender) |
CmpRequestorInfo |
getRequestor(X509Certificate requestorCert) |
org.xipki.ca.api.NameId |
getUserIdent(int userId) |
org.xipki.ca.server.impl.IdentifiedCertprofile |
getX509Certprofile(String certprofileName) |
org.xipki.util.HealthCheckResult |
healthCheck() |
KnowCertResult |
knowsCert(X509Certificate cert) |
List<org.xipki.ca.server.mgmt.api.CertListInfo> |
listCerts(org.bouncycastle.asn1.x500.X500Name subjectPattern,
Date validFrom,
Date validTo,
org.xipki.ca.server.mgmt.api.CertListOrderBy orderBy,
int numEntries) |
boolean |
publishCert(org.xipki.ca.api.CertificateInfo certInfo) |
boolean |
publishCertsInQueue() |
org.xipki.ca.api.CertificateInfo |
regenerateCert(CertTemplateData certTemplate,
org.xipki.ca.server.mgmt.api.RequestorInfo requestor,
org.xipki.ca.api.RequestType reqType,
byte[] transactionId,
String msgId) |
List<org.xipki.ca.api.CertificateInfo> |
regenerateCerts(List<CertTemplateData> certTemplates,
org.xipki.ca.server.mgmt.api.RequestorInfo requestor,
org.xipki.ca.api.RequestType reqType,
byte[] transactionId,
String msgId) |
org.xipki.ca.api.CertWithDbId |
removeCert(BigInteger serialNumber,
String msgId) |
boolean |
republishCerts(List<String> publisherNames,
int numThreads) |
void |
revokeCa(org.xipki.security.CertRevocationInfo revocationInfo,
String msgId) |
org.xipki.ca.server.mgmt.api.CertWithRevocationInfo |
revokeCert(BigInteger serialNumber,
org.xipki.security.CrlReason reason,
Date invalidityTime,
String msgId) |
void |
setAuditServiceRegister(org.xipki.audit.AuditServiceRegister auditServiceRegister) |
boolean |
supportsCertprofile(String certprofileName) |
void |
unrevokeCa(String msgId) |
org.xipki.ca.api.CertWithDbId |
unrevokeCert(BigInteger serialNumber,
String msgId) |
public X509Ca(CaManagerImpl caManager, CaInfo caInfo, CertStore certstore) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic CaInfo getCaInfo()
public org.xipki.ca.server.mgmt.api.CmpControl getCmpControl()
public X509Certificate getCert(BigInteger serialNumber) throws CertificateException, org.xipki.ca.api.OperationException
CertificateExceptionorg.xipki.ca.api.OperationExceptionpublic List<X509Certificate> getCert(org.bouncycastle.asn1.x500.X500Name subjectName, byte[] transactionId) throws org.xipki.ca.api.OperationException
subjectName - Subject of the certificate.transactionId - null for all transactionIds.org.xipki.ca.api.OperationException - if error occurs.public KnowCertResult knowsCert(X509Certificate cert) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic org.xipki.ca.server.mgmt.api.CertWithRevocationInfo getCertWithRevocationInfo(BigInteger serialNumber) throws CertificateException, org.xipki.ca.api.OperationException
CertificateExceptionorg.xipki.ca.api.OperationExceptionpublic byte[] getCertRequest(BigInteger serialNumber) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic void checkCsr(org.bouncycastle.asn1.pkcs.CertificationRequest csr)
throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic List<org.xipki.ca.server.mgmt.api.CertListInfo> listCerts(org.bouncycastle.asn1.x500.X500Name subjectPattern, Date validFrom, Date validTo, org.xipki.ca.server.mgmt.api.CertListOrderBy orderBy, int numEntries) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic org.xipki.ca.api.NameId authenticateUser(String user, byte[] password) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic org.xipki.ca.api.NameId getUserIdent(int userId)
throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic ByUserRequestorInfo getByUserRequestor(org.xipki.ca.api.NameId userIdent) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic X509CRL getCurrentCrl() throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic X509CRL getCrl(BigInteger crlNumber) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic org.bouncycastle.asn1.x509.CertificateList getBcCurrentCrl()
throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic org.bouncycastle.asn1.x509.CertificateList getBcCrl(BigInteger crlNumber) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic X509CRL generateCrlOnDemand(String msgId) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic org.xipki.ca.api.CertificateInfo regenerateCert(CertTemplateData certTemplate, org.xipki.ca.server.mgmt.api.RequestorInfo requestor, org.xipki.ca.api.RequestType reqType, byte[] transactionId, String msgId) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic List<org.xipki.ca.api.CertificateInfo> regenerateCerts(List<CertTemplateData> certTemplates, org.xipki.ca.server.mgmt.api.RequestorInfo requestor, org.xipki.ca.api.RequestType reqType, byte[] transactionId, String msgId) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic boolean publishCert(org.xipki.ca.api.CertificateInfo certInfo)
public void clearPublishQueue(List<String> publisherNames) throws org.xipki.ca.server.mgmt.api.CaMgmtException
org.xipki.ca.server.mgmt.api.CaMgmtExceptionpublic boolean publishCertsInQueue()
public org.xipki.ca.server.mgmt.api.CertWithRevocationInfo revokeCert(BigInteger serialNumber, org.xipki.security.CrlReason reason, Date invalidityTime, String msgId) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic org.xipki.ca.api.CertWithDbId unrevokeCert(BigInteger serialNumber, String msgId) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic org.xipki.ca.api.CertWithDbId removeCert(BigInteger serialNumber, String msgId) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic void revokeCa(org.xipki.security.CertRevocationInfo revocationInfo,
String msgId)
throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic void unrevokeCa(String msgId) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic long addRequest(byte[] request)
throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic void addRequestCert(long requestId,
long certId)
throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic List<org.xipki.ca.api.CertificateInfo> generateCerts(List<CertTemplateData> certTemplates, org.xipki.ca.server.mgmt.api.RequestorInfo requestor, org.xipki.ca.api.RequestType reqType, byte[] transactionId, String msgId) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic org.xipki.ca.api.CertificateInfo generateCert(CertTemplateData certTemplate, org.xipki.ca.server.mgmt.api.RequestorInfo requestor, org.xipki.ca.api.RequestType reqType, byte[] transactionId, String msgId) throws org.xipki.ca.api.OperationException
org.xipki.ca.api.OperationExceptionpublic org.xipki.ca.server.impl.IdentifiedCertprofile getX509Certprofile(String certprofileName)
public boolean supportsCertprofile(String certprofileName)
public CmpRequestorInfo getRequestor(org.bouncycastle.asn1.x500.X500Name requestorSender)
public CmpRequestorInfo getRequestor(X509Certificate requestorCert)
public CmpRequestorInfo getMacRequestor(org.bouncycastle.asn1.x500.X500Name sender, byte[] senderKID)
public CaManagerImpl getCaManager()
public org.xipki.util.HealthCheckResult healthCheck()
public void setAuditServiceRegister(org.xipki.audit.AuditServiceRegister auditServiceRegister)
public org.xipki.ca.api.NameId getCaIdent()
public String getHexSha1OfCert()
Copyright © 2018. All rights reserved.