pub enum TokenError {
Show 13 variants
Malformed,
UnsupportedAlgorithm,
UntrustedIssuer,
UnknownKey,
KeysUnavailable(KeysUnavailable),
BadSignature,
Expired,
NotYetValid,
WrongAudience,
MissingPass,
IntegrityFailed,
UnsupportedPlatform,
DeviceKey(DeviceKeyError),
}Expand description
Why an integrity token was refused.
Variants§
Malformed
The token is not a compact JWS with the expected header and claims.
UnsupportedAlgorithm
The token is not signed with ES256.
UntrustedIssuer
The token’s issuer is not trusted.
UnknownKey
The issuer has no key with the token’s kid.
The issuer’s keys could not be obtained.
BadSignature
The token signature does not verify.
Expired
The token is expired.
NotYetValid
The token is not valid yet.
WrongAudience
The token is for another audience.
MissingPass
The token carries no pass verdict.
IntegrityFailed
The Attestation Gateway judged the device untrustworthy.
UnsupportedPlatform
The token’s platform is not supported.
DeviceKey(DeviceKeyError)
The token’s cnf.jwk is not a usable device key.
Trait Implementations§
Source§impl Debug for TokenError
impl Debug for TokenError
Source§impl Display for TokenError
impl Display for TokenError
Source§impl Error for TokenError
impl Error for TokenError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DeviceKeyError> for TokenError
impl From<DeviceKeyError> for TokenError
Source§fn from(source: DeviceKeyError) -> Self
fn from(source: DeviceKeyError) -> Self
Converts to this type from the input type.
Source§fn from(source: KeysUnavailable) -> Self
fn from(source: KeysUnavailable) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TokenError
impl !UnwindSafe for TokenError
impl Freeze for TokenError
impl Send for TokenError
impl Sync for TokenError
impl Unpin for TokenError
impl UnsafeUnpin for TokenError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more