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:
Serialized Form
  • Constructor Details

    • SSLCertificateLoader

      public SSLCertificateLoader()
  • 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) throws DSSException
      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
      Throws:
      DSSException - in case if an exception occurs