[−][src]Enum biscuit::errors::ValidationError
Errors from validating tokens
Variants
Token has an invalid signature (RFC7523 3.9)
Token provided was signed or encrypted with an unexpected algorithm
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(StringOrUri)
The token does not have or has the wrong issuer (iss check failed, RFC7523 3.1)
InvalidAudience(SingleOrMultiple<StringOrUri>)
The token does not have or has the wrong audience (aud check failed, RFC7523 3.3
The token doesn't contains the Kid claim in the header
The by the Kid specified key, wasn't found in the KeySet
The algorithm of the JWK is not supported for validating JWTs
An algorithm is needed for verification but was not provided
Trait Implementations
impl Clone for ValidationError
[src]
fn clone(&self) -> ValidationError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ValidationError
[src]
impl Display for ValidationError
[src]
impl Eq for ValidationError
[src]
impl Error for ValidationError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<ValidationError> for Error
[src]
fn from(f: ValidationError) -> Error
[src]
impl PartialEq<ValidationError> for ValidationError
[src]
fn eq(&self, other: &ValidationError) -> bool
[src]
fn ne(&self, other: &ValidationError) -> bool
[src]
impl StructuralEq for ValidationError
[src]
impl StructuralPartialEq for ValidationError
[src]
Auto Trait Implementations
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,