Package eu.europa.esig.dss
Class CertificateReorderer
java.lang.Object
eu.europa.esig.dss.CertificateReorderer
- Direct Known Subclasses:
BaselineBCertificateSelector
Reorders a certificate collection to the corresponding certificate chain
-
Constructor Summary
ConstructorDescriptionCertificateReorderer
(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 TypeMethodDescriptionThis method is used to order the certificates (signing certificate, CA1, CA2 and Root)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 ofCertificateToken
s
-
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 certificatecertificateChain
- a collection ofCertificateToken
s
-
-
Method Details
-
getOrderedCertificates
This method is used to order the certificates (signing certificate, CA1, CA2 and Root)- Returns:
- a list of ordered
CertificateToken
s
-
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
-