TlsOptionsCreateFromFiles Method |
Read the specified files to obtain client credentials and trust
material that a
Session created with session
options with property
TlsOptions
set to the return value of this function will use to establish
secure connections.
Namespace:
Bloomberglp.Blpapi
Assembly:
Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.24.2.1
Syntax public static TlsOptions CreateFromFiles(
string clientCredentialsFileName,
SecureString clientCredentialsPassword,
string trustedCertificatesFileName
)
Public Shared Function CreateFromFiles (
clientCredentialsFileName As String,
clientCredentialsPassword As SecureString,
trustedCertificatesFileName As String
) As TlsOptions
public:
static TlsOptions^ CreateFromFiles(
String^ clientCredentialsFileName,
SecureString^ clientCredentialsPassword,
String^ trustedCertificatesFileName
)
static member CreateFromFiles :
clientCredentialsFileName : string *
clientCredentialsPassword : SecureString *
trustedCertificatesFileName : string -> TlsOptions
Parameters
- clientCredentialsFileName
- Type: SystemString
The name of a password-protected, DER encoded PKCS12 file
containing the BLPAPI client certificate and private key. - clientCredentialsPassword
- Type: System.SecuritySecureString
The password required to access the X.509 certificate data
contained in
clientCredentialsFileName - trustedCertificatesFileName
- Type: SystemString
The name of a DER encoded PKCS7 file with empty password containing
Bloomberg-provided trusted certificates.
Return Value
Type:
TlsOptions
A new
TlsOptions object.
See Also