Class XmlTrustServiceProviderBuilder
java.lang.Object
eu.europa.esig.dss.validation.reports.diagnostic.XmlTrustServiceProviderBuilder
This class is used to build a
XmlTrustServiceProvider
object instance-
Constructor Summary
ConstructorDescriptionXmlTrustServiceProviderBuilder
(Map<String, XmlCertificate> xmlCertsMap, Map<String, XmlTrustedList> xmlTrustedListsMap, Map<String, TLInfo> tlInfoMap) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionbuild
(CertificateToken certificateToken, Map<CertificateToken, List<TrustProperties>> relatedTrustServices) This method builds a list ofXmlTrustServiceProvider
s corresponding to the givenCertificateToken
-
Constructor Details
-
XmlTrustServiceProviderBuilder
public XmlTrustServiceProviderBuilder(Map<String, XmlCertificate> xmlCertsMap, Map<String, XmlTrustedList> xmlTrustedListsMap, Map<String, TLInfo> tlInfoMap) Default constructor- Parameters:
xmlCertsMap
- a map of certificate identifiers and corresponding XML representationsxmlTrustedListsMap
- a map of trusted list identifiers and corresponding XML representationstlInfoMap
- a map of trusted list identifiers and correspondingTLInfo
s
-
-
Method Details
-
build
public List<XmlTrustServiceProvider> build(CertificateToken certificateToken, Map<CertificateToken, List<TrustProperties>> relatedTrustServices) This method builds a list ofXmlTrustServiceProvider
s corresponding to the givenCertificateToken
- Parameters:
certificateToken
-CertificateToken
to get a list ofXmlTrustServiceProvider
srelatedTrustServices
- a map of trust anchorCertificateToken
s and their corresponding trusted services- Returns:
- a list of
XmlTrustServiceProvider
s
-