Struct tor_cert::SigCheckedCert
source · pub struct SigCheckedCert { /* private fields */ }Expand description
A certificate that has been parsed and signature-checked, but whose timeliness has not been checked.
Trait Implementations§
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
source§impl Timebound<Ed25519Cert> for SigCheckedCert
impl Timebound<Ed25519Cert> for SigCheckedCert
§type Error = TimeValidityError
type Error = TimeValidityError
An error type that’s returned when the object is not timely.
source§fn is_valid_at(&self, t: &SystemTime) -> Result<(), Self::Error>
fn is_valid_at(&self, t: &SystemTime) -> Result<(), Self::Error>
Check whether this object is valid at a given time. Read more
source§fn dangerously_assume_timely(self) -> Ed25519Cert
fn dangerously_assume_timely(self) -> Ed25519Cert
Return the underlying object without checking whether it’s valid.
source§fn check_valid_at(self, t: &SystemTime) -> Result<T, Self::Error>
fn check_valid_at(self, t: &SystemTime) -> Result<T, Self::Error>
Unwrap this Timebound object if it is valid at a given time.
source§fn check_valid_now(self) -> Result<T, Self::Error>
fn check_valid_now(self) -> Result<T, Self::Error>
Unwrap this Timebound object if it is valid now.
source§fn check_valid_at_opt(self, t: Option<SystemTime>) -> Result<T, Self::Error>
fn check_valid_at_opt(self, t: Option<SystemTime>) -> Result<T, Self::Error>
Unwrap this object if it is valid at the provided time t.
If no time is provided, check the object at the current time.