Trait gio::prelude::TlsDatabaseExt
source · [−]pub trait TlsDatabaseExt: 'static {
Show 13 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
sourcefn create_certificate_handle(
fn create_certificate_handle(
&self,
certificate: &impl IsA<TlsCertificate>
) -> Option<GString>
sourcefn lookup_certificate_for_handle(
fn lookup_certificate_for_handle(
&self,
handle: &str,
interaction: Option<&impl IsA<TlsInteraction>>,
flags: TlsDatabaseLookupFlags,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<Option<TlsCertificate>, Error>
sourcefn lookup_certificate_for_handle_async<P: FnOnce(Result<TlsCertificate, Error>) + 'static>(
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
)
sourcefn lookup_certificate_for_handle_future(
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>>
sourcefn lookup_certificate_issuer(
fn lookup_certificate_issuer(
&self,
certificate: &impl IsA<TlsCertificate>,
interaction: Option<&impl IsA<TlsInteraction>>,
flags: TlsDatabaseLookupFlags,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<TlsCertificate, Error>
sourcefn lookup_certificate_issuer_async<P: FnOnce(Result<TlsCertificate, Error>) + 'static>(
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
)
sourcefn lookup_certificate_issuer_future(
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>>
sourcefn lookup_certificates_issued_by(
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>
sourcefn lookup_certificates_issued_by_async<P: FnOnce(Result<Vec<TlsCertificate>, Error>) + 'static>(
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
)
sourcefn lookup_certificates_issued_by_future(
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>>
sourcefn verify_chain(
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>
sourcefn verify_chain_async<P: FnOnce(Result<TlsCertificateFlags, Error>) + 'static>(
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
)
sourcefn verify_chain_future(