Class XmlTrustServiceProviderBuilder

java.lang.Object
eu.europa.esig.dss.validation.XmlTrustServiceProviderBuilder

public class XmlTrustServiceProviderBuilder extends Object
This class is used to build a XmlTrustServiceProvider object instance
  • Constructor Summary

    Constructors
    Constructor
    Description
    XmlTrustServiceProviderBuilder(Map<String,eu.europa.esig.dss.diagnostic.jaxb.XmlCertificate> xmlCertsMap, Map<String,eu.europa.esig.dss.diagnostic.jaxb.XmlTrustedList> xmlTrustedListsMap, Map<String,eu.europa.esig.dss.spi.tsl.TLInfo> tlInfoMap)
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    List<eu.europa.esig.dss.diagnostic.jaxb.XmlTrustServiceProvider>
    build(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, Map<eu.europa.esig.dss.model.x509.CertificateToken,List<eu.europa.esig.dss.spi.tsl.TrustProperties>> relatedTrustServices)
    This method builds a list of XmlTrustServiceProviders corresponding to the given CertificateToken

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XmlTrustServiceProviderBuilder

      public XmlTrustServiceProviderBuilder(Map<String,eu.europa.esig.dss.diagnostic.jaxb.XmlCertificate> xmlCertsMap, Map<String,eu.europa.esig.dss.diagnostic.jaxb.XmlTrustedList> xmlTrustedListsMap, Map<String,eu.europa.esig.dss.spi.tsl.TLInfo> tlInfoMap)
      Default constructor
      Parameters:
      xmlCertsMap - a map of certificate identifiers and corresponding XML representations
      xmlTrustedListsMap - a map of trusted list identifiers and corresponding XML representations
      tlInfoMap - a map of trusted list identifiers and corresponding TLInfos
  • Method Details

    • build

      public List<eu.europa.esig.dss.diagnostic.jaxb.XmlTrustServiceProvider> build(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, Map<eu.europa.esig.dss.model.x509.CertificateToken,List<eu.europa.esig.dss.spi.tsl.TrustProperties>> relatedTrustServices)
      This method builds a list of XmlTrustServiceProviders corresponding to the given CertificateToken
      Parameters:
      certificateToken - CertificateToken to get a list of XmlTrustServiceProviders
      relatedTrustServices - a map of trust anchor CertificateTokens and their corresponding trusted services
      Returns:
      a list of XmlTrustServiceProviders