pub enum VerifierError {
NonceGenerationFailed,
KeyBinding(KBError),
Format(FormatError),
Signature(SignatureError),
Decoding(DecodingError),
JwtNotYetValid(u64, u64),
JwtExpired(u64, u64),
}Expand description
Error type for errors related to the SD-JWT verifier.
Variants§
NonceGenerationFailed
Error indicating that the nonce generation failed.
KeyBinding(KBError)
Error with Key Binding JWT.
Format(FormatError)
Error indicating that the provided SD-JWT format is invalid.
Signature(SignatureError)
Error indicating that the signature verification failed.
Decoding(DecodingError)
Error indicating that the decoding of the SD-JWT failed.
JwtNotYetValid(u64, u64)
Error indicating that the JWT is not yet valid, i.e. the nbf (not
before) claim is set to a future time.
JwtExpired(u64, u64)
Error indicating that the JWT has expired, i.e. the exp (expiration)
claim is set to a time in the past.
Trait Implementations§
impl BhError for VerifierError
Source§impl Debug for VerifierError
impl Debug for VerifierError
Source§impl Display for VerifierError
impl Display for VerifierError
Source§impl PartialEq for VerifierError
impl PartialEq for VerifierError
Source§fn eq(&self, other: &VerifierError) -> bool
fn eq(&self, other: &VerifierError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VerifierError
Auto Trait Implementations§
impl Freeze for VerifierError
impl RefUnwindSafe for VerifierError
impl Send for VerifierError
impl Sync for VerifierError
impl Unpin for VerifierError
impl UnsafeUnpin for VerifierError
impl UnwindSafe for VerifierError
Blanket Implementations§
Source§impl<E> BhErrorAny for Ewhere
E: BhError,
impl<E> BhErrorAny for Ewhere
E: BhError,
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<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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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.