#include <blpapi_tlsoptions.h>
|
static TlsOptions | createFromFiles (const char *clientCredentialsFileName, const char *clientCredentialsPassword, const char *trustedCertificatesFileName) |
|
static TlsOptions | createFromBlobs (const char *clientCredentialsRawData, int clientCredentialsRawDataLength, const char *clientCredentialsPassword, const char *trustedCertificatesRawData, int trustedCertificatesRawDataLength) |
|
Contains the user specified TLS options.
To enable SSL connections, create a TlsOptions object using the methods TlsOptions::createFromBlobs
and TlsOptions::createFromFiles
.
See Component blpapi_tlsoptions
◆ TlsOptions() [1/2]
Create a TlsOptions with all TLS options with no certificate information.
◆ TlsOptions() [2/2]
◆ ~TlsOptions()
◆ createFromBlobs()
TlsOptions createFromBlobs |
( |
const char * |
clientCredentialsRawData, |
|
|
int |
clientCredentialsRawDataLength, |
|
|
const char * |
clientCredentialsPassword, |
|
|
const char * |
trustedCertificatesRawData, |
|
|
int |
trustedCertificatesRawDataLength |
|
) |
| |
|
static |
Create a TlsOptions using DER encoded client credentials in PKCS#12 format and DER encoded trust material in PKCS#7 format from the specified raw data.
◆ createFromFiles()
TlsOptions createFromFiles |
( |
const char * |
clientCredentialsFileName, |
|
|
const char * |
clientCredentialsPassword, |
|
|
const char * |
trustedCertificatesFileName |
|
) |
| |
|
static |
Creates a TlsOptions using a DER encoded client credentials in PKCS#12 format and DER encoded trust material in PKCS#7 format from the specified files.
◆ handle()
Return the handle of the current TLS options.
◆ operator=()
Assign to this object the value of the specified rhs
object.
◆ setCrlFetchTimeoutMs()
void setCrlFetchTimeoutMs |
( |
int |
crlFetchTimeoutMs | ) |
|
Set the CRL fetch timeout to the specified crlFetchTimeoutMs
. The default is 20,000 milliseconds. The TLS handshake timeout will be set to the default if the specified crlFetchTimeoutMs
is not positive.
◆ setTlsHandshakeTimeoutMs()
void setTlsHandshakeTimeoutMs |
( |
int |
tlsHandshakeTimeoutMs | ) |
|
Set the TLS handshake timeout to the specified tlsHandshakeTimeoutMs
. The default is 10,000 milliseconds. The TLS handshake timeout will be set to the default if the specified tlsHandshakeTimeoutMs
is not positive.
The documentation for this class was generated from the following file: