public class CmsLetsEncryptConfiguration extends java.lang.Object implements I_CmsConfigurationParameterHandler
Modifier and Type | Class and Description |
---|---|
static class |
CmsLetsEncryptConfiguration.Mode
Enum which represents different modes that control which domains OpenCms puts into the certificate configuration.
|
static class |
CmsLetsEncryptConfiguration.Trigger
Enum which represents the different types of events that LetsEncrypt updates should be triggered by.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_CERTCONFIG
Attribute name for the certificate configuration path.
|
static java.lang.String |
ATTR_HOST
Attribute name for the host.
|
static java.lang.String |
ATTR_MODE
Attribute name for the mode.
|
static java.lang.String |
ATTR_PORT
Attribute name for the port.
|
static java.lang.String |
ATTR_TRIGGER
Attribute name for the trigger mode.
|
static CmsElementWithAttrsParamConfigHelper |
CONFIG_HELPER
Helper for parsing / generating the configuration.
|
static CmsLetsEncryptConfiguration.Trigger |
DEFAULT_TRIGGER
The default trigger mode.
|
static java.lang.String |
N_LETSENCRYPT
Node name.
|
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
Constructor and Description |
---|
CmsLetsEncryptConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addConfigurationParameter(java.lang.String paramName,
java.lang.String paramValue)
Adds a configuration parameter to this parameter configurable class instance.
|
java.lang.String |
getCertConfigPath()
Gets the path where the certificate configuration should be written to.
|
CmsParameterConfiguration |
getConfiguration()
Returns the parameters of this configurable class instance,
or
null if the class does not need any parameters. |
java.lang.String |
getHost()
Gets the host name for the LetsEncrypt docker container.
|
CmsLetsEncryptConfiguration.Mode |
getMode()
Gets the configured mode, or null if no mode or an invalid mode have been configured.
|
int |
getPort()
Gets the configured port, or -1 if the port is not set or has an invalid value.
|
CmsLetsEncryptConfiguration.Trigger |
getTrigger()
Gets the trigger mode.
|
void |
initConfiguration()
Initializes a configuration after all parameters have been added.
|
boolean |
isValidAndEnabled()
Checks if the configuration is enabled and does not have missing settings.
|
public static final java.lang.String ATTR_CERTCONFIG
public static final java.lang.String ATTR_HOST
public static final java.lang.String ATTR_MODE
public static final java.lang.String ATTR_PORT
public static final java.lang.String ATTR_TRIGGER
public static final java.lang.String N_LETSENCRYPT
public static final CmsElementWithAttrsParamConfigHelper CONFIG_HELPER
public static final CmsLetsEncryptConfiguration.Trigger DEFAULT_TRIGGER
public CmsLetsEncryptConfiguration()
public void addConfigurationParameter(java.lang.String paramName, java.lang.String paramValue)
I_CmsConfigurationParameterHandler
addConfigurationParameter
in interface I_CmsConfigurationParameterHandler
paramName
- the name of the parameterparamValue
- the value for the parameterI_CmsConfigurationParameterHandler.addConfigurationParameter(java.lang.String, java.lang.String)
public java.lang.String getCertConfigPath()
public CmsParameterConfiguration getConfiguration()
I_CmsConfigurationParameterHandler
null
if the class does not need any parameters.getConfiguration
in interface I_CmsConfigurationParameterHandler
null
if the class does not need any parametersI_CmsConfigurationParameterHandler.getConfiguration()
public java.lang.String getHost()
The host name is used to signal to the LetsEncrypt container that the configuration has been updated.
public CmsLetsEncryptConfiguration.Mode getMode()
public int getPort()
The port is used to signal to the LetsEncrypt docker container that the certificate configuration has changed.
public CmsLetsEncryptConfiguration.Trigger getTrigger()
public void initConfiguration()
I_CmsConfigurationParameterHandler
initConfiguration
in interface I_CmsConfigurationParameterHandler
I_CmsConfigurationParameterHandler.initConfiguration()
public boolean isValidAndEnabled()