Package org.mapfish.print.http
Class CertificateStore
java.lang.Object
org.mapfish.print.http.CertificateStore
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLazily create and get the ssl context.getUri()
The uri to the certificate store.void
setConfiguration
(Configuration configuration) Set the configuration that the object belongs to.void
setPassword
(String password) The password for unlocking the certificate store.void
The uri to the certificate store.void
validate
(List<Throwable> validationErrors, Configuration config) validate that the configuration was correct.
-
Constructor Details
-
CertificateStore
public CertificateStore()
-
-
Method Details
-
getUri
The uri to the certificate store. -
setUri
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
The password for unlocking the certificate store.- Parameters:
password
- the password for unlocking the certificate store.
-
validate
Description copied from interface:ConfigurationObject
validate that the configuration was correct.- Specified by:
validate
in interfaceConfigurationObject
- Parameters:
validationErrors
- a list to add any detected errors to.config
- the containing configuration
-
getSSLContext
Lazily create and get the ssl context. -
setConfiguration
Description copied from interface:HasConfiguration
Set the configuration that the object belongs to.- Specified by:
setConfiguration
in interfaceHasConfiguration
- Parameters:
configuration
- the configuration object
-