Trait gio::prelude::TlsCertificateExt
source · [−]pub trait TlsCertificateExt: 'static {
Show 21 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;
}
Required Methods
sourcefn ip_addresses(&self) -> Vec<InetAddress>
fn ip_addresses(&self) -> Vec<InetAddress>
Available on crate feature
v2_70
only.source
fn issuer(&self) -> Option<TlsCertificate>
sourcefn issuer_name(&self) -> Option<GString>
fn issuer_name(&self) -> Option<GString>
Available on crate feature
v2_70
only.sourcefn not_valid_after(&self) -> Option<DateTime>
fn not_valid_after(&self) -> Option<DateTime>
Available on crate feature
v2_70
only.sourcefn not_valid_before(&self) -> Option<DateTime>
fn not_valid_before(&self) -> Option<DateTime>
Available on crate feature
v2_70
only.sourcefn subject_name(&self) -> Option<GString>
fn subject_name(&self) -> Option<GString>
Available on crate feature
v2_70
only.source
fn is_same(&self, cert_two: &impl IsA<TlsCertificate>) -> bool
sourcefn verify(
fn verify(
&self,
identity: Option<&impl IsA<SocketConnectable>>,
trusted_ca: Option<&impl IsA<TlsCertificate>>
) -> TlsCertificateFlags
source
fn certificate(&self) -> Option<ByteArray>
source
fn certificate_pem(&self) -> Option<GString>
sourcefn pkcs11_uri(&self) -> Option<GString>
fn pkcs11_uri(&self) -> Option<GString>
Available on crate feature
v2_68
only.source
fn private_key(&self) -> Option<ByteArray>
source
fn private_key_pem(&self) -> Option<GString>
sourcefn private_key_pkcs11_uri(&self) -> Option<GString>
fn private_key_pkcs11_uri(&self) -> Option<GString>
Available on crate feature
v2_68
only.sourcefn connect_dns_names_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_dns_names_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
Available on crate feature
v2_70
only.sourcefn connect_ip_addresses_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_ip_addresses_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
Available on crate feature
v2_70
only.sourcefn connect_issuer_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_issuer_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
Available on crate feature
v2_70
only.sourcefn connect_not_valid_after_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_not_valid_after_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
Available on crate feature
v2_70
only.sourcefn connect_not_valid_before_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_not_valid_before_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
Available on crate feature
v2_70
only.sourcefn connect_subject_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_subject_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
Available on crate feature
v2_70
only.