Class CertificateStore

java.lang.Object
org.mapfish.print.http.CertificateStore
All Implemented Interfaces:
ConfigurationObject, HasConfiguration

public final class CertificateStore extends Object implements ConfigurationObject, HasConfiguration
A configuration object for configuring a custom certificate/trust store.

It is a uri to a java jks keystore file along with the password for unlocking the store.

  • Constructor Details

    • CertificateStore

      public CertificateStore()
  • Method Details

    • getUri

      public URI getUri()
      The uri to the certificate store.
    • setUri

      public void setUri(URI uri)
      The uri to the certificate store. It is a uri to a java jks keystore file along with the password for unlocking the store.
      Parameters:
      uri - the uri to use for loading the file
    • setPassword

      public void setPassword(String password)
      The password for unlocking the certificate store.
      Parameters:
      password - the password for unlocking the certificate store.
    • validate

      public void validate(List<Throwable> validationErrors, Configuration config)
      Description copied from interface: ConfigurationObject
      validate that the configuration was correct.
      Specified by:
      validate in interface ConfigurationObject
      Parameters:
      validationErrors - a list to add any detected errors to.
      config - the containing configuration
    • getSSLContext

      public SSLContext getSSLContext()
      Lazily create and get the ssl context.
    • setConfiguration

      public void setConfiguration(Configuration configuration)
      Description copied from interface: HasConfiguration
      Set the configuration that the object belongs to.
      Specified by:
      setConfiguration in interface HasConfiguration
      Parameters:
      configuration - the configuration object