pub struct PeerLeaf<'a> { /* private fields */ }Expand description
The end-entity certificate after crypto-profile’s own checks have passed.
Implementations§
Source§impl<'a> PeerLeaf<'a>
impl<'a> PeerLeaf<'a>
Sourcepub fn der(&self) -> &CertificateDer<'a>
pub fn der(&self) -> &CertificateDer<'a>
The certificate as received.
Sourcepub fn uri_names(&self) -> Result<Vec<&'a str>, Error>
pub fn uri_names(&self) -> Result<Vec<&'a str>, Error>
The subjectAltName URIs, in certificate order, as rustls-webpki parses them.
Refuses with CertificateError::BadEncoding when the subjectAltName carries an entry
rustls-webpki cannot decode (rustls-webpki stops reading there), when the crate’s count of
URI entries differs from rustls-webpki’s list (rustls-webpki drops a URI that is not
UTF-8), or when the extension cannot be read.
Auto Trait Implementations§
impl<'a> Forget for PeerLeaf<'a>
impl<'a> Freeze for PeerLeaf<'a>
impl<'a> Move for PeerLeaf<'a>
impl<'a> RefUnwindSafe for PeerLeaf<'a>
impl<'a> Send for PeerLeaf<'a>
impl<'a> Sync for PeerLeaf<'a>
impl<'a> Unpin for PeerLeaf<'a>
impl<'a> UnsafeUnpin for PeerLeaf<'a>
impl<'a> UnwindSafe for PeerLeaf<'a>
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