Package eu.europa.esig.dss.validation
Class XmlTrustedServiceProviderBuilder
java.lang.Object
eu.europa.esig.dss.validation.XmlTrustedServiceProviderBuilder
This class is used to build a
XmlTrustedServiceProvider
object instance-
Constructor Summary
ConstructorDescriptionXmlTrustedServiceProviderBuilder
(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 ofXmlTrustedServiceProvider
s corresponding to the givenCertificateToken
-
Constructor Details
-
XmlTrustedServiceProviderBuilder
public XmlTrustedServiceProviderBuilder(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<XmlTrustedServiceProvider> build(CertificateToken certificateToken, Map<CertificateToken, List<TrustProperties>> relatedTrustServices) This method builds a list ofXmlTrustedServiceProvider
s corresponding to the givenCertificateToken
- Parameters:
certificateToken
-CertificateToken
to get a list ofXmlTrustedServiceProvider
srelatedTrustServices
- a map of trust anchorCertificateToken
s and their corresponding trusted services- Returns:
- a list of
XmlTrustedServiceProvider
s
-