[][src]Enum jwts::error::ErrorKind

pub enum ErrorKind {
    Malformed,
    InvalidAlg,
    InvalidSignature,
    InvalidIss,
    InvalidSub,
    InvalidAud,
    InvalidJti,
    InvalidIat,
    NotBefore,
    TokenExpired(u64),
    InvalidKey,
    Crypto,
}

All error kinds in signing and parsing.

Variants

Malformed

Token malformed

InvalidAlg

Header "alg" does not match with the verified algorithm

InvalidSignature

Signature does not match

InvalidIss

Claim "iss" does not match

InvalidSub

Claim "sub" does not match

InvalidAud

Claim "aud" does not match

InvalidJti

Claim "jti" does not match

InvalidIat

Now before the issued time

NotBefore

Token not active

TokenExpired(u64)

Token expired by seconds

InvalidKey

An invalid key provided

Crypto

An error in ring signing

Trait Implementations

impl Debug for ErrorKind[src]

impl From<ErrorKind> for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.