Interface KeyStoreConfig
- All Superinterfaces:
- Config
KeyStore configuration for a connector.
 
Values can not be changed once the server has started.
- Since:
- 4.4
- 
Method SummaryModifier and TypeMethodDescriptiongetFile()Gets the file name.Gets the password.booleanIs keyStore mandatory?voidSets the file path of the KeyStore.voidsetMandatory(boolean mandatory) Sets if keyStore is mandatory.voidsetPassword(String password) Sets the keyStore password.
- 
Method Details- 
setFileSets 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
 
- 
getFileString getFile()Gets the file name.- Returns:
- file name or null if no keyStore specified
 
- 
setPasswordSets the keyStore password.This must be set of a KeyStore is specified. - Parameters:
- password- keyStore password
- Throws:
- ConfigException- if unable to set the property
 
- 
getPasswordString getPassword()Gets the password.- Returns:
- keyStore password or null if not set.
 
- 
setMandatorySets 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
 
- 
isMandatoryboolean isMandatory()Is keyStore mandatory?- Returns:
- true if mandatory.
 
 
-