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

Token was malformed (various possible reasons!)

Decoding of the provided JWK failed.

Signature validation failed, i.e. because of a non-matching public key.

An OpenSSL operation failed along the way at a point at which a more specific error variant could not be constructed.

JSON decoding into a provided type failed.

One or more claim validations failed. This variant contains human-readable validation errors.

Trait Implementations

impl Debug for ValidationError
[src]

Formats the value using the given formatter. Read more

impl From<ErrorStack> for ValidationError
[src]

Performs the conversion.

impl From<Error> for ValidationError
[src]

Performs the conversion.

Auto Trait Implementations