pub enum RejectReason {
Malformed,
UnsupportedVersion,
BadSignature,
UnknownSigner,
Revoked,
Expired,
}Expand description
Why an Envelope failed verification — distinct, named causes so a consumer
or diagnose() can act on the specific failure (ADR-020 §13).
Implementation note: an unsigned envelope in Authenticated context produces
Assurance::Anonymous, not Rejected; a timestamp outside the freshness
window produces Authenticated { freshness: Stale }, not Rejected. Only
hard failures (parse error, bad crypto, unknown or revoked signer) reject.
Variants§
Malformed
The envelope (or its base64 fields) could not be parsed.
UnsupportedVersion
The envelope version is not understood by this verifier.
BadSignature
The signature did not verify against the signer’s public key.
UnknownSigner
The signer’s CN is not a current member of the roster (leaf fails to chain to the verifier’s pinned CA).
Revoked
The signer’s certificate has been revoked.
Expired
The signer’s certificate has expired.
Trait Implementations§
Source§impl Clone for RejectReason
impl Clone for RejectReason
Source§fn clone(&self) -> RejectReason
fn clone(&self) -> RejectReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RejectReason
impl Debug for RejectReason
Source§impl<'de> Deserialize<'de> for RejectReason
impl<'de> Deserialize<'de> for RejectReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for RejectReason
Source§impl PartialEq for RejectReason
impl PartialEq for RejectReason
Source§fn eq(&self, other: &RejectReason) -> bool
fn eq(&self, other: &RejectReason) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for RejectReason
impl Serialize for RejectReason
impl StructuralPartialEq for RejectReason
Auto Trait Implementations§
impl Freeze for RejectReason
impl RefUnwindSafe for RejectReason
impl Send for RejectReason
impl Sync for RejectReason
impl Unpin for RejectReason
impl UnsafeUnpin for RejectReason
impl UnwindSafe for RejectReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.