Enum openid::biscuit::errors::ValidationError [−][src]
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(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
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]
pub fn clone(&self) -> ValidationError
[src]
pub 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]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<ValidationError> for Error
[src]
pub fn from(f: ValidationError) -> Error
[src]
impl PartialEq<ValidationError> for ValidationError
[src]
pub fn eq(&self, other: &ValidationError) -> bool
[src]
pub 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,
pub 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,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,