pub enum VerifyError {
InvalidEnvelope(String),
InvalidSchema,
MissingSubject,
InvalidValidityWindow,
UntrustedIssuer,
InvalidSignature,
NotYetValid,
Expired,
Internal(String),
}Expand description
Errors raised by verify_passport.
Variants§
InvalidEnvelope(String)
Envelope bytes could not be parsed as a signed portable passport.
InvalidSchema
Envelope schema tag did not equal PORTABLE_PASSPORT_SCHEMA.
MissingSubject
Subject field was empty.
InvalidValidityWindow
issued_at is strictly greater than expires_at.
UntrustedIssuer
Issuer public key is not in the trusted authority set.
InvalidSignature
Canonical-JSON signature did not verify against the issuer key.
NotYetValid
Envelope is not yet valid (clock is before issued_at).
Expired
Envelope has expired (clock is at or after expires_at).
Internal(String)
Internal canonical-JSON failure while re-hashing the envelope body.
Trait Implementations§
Source§impl Clone for VerifyError
impl Clone for VerifyError
Source§fn clone(&self) -> VerifyError
fn clone(&self) -> VerifyError
Returns a duplicate 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 VerifyError
impl Debug for VerifyError
Source§impl PartialEq for VerifyError
impl PartialEq for VerifyError
impl Eq for VerifyError
impl StructuralPartialEq for VerifyError
Auto Trait Implementations§
impl Freeze for VerifyError
impl RefUnwindSafe for VerifyError
impl Send for VerifyError
impl Sync for VerifyError
impl Unpin for VerifyError
impl UnsafeUnpin for VerifyError
impl UnwindSafe for VerifyError
Blanket Implementations§
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