blpapi.TlsOptions
- class blpapi.TlsOptions(handle)
SSL configuration options
TlsOptionsinstances 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.
TlsOptionsobjects 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
TlsOptionsusing 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
TlsOptionsusing 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,000milliseconds. The TLS handshake timeout will be set to the default if the specifiedtimeoutMsis 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,000milliseconds. The TLS handshake timeout will be set to the default if the specifiedtimeoutMsis not positive.- Return type: