ICoreWebView2ClientCertificate

Trait ICoreWebView2ClientCertificate 

Source
pub trait ICoreWebView2ClientCertificate: IUnknown {
    // Required methods
    unsafe fn get_subject(&self, value: *mut LPWSTR) -> HRESULT;
    unsafe fn get_issuer(&self, value: *mut LPWSTR) -> HRESULT;
    unsafe fn get_valid_from(&self, value: *mut f64) -> HRESULT;
    unsafe fn get_valid_to(&self, value: *mut f64) -> HRESULT;
    unsafe fn get_der_encoded_serial_number(
        &self,
        value: *mut LPWSTR,
    ) -> HRESULT;
    unsafe fn get_display_name(&self, value: *mut LPWSTR) -> HRESULT;
    unsafe fn to_pem_encoding(&self, pem_encoded_data: *mut LPWSTR) -> HRESULT;
    unsafe fn get_pem_encoded_issuer_certificate_chain(
        &self,
        value: *mut *mut *mut ICoreWebView2StringCollectionVTable,
    ) -> HRESULT;
    unsafe fn get_kind(&self, value: *mut ClientCertificateKind) -> HRESULT;
}
Expand description

Provides access to the certificate metadata

Required Methods§

Source

unsafe fn get_subject(&self, value: *mut LPWSTR) -> HRESULT

Subject of the certificate.

Source

unsafe fn get_issuer(&self, value: *mut LPWSTR) -> HRESULT

Name of the certificate authority that issued the certificate.

Source

unsafe fn get_valid_from(&self, value: *mut f64) -> HRESULT

The valid start date and time for the certificate as the number of seconds since the UNIX epoch.

Source

unsafe fn get_valid_to(&self, value: *mut f64) -> HRESULT

The valid expiration date and time for the certificate as the number of seconds since the UNIX epoch.

Source

unsafe fn get_der_encoded_serial_number(&self, value: *mut LPWSTR) -> HRESULT

DER encoded serial number of the certificate. Read more about DER at [RFC 7468 DER] (https://tools.ietf.org/html/rfc7468#appendix-B).

Source

unsafe fn get_display_name(&self, value: *mut LPWSTR) -> HRESULT

Display name for a certificate.

Source

unsafe fn to_pem_encoding(&self, pem_encoded_data: *mut LPWSTR) -> HRESULT

PEM encoded data for the certificate. Returns Base64 encoding of DER encoded certificate. Read more about PEM at [RFC 1421 Privacy Enhanced Mail] (https://tools.ietf.org/html/rfc1421).

Source

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

Collection of PEM encoded client certificate issuer chain. In this collection first element is the current certificate followed by intermediate1, intermediate2…intermediateN-1. Root certificate is the last element in collection.

Source

unsafe fn get_kind(&self, value: *mut ClientCertificateKind) -> HRESULT

Kind of a certificate (eg., smart card, pin, other).

Trait Implementations§

Source§

impl ComInterface for dyn ICoreWebView2ClientCertificate

Source§

const IID: IID = IID_ICORE_WEB_VIEW2_CLIENT_CERTIFICATE

The associated id for this interface
Source§

type VTable = ICoreWebView2ClientCertificateVTable

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: ICoreWebView2ClientCertificate> ProductionComInterface<C> for dyn ICoreWebView2ClientCertificate

Source§

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

Get the vtable for a particular COM interface

Implementations on Foreign Types§

Source§

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

Source§

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

Implementors§