Class 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 Detail

      • CaMgmtClient

        public CaMgmtClient​(org.xipki.util.http.SslContextConf sslContextConf)
    • Method Detail

      • initIfNotDone

        public void initIfNotDone()
                           throws org.xipki.ca.api.mgmt.CaMgmtException
        Throws:
        org.xipki.ca.api.mgmt.CaMgmtException
      • getCaSystemStatus

        public org.xipki.ca.api.mgmt.CaSystemStatus getCaSystemStatus()
                                                               throws org.xipki.ca.api.mgmt.CaMgmtException
        Specified by:
        getCaSystemStatus in interface org.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:
        unlockCa in interface org.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:
        notifyCaChange in interface org.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:
        addDbSchema in interface org.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:
        changeDbSchema in interface org.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:
        removeDbSchema in interface org.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:
        getDbSchemas in interface org.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:
        republishCertificates in interface org.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:
        clearPublishQueue in interface org.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:
        removeCa in interface org.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:
        restartCa in interface org.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:
        restartCaSystem in interface org.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:
        addCaAlias in interface org.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:
        removeCaAlias in interface org.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:
        getAliasesForCa in interface org.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:
        getCaNameForAlias in interface org.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:
        getCaAliasNames in interface org.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:
        getCertprofileNames in interface org.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:
        getKeypairGenNames in interface org.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:
        getPublisherNames in interface org.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:
        getRequestorNames in interface org.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:
        getSignerNames in interface org.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:
        getCaNames in interface org.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:
        getSuccessfulCaNames in interface org.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:
        getFailedCaNames in interface org.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:
        getInactiveCaNames in interface org.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:
        addCa in interface org.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:
        getCa in interface org.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:
        changeCa in interface org.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:
        removeCertprofileFromCa in interface org.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:
        addCertprofileToCa in interface org.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:
        removePublisherFromCa in interface org.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:
        addPublisherToCa in interface org.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:
        getCertprofilesForCa in interface org.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:
        getRequestorsForCa in interface org.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:
        getRequestor in interface org.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:
        addRequestor in interface org.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:
        removeRequestor in interface org.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:
        changeRequestor in interface org.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:
        removeRequestorFromCa in interface org.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:
        addRequestorToCa in interface org.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:
        getKeypairGen in interface org.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:
        removeKeypairGen in interface org.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:
        changeKeypairGen in interface org.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:
        addKeypairGen in interface org.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:
        getCertprofile in interface org.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:
        removeCertprofile in interface org.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:
        changeCertprofile in interface org.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:
        addCertprofile in interface org.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:
        addSigner in interface org.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:
        removeSigner in interface org.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:
        getSigner in interface org.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:
        changeSigner in interface org.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:
        addPublisher in interface org.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:
        getPublishersForCa in interface org.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:
        getPublisher in interface org.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:
        removePublisher in interface org.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:
        changePublisher in interface org.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:
        revokeCa in interface org.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:
        unrevokeCa in interface org.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:
        revokeCertificate in interface org.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:
        unsuspendCertificate in interface org.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:
        removeCertificate in interface org.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:
        generateCrossCertificate in interface org.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:
        generateCertificate in interface org.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:
        generateKeyCert in interface org.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:
        generateRootCa in interface org.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:
        generateCrlOnDemand in interface org.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:
        getCrl in interface org.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:
        getCurrentCrl in interface org.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:
        getCert in interface org.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:
        getCert in interface org.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:
        loadConf in interface org.xipki.ca.api.mgmt.CaManager
        Throws:
        org.xipki.ca.api.mgmt.CaMgmtException
        IOException
      • exportConf

        public InputStream exportConf​(List<String> caNames)
                               throws org.xipki.ca.api.mgmt.CaMgmtException
        Specified by:
        exportConf in interface org.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:
        listCertificates in interface org.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:
        getSupportedSignerTypes in interface org.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:
        getSupportedCertprofileTypes in interface org.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:
        getSupportedPublisherTypes in interface org.xipki.ca.api.mgmt.CaManager
        Throws:
        org.xipki.ca.api.mgmt.CaMgmtException
      • getTokenInfoP11

        public String getTokenInfoP11​(String module,
                                      Integer slotIndex,
                                      boolean verbose)
                               throws org.xipki.ca.api.mgmt.CaMgmtException
        Specified by:
        getTokenInfoP11 in interface org.xipki.ca.api.mgmt.CaManager
        Throws:
        org.xipki.ca.api.mgmt.CaMgmtException