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 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 UncheckedCert
impl Debug for UncheckedCert
impl Eq for UncheckedCert
Source§impl PartialEq for UncheckedCert
impl PartialEq for UncheckedCert
Source§fn eq(&self, other: &UncheckedCert) -> bool
fn eq(&self, other: &UncheckedCert) -> bool
Tests for
self and other values to be equal, and is used by ==.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
impl StructuralPartialEq for UncheckedCert
Source§impl Writeable for UncheckedCert
impl Writeable for UncheckedCert
Source§fn write_onto<B: Writer + ?Sized>(&self, b: &mut B) -> Result<(), EncodeError>
fn write_onto<B: Writer + ?Sized>(&self, b: &mut B) -> Result<(), EncodeError>
Encode this object into the writer
b.Auto Trait Implementations§
impl Freeze for UncheckedCert
impl RefUnwindSafe for UncheckedCert
impl Send for UncheckedCert
impl Sync for UncheckedCert
impl Unpin for UncheckedCert
impl UnsafeUnpin for UncheckedCert
impl UnwindSafe for UncheckedCert
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<W> WriteableOnce for Wwhere
W: Writeable,
impl<W> WriteableOnce for Wwhere
W: Writeable,
Source§fn write_into<B>(self, b: &mut B) -> Result<(), EncodeError>
fn write_into<B>(self, b: &mut B) -> Result<(), EncodeError>
Encode this object into the writer
b, and consume it.