Class SSLCertificateLoader

java.lang.Object
eu.europa.esig.dss.service.http.commons.SSLCertificateLoader
All Implemented Interfaces:
Serializable

@Deprecated public class SSLCertificateLoader extends Object implements Serializable
Deprecated.
since DSS 6.4. Please see QWACValidator class instead.
The data loader which includes server webpage certificates to the response context Use the method getCertificates(url) to extract the data
See Also:
  • Constructor Details

    • SSLCertificateLoader

      @Deprecated public SSLCertificateLoader()
      Deprecated.
      since DSS 6.4
      Default constructor with null CommonsDataLoader
  • Method Details

    • setCommonsDataLoader

      public void setCommonsDataLoader(CommonsDataLoader commonsDataLoader)
      Deprecated.
      Allows to set a pre-configured CommonsDataLoader
      Parameters:
      commonsDataLoader - CommonsDataLoader to use
    • getCommonsDataLoader

      protected CommonsDataLoader getCommonsDataLoader()
      Deprecated.
      Gets the CommonsDataLoader implementation
      Returns:
      CommonsDataLoader
    • getCertificates

      @Deprecated public List<CertificateToken> getCertificates(String urlString)
      Deprecated.
      since DSS 6.4. Please see AdvancedDataLoader#requestGet(urlString, false).getTLSCertificates().
      The method to extract SSL-certificates from the given web page
      Parameters:
      urlString - String representing a URL of a webpage with a secure connection (HTTPS)
      Returns:
      a CertificateToken chain of the secure webpage
    • toCertificateTokens

      protected List<CertificateToken> toCertificateTokens(Certificate[] certificates)
      Deprecated.
      This method converts an array of java.security.cert.Certificates to a list of eu.europa.esig.dss.model.x509.CertificateTokens
      Parameters:
      certificates - an array of Certificate to convert
      Returns:
      a list of CertificateTokens