Enum alcoholic_jwt::ValidationError [−][src]
pub enum ValidationError { MalformedJWT, InvalidJWK, InvalidSignature, OpenSSL(ErrorStack), JSON(Error), InvalidClaims(Vec<&'static str>), }
Possible results of a token validation.
Variants
MalformedJWT
Token was malformed (various possible reasons!)
InvalidJWK
Decoding of the provided JWK failed.
InvalidSignature
Signature validation failed, i.e. because of a non-matching public key.
OpenSSL(ErrorStack)
An OpenSSL operation failed along the way at a point at which a more specific error variant could not be constructed.
JSON(Error)
JSON decoding into a provided type failed.
InvalidClaims(Vec<&'static str>)
One or more claim validations failed. This variant contains human-readable validation errors.
Trait Implementations
impl Debug for ValidationError
[src]
impl Debug for ValidationError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<ErrorStack> for ValidationError
[src]
impl From<ErrorStack> for ValidationError
fn from(err: ErrorStack) -> Self
[src]
fn from(err: ErrorStack) -> Self
Performs the conversion.
impl From<Error> for ValidationError
[src]
impl From<Error> for ValidationError
Auto Trait Implementations
impl Send for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Sync for ValidationError