Package org.elasticsearch.common.ssl
Class SslConfigurationKeys
java.lang.Object
org.elasticsearch.common.ssl.SslConfigurationKeys
Utility class for handling the standard setting keys for use in SSL configuration.
- See Also:
SslConfiguration,SslConfigurationLoader
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StringThe path to a PEM formatted file that contains the certificate to be used as part of key managementstatic StringA list of paths to PEM formatted certificates that should be trusted as CAsstatic StringThe SSL/TLS cipher suites that should be usedstatic StringWhen operating as a server, whether to request/require client certificatesstatic StringThe path to a PEM formatted file that contains the private key for the configuredCERTIFICATE.static StringThe password to read the configuredKEY, as a non-secure setting.static StringThe password to read the configuredKEY, as a secure setting.static StringThekey management algorithmto use when connstructing a Key manager from akeystore.static StringThe password for the key within theconfigured keystore, as a non-secure setting.static StringThe password for the file configured inKEYSTORE_PATH, as a non-secure setting.static StringThe path to a KeyStore file (in a format supported by this JRE) that should be used for key managementstatic StringThe password for the key within theconfigured keystore, as a secure setting.static StringThe password for the file configured inKEYSTORE_PATH, as a secure setting.static StringThekeystore typefor the file configured inKEYSTORE_PATH.static StringThe SSL/TLS protocols (i.e.static StringThetrust management algorithmto use when configuring trust with atruststore.static StringThe password for the file configured inTRUSTSTORE_PATH, as a non-secure setting.static StringThe path to a KeyStore file (in a format supported by this JRE) that should be used as a trust-storestatic StringThe password for the file configured inTRUSTSTORE_PATH, as a secure setting.static StringThekeystore typefor the file configured inTRUSTSTORE_PATH.static StringWhether certificate and/or hostname verification should be used -
Method Summary
Modifier and TypeMethodDescriptionThe list of keys that are used to load a non-secure, list settingThe list of keys that are used to load a secure setting (such as a password) that would typically be stored in the elasticsearch keystore.The list of keys that are used to load a non-secure, non-list settingstatic booleanisDeprecated(String key)
-
Field Details
-
PROTOCOLS
The SSL/TLS protocols (i.e. versions) that should be used- See Also:
- Constant Field Values
-
CIPHERS
The SSL/TLS cipher suites that should be used- See Also:
- Constant Field Values
-
VERIFICATION_MODE
Whether certificate and/or hostname verification should be used- See Also:
- Constant Field Values
-
CLIENT_AUTH
When operating as a server, whether to request/require client certificates- See Also:
- Constant Field Values
-
CERTIFICATE_AUTHORITIES
A list of paths to PEM formatted certificates that should be trusted as CAs- See Also:
- Constant Field Values
-
TRUSTSTORE_PATH
The path to a KeyStore file (in a format supported by this JRE) that should be used as a trust-store- See Also:
- Constant Field Values
-
TRUSTSTORE_SECURE_PASSWORD
The password for the file configured inTRUSTSTORE_PATH, as a secure setting.- See Also:
- Constant Field Values
-
TRUSTSTORE_LEGACY_PASSWORD
The password for the file configured inTRUSTSTORE_PATH, as a non-secure setting. The use of this settingis deprecated.- See Also:
- Constant Field Values
-
TRUSTSTORE_TYPE
Thekeystore typefor the file configured inTRUSTSTORE_PATH.- See Also:
- Constant Field Values
-
TRUSTSTORE_ALGORITHM
Thetrust management algorithmto use when configuring trust with atruststore.- See Also:
- Constant Field Values
-
KEYSTORE_PATH
The path to a KeyStore file (in a format supported by this JRE) that should be used for key management- See Also:
- Constant Field Values
-
KEYSTORE_SECURE_PASSWORD
The password for the file configured inKEYSTORE_PATH, as a secure setting.- See Also:
- Constant Field Values
-
KEYSTORE_LEGACY_PASSWORD
The password for the file configured inKEYSTORE_PATH, as a non-secure setting. The use of this settingis deprecated.- See Also:
- Constant Field Values
-
KEYSTORE_SECURE_KEY_PASSWORD
The password for the key within theconfigured keystore, as a secure setting. If no key password is specified, it will default to the keystore password.- See Also:
- Constant Field Values
-
KEYSTORE_LEGACY_KEY_PASSWORD
The password for the key within theconfigured keystore, as a non-secure setting. The use of this settingis deprecated. If no key password is specified, it will default to the keystore password.- See Also:
- Constant Field Values
-
KEYSTORE_TYPE
Thekeystore typefor the file configured inKEYSTORE_PATH.- See Also:
- Constant Field Values
-
KEYSTORE_ALGORITHM
Thekey management algorithmto use when connstructing a Key manager from akeystore.- See Also:
- Constant Field Values
-
CERTIFICATE
The path to a PEM formatted file that contains the certificate to be used as part of key management- See Also:
- Constant Field Values
-
KEY
The path to a PEM formatted file that contains the private key for the configuredCERTIFICATE.- See Also:
- Constant Field Values
-
KEY_SECURE_PASSPHRASE
The password to read the configuredKEY, as a secure setting. This (or thelegacy fallback) is required if the key file is encrypted.- See Also:
- Constant Field Values
-
KEY_LEGACY_PASSPHRASE
The password to read the configuredKEY, as a non-secure setting. The use of this settingis deprecated.- See Also:
- Constant Field Values
-
-
Method Details
-
getStringKeys
The list of keys that are used to load a non-secure, non-list setting -
getListKeys
The list of keys that are used to load a non-secure, list setting -
getSecureStringKeys
The list of keys that are used to load a secure setting (such as a password) that would typically be stored in the elasticsearch keystore. -
isDeprecated
- Returns:
trueif the provided key is a deprecated setting
-