DotNetBrowser  1.14
Public Member Functions | Properties | List of all members
DotNetBrowser.CertificatesDialogParams Class Reference

The OnSelectCertificate event parameters. More...

Public Member Functions

 CertificatesDialogParams (Browser browser, bool isProxy, HostPortPair hostPortPair, List< Certificate > certificates)
 Constructs a new CertificatesDialogEventArgs instance. More...
 

Properties

Browser Browser [get]
 Gets Browser instance that requests SSL client certificate authorization. More...
 
bool IsProxy [get]
 Gets true if the server that issues this request was the HTTPS proxy used in the request. False, if the server was the origin server. More...
 
HostPortPair HostPortPair [get]
 Gets host and port of SSL server that requested SSL client authentication. More...
 
List< CertificateCertificates [get]
 Gets a list of client certificates matching the server criteria. More...
 
Certificate SelectedCertificate [get, set]
 Returns the currently selected certificate for SSL authorization. Initially returns null to indicate that certificate for SSL authorization hasn't been selected yet. More...
 
CloseStatus Status [get, set]
 Gets or sets the dialog close status indicates the way (OK or Cancel button) the dialog was closed CloseStatus. More...
 

Detailed Description

The OnSelectCertificate event parameters.

Constructor & Destructor Documentation

DotNetBrowser.CertificatesDialogParams.CertificatesDialogParams ( Browser  browser,
bool  isProxy,
HostPortPair  hostPortPair,
List< Certificate certificates 
)

Constructs a new CertificatesDialogEventArgs instance.

Parameters
browserthe browser instance that requests SSL client certificate authorization.
isProxyindicates whether the server that issues this request was the HTTPS proxy used in the request.
hostPortPairhost and port of SSL server that requested SSL client authentication.
certificatesa list of client certificates matching the server criteria.

Property Documentation

Browser DotNetBrowser.CertificatesDialogParams.Browser
get

Gets Browser instance that requests SSL client certificate authorization.

List<Certificate> DotNetBrowser.CertificatesDialogParams.Certificates
get

Gets a list of client certificates matching the server criteria.

HostPortPair DotNetBrowser.CertificatesDialogParams.HostPortPair
get

Gets host and port of SSL server that requested SSL client authentication.

bool DotNetBrowser.CertificatesDialogParams.IsProxy
get

Gets true if the server that issues this request was the HTTPS proxy used in the request. False, if the server was the origin server.

Certificate DotNetBrowser.CertificatesDialogParams.SelectedCertificate
getset

Returns the currently selected certificate for SSL authorization. Initially returns null to indicate that certificate for SSL authorization hasn't been selected yet.

Sets the certificate that must be used for SSL client certificate authorization. The certificate can be obtained in two ways:

  1. From the client certificate list.To get a list of client certificates use Certificates property.
  2. From an X509Certificate using the corresponding constructor.

the currently selected certificate for SSL authorization.

Exceptions
ArgumentExceptionwhen certificate is created manually and does not contain the underlying X509Certificate.
CloseStatus DotNetBrowser.CertificatesDialogParams.Status
getset

Gets or sets the dialog close status indicates the way (OK or Cancel button) the dialog was closed CloseStatus.