Class CertificateReorderer

    • Constructor Detail

      • CertificateReorderer

        public CertificateReorderer​(Collection<CertificateToken> certificateChain)
        Constructor which takes a collection of certificates where DSS needs to find the signing certificate
        Parameters:
        certificateChain - a collection of certificates
      • CertificateReorderer

        public CertificateReorderer​(CertificateToken signingCertificate,
                                    Collection<CertificateToken> certificateChain)
        Constructor which takes a potential signing certificate and a certificate chain
        Parameters:
        signingCertificate - the potential signing certificate
        certificateChain - the certificate chain
    • Method Detail

      • getOrderedCertificates

        public List<CertificateToken> getOrderedCertificates()
        This method is used to order the certificates (signing certificate, CA1, CA2 and Root)
        Returns:
        a list of ordered certificates
      • getOrderedCertificateChains

        public Map<CertificateToken,​List<CertificateToken>> getOrderedCertificateChains()
        This method is used to order the certificates (signing certificate, CA1, CA2 and Root)
        Returns:
        a map of one or more ordered certificates chain