Package org.xipki.ca.server.mgmt
Class CaManagerImpl
- java.lang.Object
-
- org.xipki.ca.server.mgmt.CaManagerImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.xipki.ca.api.mgmt.CaManager
public class CaManagerImpl extends Object implements org.xipki.ca.api.mgmt.CaManager, Closeable
Manages the CA system.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description CaManagerImpl(org.xipki.license.api.CmLicense license)
-
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 entry)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)voidclose()voidcommitNextCrlNo(org.xipki.ca.api.NameId ca, long nextCrlNo)IdentifiedCertprofilecreateCertprofile(org.xipki.ca.api.mgmt.entry.CertprofileEntry entry)KeypairGenEntryWrappercreateKeypairGenerator(org.xipki.ca.api.mgmt.entry.KeypairGenEntry entry)IdentifiedCertPublishercreatePublisher(org.xipki.ca.api.mgmt.entry.PublisherEntry entry)SignerEntryWrappercreateSigner(org.xipki.ca.api.mgmt.entry.SignerEntry entry)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 profileName, String subject, String serialNumber, Instant notBefore, Instant notAfter)Set<String>getAliasesForCa(String caName)org.xipki.ca.api.mgmt.entry.CaEntrygetCa(String name)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 name)org.xipki.ca.sdk.CertprofileInfoResponsegetCertprofileInfo(String profileName)Set<String>getCertprofileNames()Set<String>getCertprofilesForCa(String caName)org.bouncycastle.cert.X509CRLHoldergetCrl(String caName, BigInteger crlNumber)CtLogPublicKeyFindergetCtLogPublicKeyFinder()org.bouncycastle.cert.X509CRLHoldergetCurrentCrl(String caName)Map<String,String>getDbSchemas()intgetDbSchemaVersion()Set<String>getFailedCaNames()IdentifiedCertprofilegetIdentifiedCertprofile(String profileName)List<IdentifiedCertPublisher>getIdentifiedPublishersForCa(String caName)Set<String>getInactiveCaNames()org.xipki.ca.api.mgmt.entry.KeypairGenEntrygetKeypairGen(String name)org.xipki.security.KeypairGeneratorgetKeypairGenerator(String keypairGenName)Set<String>getKeypairGenNames()org.xipki.license.api.CmLicensegetLicense()org.xipki.security.pkcs11.P11CryptServiceFactorygetP11CryptServiceFactory()org.xipki.ca.api.mgmt.entry.PublisherEntrygetPublisher(String name)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)RequestorEntryWrappergetRequestorWrapper(String name)ScheduledThreadPoolExecutorgetScheduledThreadPoolExecutor()org.xipki.security.SecurityFactorygetSecurityFactory()intgetShardId()org.xipki.ca.api.mgmt.entry.SignerEntrygetSigner(String name)Set<String>getSignerNames()SignerEntryWrappergetSignerWrapper(String name)Set<String>getSuccessfulCaNames()Set<String>getSupportedCertprofileTypes()Set<String>getSupportedPublisherTypes()Set<String>getSupportedSignerTypes()StringgetTokenInfoP11(String moduleName, Integer slotIndex, boolean verbose)X509CagetX509Ca(String name)CaIdNameMapidNameMap()booleanisMasterMode()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 name)voidremoveCaAlias(String name)voidremoveCertificate(String caName, BigInteger serialNumber)voidremoveCertprofile(String name)voidremoveCertprofileFromCa(String profileName, String caName)voidremoveDbSchema(String name)voidremoveKeypairGen(String name)voidremovePublisher(String name)voidremovePublisherFromCa(String publisherName, String caName)voidremoveRequestor(String name)voidremoveRequestorFromCa(String requestorName, String caName)voidremoveSigner(String name)voidrepublishCertificates(String caName, List<String> publisherNames, int numThreads)voidrestartCa(String name)voidrestartCaSystem()voidrevokeCa(String caName, org.xipki.security.CertRevocationInfo revocationInfo)voidrevokeCertificate(String caName, BigInteger serialNumber, org.xipki.security.CrlReason reason, Instant invalidityTime)voidsetCaServerConf(CaServerConf caServerConf)voidsetCertprofileFactoryRegister(org.xipki.ca.api.profile.CertprofileFactoryRegister register)voidsetCertPublisherFactoryRegister(org.xipki.ca.api.publisher.CertPublisherFactoryRegister register)voidsetP11CryptServiceFactory(org.xipki.security.pkcs11.P11CryptServiceFactory p11CryptServiceFactory)voidsetSecurityFactory(org.xipki.security.SecurityFactory securityFactory)voidstartCaSystem()voidunlockCa()voidunrevokeCa(String caName)voidunsuspendCertificate(String caName, BigInteger serialNumber)
-
-
-
Method Detail
-
getShardId
public int getShardId()
-
getSecurityFactory
public org.xipki.security.SecurityFactory getSecurityFactory()
-
setSecurityFactory
public void setSecurityFactory(org.xipki.security.SecurityFactory securityFactory)
-
getP11CryptServiceFactory
public org.xipki.security.pkcs11.P11CryptServiceFactory getP11CryptServiceFactory()
-
setP11CryptServiceFactory
public void setP11CryptServiceFactory(org.xipki.security.pkcs11.P11CryptServiceFactory p11CryptServiceFactory)
-
isMasterMode
public boolean isMasterMode()
-
getSupportedSignerTypes
public Set<String> getSupportedSignerTypes()
- Specified by:
getSupportedSignerTypesin interfaceorg.xipki.ca.api.mgmt.CaManager
-
getSupportedCertprofileTypes
public Set<String> getSupportedCertprofileTypes()
- Specified by:
getSupportedCertprofileTypesin interfaceorg.xipki.ca.api.mgmt.CaManager
-
getSupportedPublisherTypes
public Set<String> getSupportedPublisherTypes()
- Specified by:
getSupportedPublisherTypesin interfaceorg.xipki.ca.api.mgmt.CaManager
-
getTokenInfoP11
public String getTokenInfoP11(String moduleName, Integer slotIndex, boolean verbose) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
getTokenInfoP11in interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getDbSchemaVersion
public int getDbSchemaVersion()
-
getCaSystemStatus
public org.xipki.ca.api.mgmt.CaSystemStatus getCaSystemStatus()
- Specified by:
getCaSystemStatusin interfaceorg.xipki.ca.api.mgmt.CaManager
-
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
-
restartCa
public void restartCa(String name) 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
-
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
-
startCaSystem
public void startCaSystem()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getScheduledThreadPoolExecutor
public ScheduledThreadPoolExecutor getScheduledThreadPoolExecutor()
-
getCertprofileNames
public Set<String> getCertprofileNames()
- Specified by:
getCertprofileNamesin interfaceorg.xipki.ca.api.mgmt.CaManager
-
getKeypairGenNames
public Set<String> getKeypairGenNames()
- Specified by:
getKeypairGenNamesin interfaceorg.xipki.ca.api.mgmt.CaManager
-
getPublisherNames
public Set<String> getPublisherNames()
- Specified by:
getPublisherNamesin interfaceorg.xipki.ca.api.mgmt.CaManager
-
getRequestorNames
public Set<String> getRequestorNames()
- Specified by:
getRequestorNamesin interfaceorg.xipki.ca.api.mgmt.CaManager
-
getSignerNames
public Set<String> getSignerNames()
- Specified by:
getSignerNamesin interfaceorg.xipki.ca.api.mgmt.CaManager
-
getCaNames
public Set<String> getCaNames()
- Specified by:
getCaNamesin interfaceorg.xipki.ca.api.mgmt.CaManager
-
getSuccessfulCaNames
public Set<String> getSuccessfulCaNames()
- Specified by:
getSuccessfulCaNamesin interfaceorg.xipki.ca.api.mgmt.CaManager
-
getFailedCaNames
public Set<String> getFailedCaNames()
- Specified by:
getFailedCaNamesin interfaceorg.xipki.ca.api.mgmt.CaManager
-
getInactiveCaNames
public Set<String> getInactiveCaNames()
- Specified by:
getInactiveCaNamesin interfaceorg.xipki.ca.api.mgmt.CaManager
-
commitNextCrlNo
public void commitNextCrlNo(org.xipki.ca.api.NameId ca, long nextCrlNo) throws org.xipki.util.exception.OperationException- Throws:
org.xipki.util.exception.OperationException
-
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 name)
- Specified by:
getCain interfaceorg.xipki.ca.api.mgmt.CaManager
-
changeCa
public void changeCa(org.xipki.ca.api.mgmt.entry.ChangeCaEntry entry) 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)
- Specified by:
getCertprofilesForCain interfaceorg.xipki.ca.api.mgmt.CaManager
-
getRequestorsForCa
public Set<org.xipki.ca.api.mgmt.entry.CaHasRequestorEntry> getRequestorsForCa(String caName)
- Specified by:
getRequestorsForCain interfaceorg.xipki.ca.api.mgmt.CaManager
-
getRequestor
public org.xipki.ca.api.mgmt.entry.RequestorEntry getRequestor(String name)
- Specified by:
getRequestorin interfaceorg.xipki.ca.api.mgmt.CaManager
-
getRequestorWrapper
public RequestorEntryWrapper getRequestorWrapper(String name)
-
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 name) 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
-
getCertprofile
public org.xipki.ca.api.mgmt.entry.CertprofileEntry getCertprofile(String name)
- Specified by:
getCertprofilein interfaceorg.xipki.ca.api.mgmt.CaManager
-
removeCertprofile
public void removeCertprofile(String name) 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
-
getCertprofileInfo
public org.xipki.ca.sdk.CertprofileInfoResponse getCertprofileInfo(String profileName) throws org.xipki.util.exception.OperationException
- Throws:
org.xipki.util.exception.OperationException
-
getKeypairGen
public org.xipki.ca.api.mgmt.entry.KeypairGenEntry getKeypairGen(String name)
- Specified by:
getKeypairGenin interfaceorg.xipki.ca.api.mgmt.CaManager
-
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
-
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
-
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
-
getSigner
public org.xipki.ca.api.mgmt.entry.SignerEntry getSigner(String name)
- Specified by:
getSignerin interfaceorg.xipki.ca.api.mgmt.CaManager
-
getSignerWrapper
public SignerEntryWrapper getSignerWrapper(String name)
-
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)
- Specified by:
getPublishersForCain interfaceorg.xipki.ca.api.mgmt.CaManager
-
getPublisher
public org.xipki.ca.api.mgmt.entry.PublisherEntry getPublisher(String name)
- Specified by:
getPublisherin interfaceorg.xipki.ca.api.mgmt.CaManager
-
removePublisher
public void removePublisher(String name) 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
-
setCaServerConf
public void setCaServerConf(CaServerConf caServerConf)
-
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 name) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
removeCaAliasin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getCaNameForAlias
public String getCaNameForAlias(String aliasName)
- Specified by:
getCaNameForAliasin interfaceorg.xipki.ca.api.mgmt.CaManager
-
getAliasesForCa
public Set<String> getAliasesForCa(String caName)
- Specified by:
getAliasesForCain interfaceorg.xipki.ca.api.mgmt.CaManager
-
getCaAliasNames
public Set<String> getCaAliasNames()
- Specified by:
getCaAliasNamesin interfaceorg.xipki.ca.api.mgmt.CaManager
-
removeCa
public void removeCa(String name) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
removeCain 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
-
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
-
setCertprofileFactoryRegister
public void setCertprofileFactoryRegister(org.xipki.ca.api.profile.CertprofileFactoryRegister register)
-
setCertPublisherFactoryRegister
public void setCertPublisherFactoryRegister(org.xipki.ca.api.publisher.CertPublisherFactoryRegister register)
-
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
-
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
-
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
-
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
-
getX509Ca
public X509Ca getX509Ca(String name) throws org.xipki.ca.api.mgmt.CaMgmtException
- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
getKeypairGenerator
public org.xipki.security.KeypairGenerator getKeypairGenerator(String keypairGenName)
-
getIdentifiedCertprofile
public IdentifiedCertprofile getIdentifiedCertprofile(String profileName)
-
getIdentifiedPublishersForCa
public List<IdentifiedCertPublisher> getIdentifiedPublishersForCa(String caName)
-
generateRootCa
public org.xipki.security.X509Cert generateRootCa(org.xipki.ca.api.mgmt.entry.CaEntry caEntry, String profileName, 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
-
createSigner
public SignerEntryWrapper createSigner(org.xipki.ca.api.mgmt.entry.SignerEntry entry) throws org.xipki.ca.api.mgmt.CaMgmtException
- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
createCertprofile
public IdentifiedCertprofile createCertprofile(org.xipki.ca.api.mgmt.entry.CertprofileEntry entry) throws org.xipki.ca.api.mgmt.CaMgmtException
- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
createPublisher
public IdentifiedCertPublisher createPublisher(org.xipki.ca.api.mgmt.entry.PublisherEntry entry) throws org.xipki.ca.api.mgmt.CaMgmtException
- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
createKeypairGenerator
public KeypairGenEntryWrapper createKeypairGenerator(org.xipki.ca.api.mgmt.entry.KeypairGenEntry entry) throws org.xipki.ca.api.mgmt.CaMgmtException
- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
idNameMap
public CaIdNameMap idNameMap()
-
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
-
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
-
loadConf
public Map<String,org.xipki.security.X509Cert> loadConf(InputStream zippedConfStream) throws org.xipki.ca.api.mgmt.CaMgmtException
- Specified by:
loadConfin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtException
-
exportConf
public InputStream exportConf(List<String> caNames) throws org.xipki.ca.api.mgmt.CaMgmtException, IOException
- Specified by:
exportConfin interfaceorg.xipki.ca.api.mgmt.CaManager- Throws:
org.xipki.ca.api.mgmt.CaMgmtExceptionIOException
-
getCtLogPublicKeyFinder
public CtLogPublicKeyFinder getCtLogPublicKeyFinder()
-
getLicense
public org.xipki.license.api.CmLicense getLicense()
-
-