pub trait ICoreWebView2ClientCertificateRequestedEventArgs: IUnknown {
// Required methods
unsafe fn get_host(&self, value: *mut LPWSTR) -> HRESULT;
unsafe fn get_port(&self, value: *mut i32) -> HRESULT;
unsafe fn get_is_proxy(&self, value: *mut BOOL) -> HRESULT;
unsafe fn get_allowed_certificate_authorities(
&self,
value: *mut *mut *mut ICoreWebView2StringCollectionVTable,
) -> HRESULT;
unsafe fn get_mutually_trusted_certificates(
&self,
value: *mut *mut *mut ICoreWebView2ClientCertificateCollectionVTable,
) -> HRESULT;
unsafe fn get_selected_certificate(
&self,
value: *mut *mut *mut ICoreWebView2ClientCertificateVTable,
) -> HRESULT;
unsafe fn put_selected_certificate(
&self,
value: *mut *mut ICoreWebView2ClientCertificateVTable,
) -> HRESULT;
unsafe fn get_cancel(&self, value: *mut BOOL) -> HRESULT;
unsafe fn put_cancel(&self, value: BOOL) -> HRESULT;
unsafe fn get_handled(&self, value: *mut BOOL) -> HRESULT;
unsafe fn put_handled(&self, value: BOOL) -> HRESULT;
unsafe fn get_deferral(
&self,
deferral: *mut *mut *mut ICoreWebView2DeferralVTable,
) -> HRESULT;
}Expand description
Event args for the ClientCertificateRequested event.
Required Methods§
Sourceunsafe fn get_host(&self, value: *mut LPWSTR) -> HRESULT
unsafe fn get_host(&self, value: *mut LPWSTR) -> HRESULT
Host name of the server that requested client certificate authentication. Normalization rules applied to the hostname are:
- Convert to lowercase characters for ascii characters.
- Punycode is used for representing non ascii characters.
- Strip square brackets for IPV6 address.
Sourceunsafe fn get_port(&self, value: *mut i32) -> HRESULT
unsafe fn get_port(&self, value: *mut i32) -> HRESULT
Port of the server that requested client certificate authentication.
Sourceunsafe fn get_is_proxy(&self, value: *mut BOOL) -> HRESULT
unsafe fn get_is_proxy(&self, value: *mut BOOL) -> HRESULT
Returns true if the server that issued this request is an http proxy. Returns false if the server is the origin server.
Returns the ICoreWebView2StringCollection.
The collection contains distinguished names of certificate authorities
allowed by the server.
Sourceunsafe fn get_mutually_trusted_certificates(
&self,
value: *mut *mut *mut ICoreWebView2ClientCertificateCollectionVTable,
) -> HRESULT
unsafe fn get_mutually_trusted_certificates( &self, value: *mut *mut *mut ICoreWebView2ClientCertificateCollectionVTable, ) -> HRESULT
Returns the ICoreWebView2ClientCertificateCollection when client
certificate authentication is requested. The collection contains mutually
trusted CA certificates.
Sourceunsafe fn get_selected_certificate(
&self,
value: *mut *mut *mut ICoreWebView2ClientCertificateVTable,
) -> HRESULT
unsafe fn get_selected_certificate( &self, value: *mut *mut *mut ICoreWebView2ClientCertificateVTable, ) -> HRESULT
Returns the selected certificate.
Sourceunsafe fn put_selected_certificate(
&self,
value: *mut *mut ICoreWebView2ClientCertificateVTable,
) -> HRESULT
unsafe fn put_selected_certificate( &self, value: *mut *mut ICoreWebView2ClientCertificateVTable, ) -> HRESULT
Sets the certificate to respond to the server.
Sourceunsafe fn get_cancel(&self, value: *mut BOOL) -> HRESULT
unsafe fn get_cancel(&self, value: *mut BOOL) -> HRESULT
You�may�set�this�flag�to�cancel�the�certificate selection. If canceled,
the request is aborted regardless of the Handled property. By default the
value is FALSE.
Sourceunsafe fn put_cancel(&self, value: BOOL) -> HRESULT
unsafe fn put_cancel(&self, value: BOOL) -> HRESULT
�Sets�the�Cancel�property.
Sourceunsafe fn get_handled(&self, value: *mut BOOL) -> HRESULT
unsafe fn get_handled(&self, value: *mut BOOL) -> HRESULT
You�may�set�this�flag�to�TRUE to respond to the server with or
without a certificate. If this flag is TRUE with a SelectedCertificate
it responds to the server with the selected certificate otherwise respond to the
server without a certificate. By default the value of Handled and Cancel are FALSE
and display default client certificate selection dialog prompt to allow the user to
choose a certificate. The SelectedCertificate is ignored unless Handled is set TRUE.
Sourceunsafe fn put_handled(&self, value: BOOL) -> HRESULT
unsafe fn put_handled(&self, value: BOOL) -> HRESULT
�Sets�the�Handled�property.
Sourceunsafe fn get_deferral(
&self,
deferral: *mut *mut *mut ICoreWebView2DeferralVTable,
) -> HRESULT
unsafe fn get_deferral( &self, deferral: *mut *mut *mut ICoreWebView2DeferralVTable, ) -> HRESULT
Returns an ICoreWebView2Deferral object. Use this operation to
complete the event at a later time.