Package eu.europa.esig.dss
Class CertificateReorderer
java.lang.Object
eu.europa.esig.dss.CertificateReorderer
- Direct Known Subclasses:
BaselineBCertificateSelector
public class CertificateReorderer extends Object
-
Constructor Summary
Constructors Constructor Description CertificateReorderer(CertificateToken signingCertificate, Collection<CertificateToken> certificateChain)
Constructor which takes a potential signing certificate and a certificate chainCertificateReorderer(Collection<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<CertificateToken,List<CertificateToken>>
getOrderedCertificateChains()
This method is used to order the certificates (signing certificate, CA1, CA2 and Root)List<CertificateToken>
getOrderedCertificates()
This method is used to order the certificates (signing certificate, CA1, CA2 and Root)
-
Constructor Details
-
CertificateReorderer
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 certificatecertificateChain
- the certificate chain
-
-
Method Details
-
getOrderedCertificates
This method is used to order the certificates (signing certificate, CA1, CA2 and Root)- Returns:
- a list of ordered certificates
-
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
-