pub struct PeerCertificates {
chain: Vec<CertificateDer<'static>>,
}Expand description
Empty when no client cert was presented.
Fields§
§chain: Vec<CertificateDer<'static>>DER, leaf first.
Implementations§
Source§impl PeerCertificates
impl PeerCertificates
pub fn new(chain: Vec<CertificateDer<'static>>) -> Self
pub fn empty() -> Self
pub fn is_present(&self) -> bool
pub fn leaf(&self) -> Option<&CertificateDer<'static>>
pub fn leaf_cn(&self) -> Option<String>
Sourcepub fn leaf_not_before(&self) -> Option<DateTime<Utc>>
pub fn leaf_not_before(&self) -> Option<DateTime<Utc>>
LOADBEARING: revocations are “notBefore < X is bad” - re-enrolling (notBefore > X) re-grants access; don’t change to issuance time.
Trait Implementations§
Source§impl Clone for PeerCertificates
impl Clone for PeerCertificates
Source§fn clone(&self) -> PeerCertificates
fn clone(&self) -> PeerCertificates
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 moreSource§impl Debug for PeerCertificates
impl Debug for PeerCertificates
Source§impl Default for PeerCertificates
impl Default for PeerCertificates
Source§fn default() -> PeerCertificates
fn default() -> PeerCertificates
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PeerCertificates
impl RefUnwindSafe for PeerCertificates
impl Send for PeerCertificates
impl Sync for PeerCertificates
impl Unpin for PeerCertificates
impl UnwindSafe for PeerCertificates
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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