Struct tor_cert::UncheckedCert
source · pub struct UncheckedCert { /* private fields */ }Expand description
A certificate that has been parsed, but whose signature and timeliness have not been checked.
Implementations§
source§impl UncheckedCert
impl UncheckedCert
sourcepub fn dangerously_split(
self
) -> Result<(SigCheckedCert, ValidatableEd25519Signature), CertError>
pub fn dangerously_split( self ) -> Result<(SigCheckedCert, ValidatableEd25519Signature), CertError>
Split this unchecked cert into a component that assumes it has been checked, and a signature to validate.
sourcepub fn peek_subject_key(&self) -> &CertifiedKey
pub fn peek_subject_key(&self) -> &CertifiedKey
Return subject key of the underlying cert.
sourcepub fn peek_signing_key(&self) -> &Ed25519Identity
pub fn peek_signing_key(&self) -> &Ed25519Identity
Return signing key of the underlying cert.
Trait Implementations§
source§impl Clone for UncheckedCert
impl Clone for UncheckedCert
source§fn clone(&self) -> UncheckedCert
fn clone(&self) -> UncheckedCert
Returns a copy 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 UncheckedCert
impl Debug for UncheckedCert
source§impl SelfSigned<SigCheckedCert> for UncheckedCert
impl SelfSigned<SigCheckedCert> for UncheckedCert
source§fn dangerously_assume_wellsigned(self) -> SigCheckedCert
fn dangerously_assume_wellsigned(self) -> SigCheckedCert
Return the underlying object without checking its signature.
source§fn check_signature(self) -> Result<T, Self::Error>
fn check_signature(self) -> Result<T, Self::Error>
Unwrap this object if the signature is valid