Class SSLCertificateLoader

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

public class SSLCertificateLoader extends Object implements Serializable
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

      public SSLCertificateLoader()
      Default constructor with null CommonsDataLoader
  • Method Details

    • setCommonsDataLoader

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

      public List<CertificateToken> getCertificates(String urlString)
      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