#[non_exhaustive]pub enum KeyBindingJwtError {
JwtValidationError(JwtValidationError),
DeserializationError(String),
SdJwtError(Error),
InvalidDigest,
InvalidNonce,
AudianceMismatch,
IssuanceDate(String),
MissingKeyBindingJwt,
InvalidHeaderTypValue,
}
Expand description
An error associated with validating KB-JWT.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
JwtValidationError(JwtValidationError)
Invalid key binding JWT.
DeserializationError(String)
Deserialization failed.
SdJwtError(Error)
Error from sd_jwt_payload
.
InvalidDigest
Invalid hash value.
InvalidNonce
Invalid nonce value.
AudianceMismatch
Invalid aud
value.
IssuanceDate(String)
Issuance date validation error.
MissingKeyBindingJwt
SD-JWT does not contain a key binding JWT.
InvalidHeaderTypValue
Header value typ
is invalid.
Trait Implementations§
source§impl Debug for KeyBindingJwtError
impl Debug for KeyBindingJwtError
source§impl Display for KeyBindingJwtError
impl Display for KeyBindingJwtError
source§impl Error for KeyBindingJwtError
impl Error for KeyBindingJwtError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<'_derivative_strum> From<&'_derivative_strum KeyBindingJwtError> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum KeyBindingJwtError> for &'static str
source§fn from(x: &'_derivative_strum KeyBindingJwtError) -> &'static str
fn from(x: &'_derivative_strum KeyBindingJwtError) -> &'static str
Converts to this type from the input type.
source§impl From<Error> for KeyBindingJwtError
impl From<Error> for KeyBindingJwtError
source§fn from(source: Error) -> KeyBindingJwtError
fn from(source: Error) -> KeyBindingJwtError
Converts to this type from the input type.
source§impl From<JwtValidationError> for KeyBindingJwtError
impl From<JwtValidationError> for KeyBindingJwtError
source§fn from(source: JwtValidationError) -> KeyBindingJwtError
fn from(source: JwtValidationError) -> KeyBindingJwtError
Converts to this type from the input type.
source§impl From<KeyBindingJwtError> for &'static str
impl From<KeyBindingJwtError> for &'static str
source§fn from(x: KeyBindingJwtError) -> &'static str
fn from(x: KeyBindingJwtError) -> &'static str
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeyBindingJwtError
impl !RefUnwindSafe for KeyBindingJwtError
impl Send for KeyBindingJwtError
impl Sync for KeyBindingJwtError
impl Unpin for KeyBindingJwtError
impl !UnwindSafe for KeyBindingJwtError
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