Contains configuration parameters for client network related behaviour.
More...
#include <SSLConfig.h>
Contains configuration parameters for client network related behaviour.
SSLConfig & hazelcast::client::config::SSLConfig::addVerifyFile |
( |
const std::string & |
filename | ) |
|
This API calls the OpenSSL SSL_CTX_load_verify_locations method underneath while starting the client with this configuration.
The validity of the files are checked only when the client starts. Hence, this call will not do any error checking. Error checking is performed only when the certificates are actually loaded during client start.
- Parameters
-
filename | the name of a file containing certification authority certificates in PEM format. |
const std::string & hazelcast::client::config::SSLConfig::getCipherList |
( |
| ) |
const |
- Returns
- Returns the use configured cipher list string.
SSLProtocol hazelcast::client::config::SSLConfig::getProtocol |
( |
| ) |
const |
- Returns
- The configured SSL protocol
const std::vector< std::string > & hazelcast::client::config::SSLConfig::getVerifyFiles |
( |
| ) |
const |
- Returns
- The list of all configured certificate verify files for the client.
bool hazelcast::client::config::SSLConfig::isEnabled |
( |
| ) |
const |
Returns if this configuration is enabled.
- Returns
- true if enabled, false otherwise
SSLConfig & hazelcast::client::config::SSLConfig::setCipherList |
( |
const std::string & |
ciphers | ) |
|
- Parameters
-
If non of the provided ciphers could be selected the client initialization will fail.
SSLConfig & hazelcast::client::config::SSLConfig::setEnabled |
( |
bool |
enabled | ) |
|
Enables and disables this configuration.
- Parameters
-
enabled | true to enable, false to disable |
SSLConfig & hazelcast::client::config::SSLConfig::setProtocol |
( |
SSLProtocol |
protocol | ) |
|
Sets the ssl protocol to be used for this SSL socket.
- Parameters
-
protocol | One of the supported protocols |
The documentation for this class was generated from the following files:
- hazelcast/include/hazelcast/client/config/SSLConfig.h
- hazelcast/src/hazelcast/client/config/SSLConfig.cpp