Enum jaws::token::TokenVerifyingError
source · pub enum TokenVerifyingError {
Verify(Error),
Serialization(Error),
Algorithm(AlgorithmIdentifier, AlgorithmIdentifier),
}Expand description
An error which occured while verifying a token.
Variants§
Verify(Error)
The verification failed during the cryptographic process, meaning that the signature was invalid, or the algorithm was invalid.
Serialization(Error)
An error occured while re-serailizing the header or payload for signature verification. This indicates that something is probably wrong with your custom types.
Algorithm(AlgorithmIdentifier, AlgorithmIdentifier)
The algorithm specified in the header does not match the algorithm of the verifier.
Trait Implementations§
source§impl Debug for TokenVerifyingError
impl Debug for TokenVerifyingError
source§impl Display for TokenVerifyingError
impl Display for TokenVerifyingError
source§impl Error for TokenVerifyingError
impl Error for TokenVerifyingError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for TokenVerifyingError
impl Send for TokenVerifyingError
impl Sync for TokenVerifyingError
impl Unpin for TokenVerifyingError
impl !UnwindSafe for TokenVerifyingError
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