blpapi.TlsOptions
- class blpapi.TlsOptions(handle)
SSL configuration options
TlsOptions
instances maintain client credentials and trust material used by a session to establish secure mutually authenticated connections to endpoints.The client credentials comprise an encrypted private key with a client certificate. The trust material comprises one or more certificates.
TlsOptions
objects are created usingcreateFromFiles()
orcreateFromBlobs()
accepting the DER encoded client credentials in PKCS#12 format and the DER encoded trusted material in PKCS#7 format.- static createFromBlobs(clientCredentials, clientCredentialsPassword, trustedCertificates)
- Parameters
Creates a
TlsOptions
using a DER encoded client credentials in PKCS#12 format and DER encoded trust material in PKCS#7 format from the given raw data.- Return type
- static createFromFiles(clientCredentialsFilename, clientCredentialsPassword, trustedCertificatesFilename)
- Parameters
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.- Return type
- setCrlFetchTimeoutMs(timeoutMs)
- Parameters
timeoutMs (
int
) – Timeout threshold in milliseconds
Set the CRL fetch timeout to the specified
timeoutMs
. The default is20,000
milliseconds. The TLS handshake timeout will be set to the default if the specifiedtimeoutMs
is not positive.- Return type
- setTlsHandshakeTimeoutMs(timeoutMs)
- Parameters
timeoutMs (
int
) – Timeout threshold in milliseconds
Set the TLS handshake timeout to the specified
timeoutMs
. The default is10,000
milliseconds. The TLS handshake timeout will be set to the default if the specifiedtimeoutMs
is not positive.- Return type