Enum openid::biscuit::errors::ValidationError[][src]

pub enum ValidationError {
    InvalidSignature,
    WrongAlgorithmHeader,
    MissingRequiredClaims(Vec<String, Global>),
    Expired(Duration),
    NotYetValid(Duration),
    TooOld(Duration),
    InvalidIssuer(String),
    InvalidAudience(SingleOrMultiple<String>),
    KidMissing,
    KeyNotFound,
    UnsupportedKeyAlgorithm,
    MissingAlgorithm,
}

Errors from validating tokens

Variants

InvalidSignature

Token has an invalid signature (RFC7523 3.9)

WrongAlgorithmHeader

Token provided was signed or encrypted with an unexpected algorithm

MissingRequiredClaims(Vec<String, Global>)

A field required is missing from the token The parameter shows the name of the missing claim

Expired(Duration)

The token’s expiry has passed (exp check failled, RFC7523 3.4) The parameter show how long the token has expired

NotYetValid(Duration)

The token is not yet valid (nbf check failed, RFC7523 3.5) The parameter show how much longer the token will start to be valid

TooOld(Duration)

The token has been created too far in the past (iat check failed, RFC7523 3.6) This is different from Expired because the token may not be expired yet, but the acceptor of the token may impose more strict requirement for the age of the token for some more sensitive operations. The parameter show how much older the token is than required

InvalidIssuer(String)

The token does not have or has the wrong issuer (iss check failed, RFC7523 3.1)

InvalidAudience(SingleOrMultiple<String>)

The token does not have or has the wrong audience (aud check failed, RFC7523 3.3

KidMissing

The token doesn’t contains the Kid claim in the header

KeyNotFound

The by the Kid specified key, wasn’t found in the KeySet

UnsupportedKeyAlgorithm

The algorithm of the JWK is not supported for validating JWTs

MissingAlgorithm

An algorithm is needed for verification but was not provided

Trait Implementations

impl Clone for ValidationError[src]

impl Debug for ValidationError[src]

impl Display for ValidationError[src]

impl Eq for ValidationError[src]

impl Error for ValidationError[src]

impl From<ValidationError> for Error[src]

impl PartialEq<ValidationError> for ValidationError[src]

impl StructuralEq for ValidationError[src]

impl StructuralPartialEq for ValidationError[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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.