Package org.xipki.ca.mgmt.client
Class CaMgmtClient
- java.lang.Object
-
- org.xipki.ca.mgmt.client.CaMgmtClient
-
- All Implemented Interfaces:
org.xipki.ca.api.mgmt.CaManager
public class CaMgmtClient extends Object implements org.xipki.ca.api.mgmt.CaManager
CA management client via REST API.- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description CaMgmtClient(org.xipki.util.http.SslContextConf sslContextConf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCa(org.xipki.ca.api.mgmt.entry.CaEntry caEntry)voidaddCaAlias(String aliasName, String caName)voidaddCertprofile(org.xipki.ca.api.mgmt.entry.CertprofileEntry certprofileEntry)voidaddCertprofileToCa(String profileName, String caName)voidaddDbSchema(String name, String value)voidaddKeypairGen(org.xipki.ca.api.mgmt.entry.KeypairGenEntry keypairGenEntry)voidaddPublisher(org.xipki.ca.api.mgmt.entry.PublisherEntry entry)voidaddPublisherToCa(String publisherName, String caName)voidaddRequestor(org.xipki.ca.api.mgmt.entry.RequestorEntry requestorEntry)voidaddRequestorToCa(org.xipki.ca.api.mgmt.entry.CaHasRequestorEntry requestor, String caName)voidaddSigner(org.xipki.ca.api.mgmt.entry.SignerEntry signerEntry)voidchangeCa(org.xipki.ca.api.mgmt.entry.ChangeCaEntry changeCaEntry)voidchangeCertprofile(String name, String type, String conf)voidchangeDbSchema(String name, String value)voidchangeKeypairGen(String name, String type, String conf)voidchangePublisher(String name, String type, String conf)voidchangeRequestor(String name, String type, String conf)voidchangeSigner(String name, String type, String conf, String base64Cert)voidclearPublishQueue(String caName, List<String> publisherNames)InputStreamexportConf(List<String> caNames)org.xipki.security.X509CertgenerateCertificate(String caName, String profileName, byte[] encodedCsr, Instant notBefore, Instant notAfter)org.bouncycastle.cert.X509CRLHoldergenerateCrlOnDemand(String caName)org.xipki.security.X509CertgenerateCrossCertificate(String caName, String profileName, byte[] encodedCsr, byte[] encodedTargetCert, Instant notBefore, Instant notAfter)org.xipki.security.KeyCertBytesPairgenerateKeyCert(String caName, String profileName, String subject, Instant notBefore, Instant notAfter)org.xipki.security.X509CertgenerateRootCa(org.xipki.ca.api.mgmt.entry.CaEntry caEntry, String certprofileName, String subject, String serialNumber, Instant notBefore, Instant notAfter)Set<String>getAliasesForCa(String caName)org.xipki.ca.api.mgmt.entry.CaEntrygetCa(String caName)Set<String>getCaAliasNames()StringgetCaNameForAlias(String aliasName)Set<String>getCaNames()org.xipki.ca.api.mgmt.CaSystemStatusgetCaSystemStatus()org.xipki.ca.api.mgmt.CertWithRevocationInfogetCert(String caName, BigInteger serialNumber)org.xipki.ca.api.mgmt.CertWithRevocationInfogetCert(org.bouncycastle.asn1.x500.X500Name issuer, BigInteger serialNumber)org.xipki.ca.api.mgmt.entry.CertprofileEntrygetCertprofile(String profileName)Set<String>getCertprofileNames()Set<String>getCertprofilesForCa(String caName)org.bouncycastle.cert.X509CRLHoldergetCrl(String caName, BigInteger crlNumber)org.bouncycastle.cert.X509CRLHoldergetCurrentCrl(String caName)Map<String,String>getDbSchemas()Set<String>getFailedCaNames()Set<String>getInactiveCaNames()org.xipki.ca.api.mgmt.entry.KeypairGenEntrygetKeypairGen(String name)Set<String>getKeypairGenNames()org.xipki.ca.api.mgmt.entry.PublisherEntrygetPublisher(String publisherName)Set<String>getPublisherNames()List<org.xipki.ca.api.mgmt.entry.PublisherEntry>getPublishersForCa(String caName)org.xipki.ca.api.mgmt.entry.RequestorEntrygetRequestor(String name)Set<String>getRequestorNames()Set<org.xipki.ca.api.mgmt.entry.CaHasRequestorEntry>getRequestorsForCa(String caName)org.xipki.ca.api.mgmt.entry.SignerEntrygetSigner(String name)Set<String>getSignerNames()Set<String>getSuccessfulCaNames()Set<String>getSupportedCertprofileTypes()Set<String>getSupportedPublisherTypes()Set<String>getSupportedSignerTypes()StringgetTokenInfoP11(String module, Integer slotIndex, boolean verbose)voidinitIfNotDone()List<org.xipki.ca.api.mgmt.CertListInfo>listCertificates(String caName, org.bouncycastle.asn1.x500.X500Name subjectPattern, Instant validFrom, Instant validTo, org.xipki.ca.api.mgmt.CertListOrderBy orderBy, int numEntries)Map<String,org.xipki.security.X509Cert>loadConf(InputStream zippedConfStream)voidnotifyCaChange()voidremoveCa(String caName)voidremoveCaAlias(String aliasName)voidremoveCertificate(String caName, BigInteger serialNumber)voidremoveCertprofile(String profileName)voidremoveCertprofileFromCa(String profileName, String caName)voidremoveDbSchema(String name)voidremoveKeypairGen(String name)voidremovePublisher(String publisherName)voidremovePublisherFromCa(String publisherName, String caName)voidremoveRequestor(String requestorName)voidremoveRequestorFromCa(String requestorName, String caName)voidremoveSigner(String name)voidrepublishCertificates(String caName, List<String> publisherNames, int numThreads)voidrestartCa(String caName)voidrestartCaSystem()voidrevokeCa(String caName, org.xipki.security.CertRevocationInfo revocationInfo)voidrevokeCertificate(String caName, BigInteger serialNumber, org.xipki.security.CrlReason reason, Instant invalidityTime)voidsetServerUrl(String serverUrl)voidunlockCa()voidunrevokeCa(String caName)voidunsuspendCertificate(String caName, BigInteger serialNumber)
-
-
-
Method Detail
-
initIfNotDone
public void initIfNotDone() throws org.xipki.ca.api.mgmt.CaMgmtException- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
setServerUrl
public void setServerUrl(String serverUrl) throws MalformedURLException
- Throws:
MalformedURLException
-
getCaSystemStatus
public org.xipki.ca.api.mgmt.CaSystemStatus getCaSystemStatus() throws org.xipki.ca.api.mgmt.CaMgmtException- Specified by:
getCaSystemStatusin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
unlockCa
public void unlockCa() throws org.xipki.ca.api.mgmt.CaMgmtException- Specified by:
unlockCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
notifyCaChange
public void notifyCaChange() throws org.xipki.ca.api.mgmt.CaMgmtException- Specified by:
notifyCaChangein interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
addDbSchema
public void addDbSchema(String name, String value) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
addDbSchemain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
changeDbSchema
public void changeDbSchema(String name, String value) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
changeDbSchemain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
removeDbSchema
public void removeDbSchema(String name) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
removeDbSchemain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getDbSchemas
public Map<String,String> getDbSchemas() throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getDbSchemasin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
republishCertificates
public void republishCertificates(String caName, List<String> publisherNames, int numThreads) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
republishCertificatesin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
clearPublishQueue
public void clearPublishQueue(String caName, List<String> publisherNames) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
clearPublishQueuein interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
removeCa
public void removeCa(String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
removeCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
restartCa
public void restartCa(String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
restartCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
restartCaSystem
public void restartCaSystem() throws org.xipki.ca.api.mgmt.CaMgmtException- Specified by:
restartCaSystemin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
addCaAlias
public void addCaAlias(String aliasName, String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
addCaAliasin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
removeCaAlias
public void removeCaAlias(String aliasName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
removeCaAliasin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getAliasesForCa
public Set<String> getAliasesForCa(String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getAliasesForCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getCaNameForAlias
public String getCaNameForAlias(String aliasName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getCaNameForAliasin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getCaAliasNames
public Set<String> getCaAliasNames() throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getCaAliasNamesin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getCertprofileNames
public Set<String> getCertprofileNames() throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getCertprofileNamesin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getKeypairGenNames
public Set<String> getKeypairGenNames() throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getKeypairGenNamesin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getPublisherNames
public Set<String> getPublisherNames() throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getPublisherNamesin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getRequestorNames
public Set<String> getRequestorNames() throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getRequestorNamesin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getSignerNames
public Set<String> getSignerNames() throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getSignerNamesin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getCaNames
public Set<String> getCaNames() throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getCaNamesin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getSuccessfulCaNames
public Set<String> getSuccessfulCaNames() throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getSuccessfulCaNamesin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getFailedCaNames
public Set<String> getFailedCaNames() throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getFailedCaNamesin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getInactiveCaNames
public Set<String> getInactiveCaNames() throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getInactiveCaNamesin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
addCa
public void addCa(org.xipki.ca.api.mgmt.entry.CaEntry caEntry) throws org.xipki.ca.api.mgmt.CaMgmtException- Specified by:
addCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getCa
public org.xipki.ca.api.mgmt.entry.CaEntry getCa(String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
changeCa
public void changeCa(org.xipki.ca.api.mgmt.entry.ChangeCaEntry changeCaEntry) throws org.xipki.ca.api.mgmt.CaMgmtException- Specified by:
changeCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
removeCertprofileFromCa
public void removeCertprofileFromCa(String profileName, String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
removeCertprofileFromCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
addCertprofileToCa
public void addCertprofileToCa(String profileName, String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
addCertprofileToCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
removePublisherFromCa
public void removePublisherFromCa(String publisherName, String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
removePublisherFromCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
addPublisherToCa
public void addPublisherToCa(String publisherName, String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
addPublisherToCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getCertprofilesForCa
public Set<String> getCertprofilesForCa(String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getCertprofilesForCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getRequestorsForCa
public Set<org.xipki.ca.api.mgmt.entry.CaHasRequestorEntry> getRequestorsForCa(String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getRequestorsForCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getRequestor
public org.xipki.ca.api.mgmt.entry.RequestorEntry getRequestor(String name) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getRequestorin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
addRequestor
public void addRequestor(org.xipki.ca.api.mgmt.entry.RequestorEntry requestorEntry) throws org.xipki.ca.api.mgmt.CaMgmtException- Specified by:
addRequestorin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
removeRequestor
public void removeRequestor(String requestorName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
removeRequestorin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
changeRequestor
public void changeRequestor(String name, String type, String conf) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
changeRequestorin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
removeRequestorFromCa
public void removeRequestorFromCa(String requestorName, String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
removeRequestorFromCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
addRequestorToCa
public void addRequestorToCa(org.xipki.ca.api.mgmt.entry.CaHasRequestorEntry requestor, String caName) throws org.xipki.ca.api.mgmt.CaMgmtException- Specified by:
addRequestorToCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getKeypairGen
public org.xipki.ca.api.mgmt.entry.KeypairGenEntry getKeypairGen(String name) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getKeypairGenin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
removeKeypairGen
public void removeKeypairGen(String name) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
removeKeypairGenin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
changeKeypairGen
public void changeKeypairGen(String name, String type, String conf) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
changeKeypairGenin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
addKeypairGen
public void addKeypairGen(org.xipki.ca.api.mgmt.entry.KeypairGenEntry keypairGenEntry) throws org.xipki.ca.api.mgmt.CaMgmtException- Specified by:
addKeypairGenin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getCertprofile
public org.xipki.ca.api.mgmt.entry.CertprofileEntry getCertprofile(String profileName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getCertprofilein interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
removeCertprofile
public void removeCertprofile(String profileName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
removeCertprofilein interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
changeCertprofile
public void changeCertprofile(String name, String type, String conf) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
changeCertprofilein interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
addCertprofile
public void addCertprofile(org.xipki.ca.api.mgmt.entry.CertprofileEntry certprofileEntry) throws org.xipki.ca.api.mgmt.CaMgmtException- Specified by:
addCertprofilein interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
addSigner
public void addSigner(org.xipki.ca.api.mgmt.entry.SignerEntry signerEntry) throws org.xipki.ca.api.mgmt.CaMgmtException- Specified by:
addSignerin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
removeSigner
public void removeSigner(String name) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
removeSignerin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getSigner
public org.xipki.ca.api.mgmt.entry.SignerEntry getSigner(String name) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getSignerin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
changeSigner
public void changeSigner(String name, String type, String conf, String base64Cert) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
changeSignerin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
addPublisher
public void addPublisher(org.xipki.ca.api.mgmt.entry.PublisherEntry entry) throws org.xipki.ca.api.mgmt.CaMgmtException- Specified by:
addPublisherin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getPublishersForCa
public List<org.xipki.ca.api.mgmt.entry.PublisherEntry> getPublishersForCa(String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getPublishersForCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getPublisher
public org.xipki.ca.api.mgmt.entry.PublisherEntry getPublisher(String publisherName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getPublisherin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
removePublisher
public void removePublisher(String publisherName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
removePublisherin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
changePublisher
public void changePublisher(String name, String type, String conf) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
changePublisherin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
revokeCa
public void revokeCa(String caName, org.xipki.security.CertRevocationInfo revocationInfo) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
revokeCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
unrevokeCa
public void unrevokeCa(String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
unrevokeCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
revokeCertificate
public void revokeCertificate(String caName, BigInteger serialNumber, org.xipki.security.CrlReason reason, Instant invalidityTime) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
revokeCertificatein interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
unsuspendCertificate
public void unsuspendCertificate(String caName, BigInteger serialNumber) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
unsuspendCertificatein interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
removeCertificate
public void removeCertificate(String caName, BigInteger serialNumber) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
removeCertificatein interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
generateCrossCertificate
public org.xipki.security.X509Cert generateCrossCertificate(String caName, String profileName, byte[] encodedCsr, byte[] encodedTargetCert, Instant notBefore, Instant notAfter) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
generateCrossCertificatein interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
generateCertificate
public org.xipki.security.X509Cert generateCertificate(String caName, String profileName, byte[] encodedCsr, Instant notBefore, Instant notAfter) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
generateCertificatein interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
generateKeyCert
public org.xipki.security.KeyCertBytesPair generateKeyCert(String caName, String profileName, String subject, Instant notBefore, Instant notAfter) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
generateKeyCertin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
generateRootCa
public org.xipki.security.X509Cert generateRootCa(org.xipki.ca.api.mgmt.entry.CaEntry caEntry, String certprofileName, String subject, String serialNumber, Instant notBefore, Instant notAfter) throws org.xipki.ca.api.mgmt.CaMgmtException- Specified by:
generateRootCain interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
generateCrlOnDemand
public org.bouncycastle.cert.X509CRLHolder generateCrlOnDemand(String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
generateCrlOnDemandin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getCrl
public org.bouncycastle.cert.X509CRLHolder getCrl(String caName, BigInteger crlNumber) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getCrlin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getCurrentCrl
public org.bouncycastle.cert.X509CRLHolder getCurrentCrl(String caName) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getCurrentCrlin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getCert
public org.xipki.ca.api.mgmt.CertWithRevocationInfo getCert(String caName, BigInteger serialNumber) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getCertin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getCert
public org.xipki.ca.api.mgmt.CertWithRevocationInfo getCert(org.bouncycastle.asn1.x500.X500Name issuer, BigInteger serialNumber) throws org.xipki.ca.api.mgmt.CaMgmtException- Specified by:
getCertin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
loadConf
public Map<String,org.xipki.security.X509Cert> loadConf(InputStream zippedConfStream) throws org.xipki.ca.api.mgmt.CaMgmtException, IOException
- Specified by:
loadConfin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtExceptionIOException
-
exportConf
public InputStream exportConf(List<String> caNames) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
exportConfin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
listCertificates
public List<org.xipki.ca.api.mgmt.CertListInfo> listCertificates(String caName, org.bouncycastle.asn1.x500.X500Name subjectPattern, Instant validFrom, Instant validTo, org.xipki.ca.api.mgmt.CertListOrderBy orderBy, int numEntries) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
listCertificatesin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getSupportedSignerTypes
public Set<String> getSupportedSignerTypes() throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getSupportedSignerTypesin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getSupportedCertprofileTypes
public Set<String> getSupportedCertprofileTypes() throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getSupportedCertprofileTypesin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getSupportedPublisherTypes
public Set<String> getSupportedPublisherTypes() throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getSupportedPublisherTypesin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
-