pub struct CertificateSecurityStateBuilder { /* private fields */ }Available on crate features
Security and experimental only.Implementations§
Source§impl CertificateSecurityStateBuilder
impl CertificateSecurityStateBuilder
Sourcepub fn key_exchange(&mut self, v: String) -> &mut Self
pub fn key_exchange(&mut self, v: String) -> &mut Self
Key Exchange used by the connection, or the empty string if not applicable.
Sourcepub fn key_exchange_group(&mut self, v: String) -> &mut Self
pub fn key_exchange_group(&mut self, v: String) -> &mut Self
(EC)DH group used by the connection, if applicable.
Sourcepub fn mac(&mut self, v: String) -> &mut Self
pub fn mac(&mut self, v: String) -> &mut Self
TLS MAC. Note that AEAD ciphers do not have separate MACs.
Sourcepub fn certificate(&mut self, v: Vec<String>) -> &mut Self
pub fn certificate(&mut self, v: Vec<String>) -> &mut Self
Page certificate.
Sourcepub fn subject_name(&mut self, v: String) -> &mut Self
pub fn subject_name(&mut self, v: String) -> &mut Self
Certificate subject name.
Sourcepub fn valid_from(&mut self, v: TimeSinceEpoch) -> &mut Self
pub fn valid_from(&mut self, v: TimeSinceEpoch) -> &mut Self
Certificate valid from date.
Sourcepub fn valid_to(&mut self, v: TimeSinceEpoch) -> &mut Self
pub fn valid_to(&mut self, v: TimeSinceEpoch) -> &mut Self
Certificate valid to (expiration) date
Sourcepub fn certificate_network_error(&mut self, v: String) -> &mut Self
pub fn certificate_network_error(&mut self, v: String) -> &mut Self
The highest priority network error code, if the certificate has an error.
Sourcepub fn certificate_has_weak_signature(&mut self, v: bool) -> &mut Self
pub fn certificate_has_weak_signature(&mut self, v: bool) -> &mut Self
True if the certificate uses a weak signature aglorithm.
Sourcepub fn certificate_has_sha1_signature(&mut self, v: bool) -> &mut Self
pub fn certificate_has_sha1_signature(&mut self, v: bool) -> &mut Self
True if the certificate has a SHA1 signature in the chain.
Sourcepub fn modern_ssl(&mut self, v: bool) -> &mut Self
pub fn modern_ssl(&mut self, v: bool) -> &mut Self
True if modern SSL
Sourcepub fn obsolete_ssl_protocol(&mut self, v: bool) -> &mut Self
pub fn obsolete_ssl_protocol(&mut self, v: bool) -> &mut Self
True if the connection is using an obsolete SSL protocol.
Sourcepub fn obsolete_ssl_key_exchange(&mut self, v: bool) -> &mut Self
pub fn obsolete_ssl_key_exchange(&mut self, v: bool) -> &mut Self
True if the connection is using an obsolete SSL key exchange.
Sourcepub fn obsolete_ssl_cipher(&mut self, v: bool) -> &mut Self
pub fn obsolete_ssl_cipher(&mut self, v: bool) -> &mut Self
True if the connection is using an obsolete SSL cipher.
Sourcepub fn obsolete_ssl_signature(&mut self, v: bool) -> &mut Self
pub fn obsolete_ssl_signature(&mut self, v: bool) -> &mut Self
True if the connection is using an obsolete SSL signature.
pub fn build(&mut self) -> Result<CertificateSecurityState, &'static str>
Trait Implementations§
Source§impl Clone for CertificateSecurityStateBuilder
impl Clone for CertificateSecurityStateBuilder
Source§fn clone(&self) -> CertificateSecurityStateBuilder
fn clone(&self) -> CertificateSecurityStateBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CertificateSecurityStateBuilder
impl RefUnwindSafe for CertificateSecurityStateBuilder
impl Send for CertificateSecurityStateBuilder
impl Sync for CertificateSecurityStateBuilder
impl Unpin for CertificateSecurityStateBuilder
impl UnwindSafe for CertificateSecurityStateBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more