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
ConstructorsConstructorDescriptionXmlTrustServiceProviderBuilder(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 ofXmlTrustServiceProviders 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 correspondingTLInfos
-
-
Method Details
-
build
public List<XmlTrustServiceProvider> build(CertificateToken certificateToken, Map<CertificateToken, List<TrustProperties>> relatedTrustServices) This method builds a list ofXmlTrustServiceProviders corresponding to the givenCertificateToken- Parameters:
certificateToken-CertificateTokento get a list ofXmlTrustServiceProvidersrelatedTrustServices- a map of trust anchorCertificateTokens and their corresponding trusted services- Returns:
- a list of
XmlTrustServiceProviders
-