Trait gio::prelude::TlsCertificateExt
source · pub trait TlsCertificateExt: IsA<TlsCertificate> + Sealed + 'static {
Show 21 methods
// Provided methods
fn dns_names(&self) -> Vec<Bytes> { ... }
fn ip_addresses(&self) -> Vec<InetAddress> { ... }
fn issuer(&self) -> Option<TlsCertificate> { ... }
fn issuer_name(&self) -> Option<GString> { ... }
fn not_valid_after(&self) -> Option<DateTime> { ... }
fn not_valid_before(&self) -> Option<DateTime> { ... }
fn subject_name(&self) -> Option<GString> { ... }
fn is_same(&self, cert_two: &impl IsA<TlsCertificate>) -> bool { ... }
fn verify(
&self,
identity: Option<&impl IsA<SocketConnectable>>,
trusted_ca: Option<&impl IsA<TlsCertificate>>
) -> TlsCertificateFlags { ... }
fn certificate(&self) -> Option<ByteArray> { ... }
fn certificate_pem(&self) -> Option<GString> { ... }
fn pkcs11_uri(&self) -> Option<GString> { ... }
fn private_key(&self) -> Option<ByteArray> { ... }
fn private_key_pem(&self) -> Option<GString> { ... }
fn private_key_pkcs11_uri(&self) -> Option<GString> { ... }
fn connect_dns_names_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_ip_addresses_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_issuer_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_not_valid_after_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_not_valid_before_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_subject_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}
Provided Methods§
fn dns_names(&self) -> Vec<Bytes>
Available on crate feature
v2_70
only.fn ip_addresses(&self) -> Vec<InetAddress>
Available on crate feature
v2_70
only.fn issuer(&self) -> Option<TlsCertificate>
fn issuer_name(&self) -> Option<GString>
Available on crate feature
v2_70
only.fn not_valid_after(&self) -> Option<DateTime>
Available on crate feature
v2_70
only.fn not_valid_before(&self) -> Option<DateTime>
Available on crate feature
v2_70
only.fn subject_name(&self) -> Option<GString>
Available on crate feature
v2_70
only.fn is_same(&self, cert_two: &impl IsA<TlsCertificate>) -> bool
fn verify( &self, identity: Option<&impl IsA<SocketConnectable>>, trusted_ca: Option<&impl IsA<TlsCertificate>> ) -> TlsCertificateFlags
fn certificate(&self) -> Option<ByteArray>
fn certificate_pem(&self) -> Option<GString>
fn pkcs11_uri(&self) -> Option<GString>
Available on crate feature
v2_68
only.fn private_key(&self) -> Option<ByteArray>
fn private_key_pem(&self) -> Option<GString>
fn private_key_pkcs11_uri(&self) -> Option<GString>
Available on crate feature
v2_68
only.fn connect_dns_names_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_70
only.fn connect_ip_addresses_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_70
only.fn connect_issuer_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_70
only.fn connect_not_valid_after_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_70
only.fn connect_not_valid_before_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_70
only.fn connect_subject_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_70
only.Object Safety§
This trait is not object safe.