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
sourceimpl 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) -> &PublicKey
pub fn peek_signing_key(&self) -> &PublicKey
Return signing key of the underlying cert.
Trait Implementations
sourceimpl Clone for UncheckedCert
impl Clone for UncheckedCert
sourcefn clone(&self) -> UncheckedCert
fn clone(&self) -> UncheckedCert
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UncheckedCert
impl Debug for UncheckedCert
sourceimpl SelfSigned<SigCheckedCert> for UncheckedCert
impl SelfSigned<SigCheckedCert> for UncheckedCert
sourcefn is_well_signed(&self) -> Result<(), CertError>
fn is_well_signed(&self) -> Result<(), CertError>
Check the signature on this object
sourcefn dangerously_assume_wellsigned(self) -> SigCheckedCert
fn dangerously_assume_wellsigned(self) -> SigCheckedCert
Return the underlying object without checking its signature.
sourcefn check_signature(self) -> Result<T, Self::Error>
fn check_signature(self) -> Result<T, Self::Error>
Unwrap this object if the signature is valid
Auto Trait Implementations
impl RefUnwindSafe for UncheckedCert
impl Send for UncheckedCert
impl Sync for UncheckedCert
impl Unpin for UncheckedCert
impl UnwindSafe for UncheckedCert
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more