ICoreWebView2ClientCertificateRequestedEventArgs

Trait ICoreWebView2ClientCertificateRequestedEventArgs 

Source
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§

Source

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.
Source

unsafe fn get_port(&self, value: *mut i32) -> HRESULT

Port of the server that requested client certificate authentication.

Source

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.

Source

unsafe fn get_allowed_certificate_authorities( &self, value: *mut *mut *mut ICoreWebView2StringCollectionVTable, ) -> HRESULT

Returns the ICoreWebView2StringCollection. The collection contains distinguished names of certificate authorities allowed by the server.

Source

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.

Source

unsafe fn get_selected_certificate( &self, value: *mut *mut *mut ICoreWebView2ClientCertificateVTable, ) -> HRESULT

Returns the selected certificate.

Source

unsafe fn put_selected_certificate( &self, value: *mut *mut ICoreWebView2ClientCertificateVTable, ) -> HRESULT

Sets the certificate to respond to the server.

Source

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.

Source

unsafe fn put_cancel(&self, value: BOOL) -> HRESULT

�Sets�the�Cancel�property.

Source

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.

Source

unsafe fn put_handled(&self, value: BOOL) -> HRESULT

�Sets�the�Handled�property.

Source

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.

Trait Implementations§

Source§

impl ComInterface for dyn ICoreWebView2ClientCertificateRequestedEventArgs

Source§

const IID: IID = IID_ICORE_WEB_VIEW2_CLIENT_CERTIFICATE_REQUESTED_EVENT_ARGS

The associated id for this interface
Source§

type VTable = ICoreWebView2ClientCertificateRequestedEventArgsVTable

A COM compatible V-Table
Source§

type Super = dyn IUnknown

The interface that this interface inherits from
Source§

fn is_iid_in_inheritance_chain(riid: &GUID) -> bool

Check whether a given IID is in the inheritance hierarchy of this interface
Source§

impl<C: ICoreWebView2ClientCertificateRequestedEventArgs> ProductionComInterface<C> for dyn ICoreWebView2ClientCertificateRequestedEventArgs

Source§

fn vtable<O: Offset>() -> Self::VTable

Get the vtable for a particular COM interface

Implementations on Foreign Types§

Source§

impl<T: ICoreWebView2ClientCertificateRequestedEventArgs + ComInterface + ?Sized> ICoreWebView2ClientCertificateRequestedEventArgs for ComPtr<T>

Source§

impl<T: ICoreWebView2ClientCertificateRequestedEventArgs + ComInterface + ?Sized> ICoreWebView2ClientCertificateRequestedEventArgs for ComRc<T>

Implementors§