Package com.floragunn.dlic.util
Class SettingsBasedSSLConfigurator
- java.lang.Object
-
- com.floragunn.dlic.util.SettingsBasedSSLConfigurator
-
public class SettingsBasedSSLConfigurator extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSettingsBasedSSLConfigurator.SSLConfigstatic classSettingsBasedSSLConfigurator.SSLConfigException
-
Field Summary
Fields Modifier and Type Field Description static StringCA_ALIASstatic StringCERT_ALIASstatic StringENABLE_SSLstatic StringENABLE_SSL_CLIENT_AUTHstatic StringENABLE_START_TLSShall STARTTLS shall be used?static StringPEMCERT_CONTENTstatic StringPEMCERT_FILEPATHstatic StringPEMKEY_CONTENTstatic StringPEMKEY_FILEPATHstatic StringPEMKEY_PASSWORDstatic StringPEMTRUSTEDCAS_CONTENTstatic StringPEMTRUSTEDCAS_FILEPATHstatic StringTRUST_ALLstatic StringVERIFY_HOSTNAMES
-
Constructor Summary
Constructors Constructor Description SettingsBasedSSLConfigurator(org.elasticsearch.common.settings.Settings settings, Path configPath, String settingsKeyPrefix)SettingsBasedSSLConfigurator(org.elasticsearch.common.settings.Settings settings, Path configPath, String settingsKeyPrefix, String clientName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SettingsBasedSSLConfigurator.SSLConfigbuildSSLConfig()
-
-
-
Field Detail
-
CERT_ALIAS
public static final String CERT_ALIAS
- See Also:
- Constant Field Values
-
CA_ALIAS
public static final String CA_ALIAS
- See Also:
- Constant Field Values
-
ENABLE_SSL
public static final String ENABLE_SSL
- See Also:
- Constant Field Values
-
ENABLE_START_TLS
public static final String ENABLE_START_TLS
Shall STARTTLS shall be used?NOTE: The setting of this option is only reflected by the startTlsEnabled attribute of the returned SSLConfig object. Clients of this class need to take further measures to enable STARTTLS. It does not affect the SSLIOSessionStrategy and SSLConnectionSocketFactory objects returned from this class.
- See Also:
- Constant Field Values
-
ENABLE_SSL_CLIENT_AUTH
public static final String ENABLE_SSL_CLIENT_AUTH
- See Also:
- Constant Field Values
-
PEMKEY_FILEPATH
public static final String PEMKEY_FILEPATH
- See Also:
- Constant Field Values
-
PEMKEY_CONTENT
public static final String PEMKEY_CONTENT
- See Also:
- Constant Field Values
-
PEMKEY_PASSWORD
public static final String PEMKEY_PASSWORD
- See Also:
- Constant Field Values
-
PEMCERT_FILEPATH
public static final String PEMCERT_FILEPATH
- See Also:
- Constant Field Values
-
PEMCERT_CONTENT
public static final String PEMCERT_CONTENT
- See Also:
- Constant Field Values
-
PEMTRUSTEDCAS_CONTENT
public static final String PEMTRUSTEDCAS_CONTENT
- See Also:
- Constant Field Values
-
PEMTRUSTEDCAS_FILEPATH
public static final String PEMTRUSTEDCAS_FILEPATH
- See Also:
- Constant Field Values
-
VERIFY_HOSTNAMES
public static final String VERIFY_HOSTNAMES
- See Also:
- Constant Field Values
-
TRUST_ALL
public static final String TRUST_ALL
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildSSLConfig
public SettingsBasedSSLConfigurator.SSLConfig buildSSLConfig() throws SettingsBasedSSLConfigurator.SSLConfigException
-
-