Package org.elasticsearch.common.ssl
Class SslConfigurationKeys
- java.lang.Object
-
- org.elasticsearch.common.ssl.SslConfigurationKeys
-
public class SslConfigurationKeys extends java.lang.ObjectUtility class for handling the standard setting keys for use in SSL configuration.- See Also:
SslConfiguration,SslConfigurationLoader
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCERTIFICATEThe path to a PEM formatted file that contains the certificate to be used as part of key managementstatic java.lang.StringCERTIFICATE_AUTHORITIESA list of paths to PEM formatted certificates that should be trusted as CAsstatic java.lang.StringCIPHERSThe SSL/TLS cipher suites that should be usedstatic java.lang.StringCLIENT_AUTHWhen operating as a server, whether to request/require client certificatesstatic java.lang.StringKEYThe path to a PEM formatted file that contains the private key for the configuredCERTIFICATE.static java.lang.StringKEY_LEGACY_PASSPHRASEThe password to read the configuredKEY, as a non-secure setting.static java.lang.StringKEY_SECURE_PASSPHRASEThe password to read the configuredKEY, as a secure setting.static java.lang.StringKEYSTORE_ALGORITHMThekey management algorithmto use when connstructing a Key manager from akeystore.static java.lang.StringKEYSTORE_LEGACY_KEY_PASSWORDThe password for the key within theconfigured keystore, as a non-secure setting.static java.lang.StringKEYSTORE_LEGACY_PASSWORDThe password for the file configured inKEYSTORE_PATH, as a non-secure setting.static java.lang.StringKEYSTORE_PATHThe path to a KeyStore file (in a format supported by this JRE) that should be used for key managementstatic java.lang.StringKEYSTORE_SECURE_KEY_PASSWORDThe password for the key within theconfigured keystore, as a secure setting.static java.lang.StringKEYSTORE_SECURE_PASSWORDThe password for the file configured inKEYSTORE_PATH, as a secure setting.static java.lang.StringKEYSTORE_TYPEThekeystore typefor the file configured inKEYSTORE_PATH.static java.lang.StringPROTOCOLSThe SSL/TLS protocols (i.e.static java.lang.StringTRUSTSTORE_ALGORITHMThetrust management algorithmto use when configuring trust with atruststore.static java.lang.StringTRUSTSTORE_LEGACY_PASSWORDThe password for the file configured inTRUSTSTORE_PATH, as a non-secure setting.static java.lang.StringTRUSTSTORE_PATHThe path to a KeyStore file (in a format supported by this JRE) that should be used as a trust-storestatic java.lang.StringTRUSTSTORE_SECURE_PASSWORDThe password for the file configured inTRUSTSTORE_PATH, as a secure setting.static java.lang.StringTRUSTSTORE_TYPEThekeystore typefor the file configured inTRUSTSTORE_PATH.static java.lang.StringVERIFICATION_MODEWhether certificate and/or hostname verification should be used
-
Method Summary
Modifier and Type Method Description static java.util.List<java.lang.String>getListKeys()The list of keys that are used to load a non-secure, list settingstatic java.util.List<java.lang.String>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.static java.util.List<java.lang.String>getStringKeys()The list of keys that are used to load a non-secure, non-list settingstatic booleanisDeprecated(java.lang.String key)
-
-
-
Field Detail
-
PROTOCOLS
public static final java.lang.String PROTOCOLS
The SSL/TLS protocols (i.e. versions) that should be used- See Also:
- Constant Field Values
-
CIPHERS
public static final java.lang.String CIPHERS
The SSL/TLS cipher suites that should be used- See Also:
- Constant Field Values
-
VERIFICATION_MODE
public static final java.lang.String VERIFICATION_MODE
Whether certificate and/or hostname verification should be used- See Also:
- Constant Field Values
-
CLIENT_AUTH
public static final java.lang.String CLIENT_AUTH
When operating as a server, whether to request/require client certificates- See Also:
- Constant Field Values
-
CERTIFICATE_AUTHORITIES
public static final java.lang.String CERTIFICATE_AUTHORITIES
A list of paths to PEM formatted certificates that should be trusted as CAs- See Also:
- Constant Field Values
-
TRUSTSTORE_PATH
public static final java.lang.String 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
public static final java.lang.String TRUSTSTORE_SECURE_PASSWORD
The password for the file configured inTRUSTSTORE_PATH, as a secure setting.- See Also:
- Constant Field Values
-
TRUSTSTORE_LEGACY_PASSWORD
public static final java.lang.String 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
public static final java.lang.String TRUSTSTORE_TYPE
Thekeystore typefor the file configured inTRUSTSTORE_PATH.- See Also:
- Constant Field Values
-
TRUSTSTORE_ALGORITHM
public static final java.lang.String TRUSTSTORE_ALGORITHM
Thetrust management algorithmto use when configuring trust with atruststore.- See Also:
- Constant Field Values
-
KEYSTORE_PATH
public static final java.lang.String 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
public static final java.lang.String KEYSTORE_SECURE_PASSWORD
The password for the file configured inKEYSTORE_PATH, as a secure setting.- See Also:
- Constant Field Values
-
KEYSTORE_LEGACY_PASSWORD
public static final java.lang.String 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
public static final java.lang.String 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
public static final java.lang.String 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
public static final java.lang.String KEYSTORE_TYPE
Thekeystore typefor the file configured inKEYSTORE_PATH.- See Also:
- Constant Field Values
-
KEYSTORE_ALGORITHM
public static final java.lang.String KEYSTORE_ALGORITHM
Thekey management algorithmto use when connstructing a Key manager from akeystore.- See Also:
- Constant Field Values
-
CERTIFICATE
public static final java.lang.String 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
public static final java.lang.String KEY
The path to a PEM formatted file that contains the private key for the configuredCERTIFICATE.- See Also:
- Constant Field Values
-
KEY_SECURE_PASSPHRASE
public static final java.lang.String 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
public static final java.lang.String 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 Detail
-
getStringKeys
public static java.util.List<java.lang.String> getStringKeys()
The list of keys that are used to load a non-secure, non-list setting
-
getListKeys
public static java.util.List<java.lang.String> getListKeys()
The list of keys that are used to load a non-secure, list setting
-
getSecureStringKeys
public static java.util.List<java.lang.String> 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
public static boolean isDeprecated(java.lang.String key)
- Returns:
trueif the provided key is a deprecated setting
-
-