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 Summary

    Constructors
    Constructor
    Description
    CertificateReorderer(eu.europa.esig.dss.model.x509.CertificateToken signingCertificate, Collection<eu.europa.esig.dss.model.x509.CertificateToken> certificateChain)
    Constructor which takes a potential signing certificate and a certificate chain
    CertificateReorderer(Collection<eu.europa.esig.dss.model.x509.CertificateToken> certificateChain)
    Constructor which takes a collection of certificates where DSS needs to find the signing certificate
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<eu.europa.esig.dss.model.x509.CertificateToken,List<eu.europa.esig.dss.model.x509.CertificateToken>>
    This method is used to order the certificates (signing certificate, CA1, CA2 and Root)
    List<eu.europa.esig.dss.model.x509.CertificateToken>
    This method is used to order the certificates (signing certificate, CA1, CA2 and Root)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CertificateReorderer

      public CertificateReorderer(Collection<eu.europa.esig.dss.model.x509.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(eu.europa.esig.dss.model.x509.CertificateToken signingCertificate, Collection<eu.europa.esig.dss.model.x509.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<eu.europa.esig.dss.model.x509.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<eu.europa.esig.dss.model.x509.CertificateToken,List<eu.europa.esig.dss.model.x509.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