Class CertificateReorderer

java.lang.Object
eu.europa.esig.dss.CertificateReorderer
Direct Known Subclasses:
BaselineBCertificateSelector

public class CertificateReorderer extends Object
Reorders a certificate collection to the corresponding certificate chain
  • Constructor Details

    • 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 CertificateTokens
    • CertificateReorderer

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

    • getOrderedCertificates

      public List<CertificateToken> getOrderedCertificates()
      This method is used to order the certificates (signing certificate, CA1, CA2 and Root)
      Returns:
      a list of ordered CertificateTokens
    • 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