TROWinInetClientCert

Overview

This class serves as a Delphi wrapper around several WinInet structures and calls to work with client certificates. This class works together with WinInet based client channel TROWinInetHTTPChannel.
Use this class to supply the client certificate to the channel via TROWinInetHTTPChannel.ClientCert property. The default instance is created by the channel instance so as a rule there is no need to create TROWinInetClientCert instances explicitly.

NOTE: This class is for Windows platform only.

Location

 

constructor Create

Creates a new instance.

constructor Create

Assign  override

Copies data from a given source.

procedure Assign(Source: TPersistent)

Parameters:

  • Source: Instance whose properties will be copied

CertFile

Gets or sets the file name and path to the certificate file.

property CertFile: string read write

CertIssuer

Gets or sets the name of the certificate issuer.

property CertIssuer: string read write

CertName

Gets or sets the name of the certificate.

property CertName: string read write

CertSerial

Gets or sets the certificate serial number.

property CertSerial: string read write

KeyFile

Gets or sets the file name and path to the certificate private key file.

property KeyFile: string read write

Options

Gets or sets the certificate configuration and usage options. This property value is affected by changing the values of other properties listed above.

property Options: TROWinInetClientCertOptions read write

SetInternetOption

This method performs a series of WinInet API calls to supply the certificate to the HTTP connection. This method is called by the owning TROWinInetHTTPChannel instance and should never be called by users.

function SetInternetOption(Handle: HINTERNET): Boolean

Parameters:

  • Handle: The handle of HTTP connection to apply the certificate to.

 

CertFile

Gets or sets the file name and path to the certificate file.

property CertFile: string read write

CertIssuer

Gets or sets the name of the certificate issuer.

property CertIssuer: string read write

CertName

Gets or sets the name of the certificate.

property CertName: string read write

CertSerial

Gets or sets the certificate serial number.

property CertSerial: string read write

KeyFile

Gets or sets the file name and path to the certificate private key file.

property KeyFile: string read write

Options

Gets or sets the certificate configuration and usage options. This property value is affected by changing the values of other properties listed above.

property Options: TROWinInetClientCertOptions read write

 

constructor Create

Creates a new instance.

constructor Create

Assign  override

Copies data from a given source.

procedure Assign(Source: TPersistent)

Parameters:

  • Source: Instance whose properties will be copied

SetInternetOption

This method performs a series of WinInet API calls to supply the certificate to the HTTP connection. This method is called by the owning TROWinInetHTTPChannel instance and should never be called by users.

function SetInternetOption(Handle: HINTERNET): Boolean

Parameters:

  • Handle: The handle of HTTP connection to apply the certificate to.