Package org.mapfish.print.http
Class CertificateStore
- java.lang.Object
-
- org.mapfish.print.http.CertificateStore
-
- All Implemented Interfaces:
ConfigurationObject
,HasConfiguration
public final class CertificateStore extends java.lang.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 Summary
Constructors Constructor Description CertificateStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.net.ssl.SSLContext
getSSLContext()
Lazily create and get the ssl context.java.net.URI
getUri()
The uri to the certificate store.void
setConfiguration(Configuration configuration)
Set the configuration that the object belongs to.void
setPassword(java.lang.String password)
The password for unlocking the certificate store.void
setUri(java.net.URI uri)
The uri to the certificate store.void
validate(java.util.List<java.lang.Throwable> validationErrors, Configuration config)
validate that the configuration was correct.
-
-
-
Method Detail
-
getUri
public java.net.URI getUri()
The uri to the certificate store.
-
setUri
public void setUri(java.net.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(java.lang.String password)
The password for unlocking the certificate store.- Parameters:
password
- the password for unlocking the certificate store.
-
validate
public void validate(java.util.List<java.lang.Throwable> validationErrors, Configuration config)
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
public javax.net.ssl.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 interfaceHasConfiguration
- Parameters:
configuration
- the configuration object
-
-