#[non_exhaustive]pub enum DidAuthRejection {
Unresolved,
DocumentIdMismatch,
KeyNotBound,
RefreshRequired,
}Expand description
Why a DID-form peer identity is not bound to the signing key.
draft-atwood-jmap-chat-did-00 §DID-Bound Verification: “If the verification fails, including because the DID cannot be resolved ({{resolution}}), the identity binding of {{JMAP-CHAT-FED}} does not hold and the receiving server rejects the request.”
#[non_exhaustive], so new variants stay semver-additive.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unresolved
No usable DID Document: resolution failed and nothing usable is cached. §Resolution failure handling: “the DID-bound verification fails ({{did-verification}}) and the request is rejected.”
DocumentIdMismatch
The document’s id is not the DID. W3C DID Core §7.1: “The value
of id in the resolved DID document MUST match the DID that was
resolved.”
KeyNotBound
No Ed25519 key of the document’s authentication relationship
equals the signing key.
RefreshRequired
The signing key is absent from a DidDocument::Cached
document’s authentication keys. Refresh the document and check
once more with DidDocument::Refreshed before rejecting.
Trait Implementations§
Source§impl Clone for DidAuthRejection
impl Clone for DidAuthRejection
Source§impl Debug for DidAuthRejection
impl Debug for DidAuthRejection
Source§impl Display for DidAuthRejection
impl Display for DidAuthRejection
impl Eq for DidAuthRejection
Source§impl Error for DidAuthRejection
impl Error for DidAuthRejection
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for DidAuthRejection
impl PartialEq for DidAuthRejection
impl StructuralPartialEq for DidAuthRejection
Auto Trait Implementations§
impl Forget for DidAuthRejection
impl Freeze for DidAuthRejection
impl Move for DidAuthRejection
impl RefUnwindSafe for DidAuthRejection
impl Send for DidAuthRejection
impl Sync for DidAuthRejection
impl Unpin for DidAuthRejection
impl UnsafeUnpin for DidAuthRejection
impl UnwindSafe for DidAuthRejection
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,
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.impl<T> ErasedDestructor for Twhere
T: 'static,
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> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.