Trait sourceview5::prelude::TlsDatabaseExt
source · pub trait TlsDatabaseExt: IsA<TlsDatabase> + Sealed + 'static {
Show 13 methods
// Provided 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>(
&self,
handle: &str,
interaction: Option<&impl IsA<TlsInteraction>>,
flags: TlsDatabaseLookupFlags,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
where P: FnOnce(Result<TlsCertificate, Error>) + 'static { ... }
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>>>> { ... }
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>(
&self,
certificate: &impl IsA<TlsCertificate>,
interaction: Option<&impl IsA<TlsInteraction>>,
flags: TlsDatabaseLookupFlags,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
where P: FnOnce(Result<TlsCertificate, Error>) + 'static { ... }
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>>>> { ... }
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>(
&self,
issuer_raw_dn: &ByteArray,
interaction: Option<&impl IsA<TlsInteraction>>,
flags: TlsDatabaseLookupFlags,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
where P: FnOnce(Result<Vec<TlsCertificate>, Error>) + 'static { ... }
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>>>> { ... }
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>(
&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,
)
where P: FnOnce(Result<TlsCertificateFlags, Error>) + 'static { ... }
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>>>> { ... }
}
Provided 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>( &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>>>>
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>( &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>>>>
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>( &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>>>>
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>( &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>>>>
Object Safety§
This trait is not object safe.