pub struct Fingerprint { /* private fields */ }Expand description
A Fingerprint is a deterministic, fixed-length SHA-256 hash that
uniquely identifies a single issued Certificate.
The fingerprint is constructed by hashing the (DER encoded) bytes of a
Certificate, a process that is lightly described in RFC 4387 § 2.2 as
a certHash. Unlike the RFC, we use SHA-256 as the hash instead of SHA-1 (a
common modification for newer systems, including new versions of OpenSSL).
A Fingerprint should be used when checking if two certificates are
identical.
Implementations§
Source§impl Fingerprint
impl Fingerprint
Sourcepub fn as_hex_str(&self) -> &str
pub fn as_hex_str(&self) -> &str
Render the Fingerprint as a lowercase hex string delimited by
colons in the style of OpenSSL.
Example: cc:cb:0f:63:f1:63:5e:f1:0e:26:e8:82:f7:7a:6e:f9
This value is lazily rendered and cached for reuse.
Trait Implementations§
Source§impl Clone for Fingerprint
impl Clone for Fingerprint
Source§fn clone(&self) -> Fingerprint
fn clone(&self) -> Fingerprint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Fingerprint
impl Debug for Fingerprint
Source§impl Display for Fingerprint
impl Display for Fingerprint
impl Eq for Fingerprint
Source§impl<'a> From<&'a X509Certificate<'a>> for Fingerprint
impl<'a> From<&'a X509Certificate<'a>> for Fingerprint
Source§fn from(cert: &'a X509Certificate<'a>) -> Self
fn from(cert: &'a X509Certificate<'a>) -> Self
Converts to this type from the input type.
Source§impl Hash for Fingerprint
impl Hash for Fingerprint
Source§impl PartialEq for Fingerprint
impl PartialEq for Fingerprint
Source§fn eq(&self, other: &Fingerprint) -> bool
fn eq(&self, other: &Fingerprint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Fingerprint
Source§impl Valuable for Fingerprint
Render a Fingerprint as an encoded string in structured logging.
impl Valuable for Fingerprint
Render a Fingerprint as an encoded string in structured logging.
Auto Trait Implementations§
impl !Freeze for Fingerprint
impl RefUnwindSafe for Fingerprint
impl Send for Fingerprint
impl Sync for Fingerprint
impl Unpin for Fingerprint
impl UnsafeUnpin for Fingerprint
impl UnwindSafe for Fingerprint
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.