Interface KeyStoreConfig
- All Superinterfaces:
Config
KeyStore configuration for a connector.
Values can not be changed once the server has started.
- Since:
- 4.4
-
Method Summary
Modifier and TypeMethodDescriptiongetFile()
Gets the file name.Gets the password.boolean
Is keyStore mandatory?void
Sets the file path of the KeyStore.void
setMandatory
(boolean mandatory) Sets if keyStore is mandatory.void
setPassword
(String password) Sets the keyStore password.
-
Method Details
-
setFile
Sets the file path of the KeyStore.If this is not set then no KeyStore is used and so the connector would not be able to accept SSL connections.
- Parameters:
keyStoreFile
- the file- Throws:
ConfigException
- if unable to set the property
-
getFile
String getFile()Gets the file name.- Returns:
- file name or null if no keyStore specified
-
setPassword
Sets the keyStore password.This must be set of a KeyStore is specified.
- Parameters:
password
- keyStore password- Throws:
ConfigException
- if unable to set the property
-
getPassword
String getPassword()Gets the password.- Returns:
- keyStore password or null if not set.
-
setMandatory
Sets if keyStore is mandatory.If true, all connections must use this KeyStore (i.e. SSL connection is mandatory).
By default this is false meaning that (assuming KeyStore file is set) the the connector could accept either SSL or non SSL connections.
- Parameters:
mandatory
- true if SSL is mandatory- Throws:
ConfigException
- if unable to set the property
-
isMandatory
boolean isMandatory()Is keyStore mandatory?- Returns:
- true if mandatory.
-