pub trait TlsDatabaseExt: 'static {
Show 13 methods // Required methods fn create_certificate_handle( &self, certificate: &impl IsA<TlsCertificate> ) -> Option<GString>; fn lookup_certificate_for_handle( &self, handle: &str, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseLookupFlags, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<Option<TlsCertificate>, Error>; fn lookup_certificate_for_handle_async<P: FnOnce(Result<TlsCertificate, Error>) + 'static>( &self, handle: &str, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseLookupFlags, cancellable: Option<&impl IsA<Cancellable>>, callback: P ); fn lookup_certificate_for_handle_future( &self, handle: &str, interaction: Option<&impl IsA<TlsInteraction> + Clone + 'static>, flags: TlsDatabaseLookupFlags ) -> Pin<Box_<dyn Future<Output = Result<TlsCertificate, Error>> + 'static>>; fn lookup_certificate_issuer( &self, certificate: &impl IsA<TlsCertificate>, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseLookupFlags, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<TlsCertificate, Error>; fn lookup_certificate_issuer_async<P: FnOnce(Result<TlsCertificate, Error>) + 'static>( &self, certificate: &impl IsA<TlsCertificate>, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseLookupFlags, cancellable: Option<&impl IsA<Cancellable>>, callback: P ); fn lookup_certificate_issuer_future( &self, certificate: &impl IsA<TlsCertificate> + Clone + 'static, interaction: Option<&impl IsA<TlsInteraction> + Clone + 'static>, flags: TlsDatabaseLookupFlags ) -> Pin<Box_<dyn Future<Output = Result<TlsCertificate, Error>> + 'static>>; fn lookup_certificates_issued_by( &self, issuer_raw_dn: &ByteArray, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseLookupFlags, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<Vec<TlsCertificate>, Error>; fn lookup_certificates_issued_by_async<P: FnOnce(Result<Vec<TlsCertificate>, Error>) + 'static>( &self, issuer_raw_dn: &ByteArray, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseLookupFlags, cancellable: Option<&impl IsA<Cancellable>>, callback: P ); fn lookup_certificates_issued_by_future( &self, issuer_raw_dn: &ByteArray, interaction: Option<&impl IsA<TlsInteraction> + Clone + 'static>, flags: TlsDatabaseLookupFlags ) -> Pin<Box_<dyn Future<Output = Result<Vec<TlsCertificate>, Error>> + 'static>>; fn verify_chain( &self, chain: &impl IsA<TlsCertificate>, purpose: &str, identity: Option<&impl IsA<SocketConnectable>>, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseVerifyFlags, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<TlsCertificateFlags, Error>; fn verify_chain_async<P: FnOnce(Result<TlsCertificateFlags, Error>) + 'static>( &self, chain: &impl IsA<TlsCertificate>, purpose: &str, identity: Option<&impl IsA<SocketConnectable>>, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseVerifyFlags, cancellable: Option<&impl IsA<Cancellable>>, callback: P ); fn verify_chain_future( &self, chain: &impl IsA<TlsCertificate> + Clone + 'static, purpose: &str, identity: Option<&impl IsA<SocketConnectable> + Clone + 'static>, interaction: Option<&impl IsA<TlsInteraction> + Clone + 'static>, flags: TlsDatabaseVerifyFlags ) -> Pin<Box_<dyn Future<Output = Result<TlsCertificateFlags, Error>> + 'static>>;
}

Required Methods§

source

fn create_certificate_handle( &self, certificate: &impl IsA<TlsCertificate> ) -> Option<GString>

source

fn lookup_certificate_for_handle( &self, handle: &str, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseLookupFlags, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<Option<TlsCertificate>, Error>

source

fn lookup_certificate_for_handle_async<P: FnOnce(Result<TlsCertificate, Error>) + 'static>( &self, handle: &str, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseLookupFlags, cancellable: Option<&impl IsA<Cancellable>>, callback: P )

source

fn lookup_certificate_for_handle_future( &self, handle: &str, interaction: Option<&impl IsA<TlsInteraction> + Clone + 'static>, flags: TlsDatabaseLookupFlags ) -> Pin<Box_<dyn Future<Output = Result<TlsCertificate, Error>> + 'static>>

source

fn lookup_certificate_issuer( &self, certificate: &impl IsA<TlsCertificate>, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseLookupFlags, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<TlsCertificate, Error>

source

fn lookup_certificate_issuer_async<P: FnOnce(Result<TlsCertificate, Error>) + 'static>( &self, certificate: &impl IsA<TlsCertificate>, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseLookupFlags, cancellable: Option<&impl IsA<Cancellable>>, callback: P )

source

fn lookup_certificate_issuer_future( &self, certificate: &impl IsA<TlsCertificate> + Clone + 'static, interaction: Option<&impl IsA<TlsInteraction> + Clone + 'static>, flags: TlsDatabaseLookupFlags ) -> Pin<Box_<dyn Future<Output = Result<TlsCertificate, Error>> + 'static>>

source

fn lookup_certificates_issued_by( &self, issuer_raw_dn: &ByteArray, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseLookupFlags, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<Vec<TlsCertificate>, Error>

source

fn lookup_certificates_issued_by_async<P: FnOnce(Result<Vec<TlsCertificate>, Error>) + 'static>( &self, issuer_raw_dn: &ByteArray, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseLookupFlags, cancellable: Option<&impl IsA<Cancellable>>, callback: P )

source

fn lookup_certificates_issued_by_future( &self, issuer_raw_dn: &ByteArray, interaction: Option<&impl IsA<TlsInteraction> + Clone + 'static>, flags: TlsDatabaseLookupFlags ) -> Pin<Box_<dyn Future<Output = Result<Vec<TlsCertificate>, Error>> + 'static>>

source

fn verify_chain( &self, chain: &impl IsA<TlsCertificate>, purpose: &str, identity: Option<&impl IsA<SocketConnectable>>, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseVerifyFlags, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<TlsCertificateFlags, Error>

source

fn verify_chain_async<P: FnOnce(Result<TlsCertificateFlags, Error>) + 'static>( &self, chain: &impl IsA<TlsCertificate>, purpose: &str, identity: Option<&impl IsA<SocketConnectable>>, interaction: Option<&impl IsA<TlsInteraction>>, flags: TlsDatabaseVerifyFlags, cancellable: Option<&impl IsA<Cancellable>>, callback: P )

source

fn verify_chain_future( &self, chain: &impl IsA<TlsCertificate> + Clone + 'static, purpose: &str, identity: Option<&impl IsA<SocketConnectable> + Clone + 'static>, interaction: Option<&impl IsA<TlsInteraction> + Clone + 'static>, flags: TlsDatabaseVerifyFlags ) -> Pin<Box_<dyn Future<Output = Result<TlsCertificateFlags, Error>> + 'static>>

Implementors§