Enum RustyJwtError
pub enum RustyJwtError {
Show 37 variants
JwtSimpleError(Error),
Sec1Error(Error),
UrlParseError(ParseError),
UuidError(Error),
Utf8Error(Utf8Error),
Base64DecodeError(DecodeError),
JsonError(Error),
InvalidHtu(Url, &'static str),
InvalidHtm(String),
InvalidDpopJwk,
InvalidJwkThumbprint,
InvalidDpopIat,
DpopNotYetValid,
InvalidToken(String),
MissingDpopHeader(&'static str),
InvalidDpopTyp,
TokenSubMismatch,
MissingIssuer,
TokenExpired,
TokenLivesTooLong,
MissingTokenClaim(&'static str),
InvalidAudience,
DpopNonceMismatch,
DpopHandleMismatch,
DpopDisplayNameMismatch,
DpopTeamMismatch,
DpopChallengeMismatch,
DpopHtuMismatch,
DpopHtmMismatch,
UnsupportedAlgorithm,
InvalidBackendKeys(&'static str),
InvalidClientId,
UnsupportedApiVersion,
UnsupportedScope,
InvalidHandle,
InvalidIdentifierScheme(String),
ImplementationError,
}Expand description
All errors which [crate::RustyJwtTools] might throw
Variants§
JwtSimpleError(Error)
JWT error from jwt-simple crate
Sec1Error(Error)
Elliptic curve error
UrlParseError(ParseError)
Invalid URL
UuidError(Error)
Invalid UUID
Utf8Error(Utf8Error)
UTF-8 parsing error
Base64DecodeError(DecodeError)
Base64 decoding error
JsonError(Error)
Json error
InvalidHtu(Url, &'static str)
Invalid URL
InvalidHtm(String)
Invalid HTTP method
InvalidDpopJwk
Invalid DPoP proof jwk
InvalidJwkThumbprint
JWK thumbprint mismatches JWK in header
InvalidDpopIat
DPoP ‘iat’ claim is issued in the future
DpopNotYetValid
DPoP ‘nbf’ claim is issued in the future
InvalidToken(String)
JWT token verification failed
MissingDpopHeader(&'static str)
DPoP token lacks header field
InvalidDpopTyp
DPoP token should have a ‘typ’ header field equal to ‘dpop+jwt’
TokenSubMismatch
DPoP token ‘sub’ claim mismatches with the expected one
MissingIssuer
Claim ‘iss’ is missing while required
TokenExpired
JWT token is expired
TokenLivesTooLong
JWT token expiry is later than supplied threshold
MissingTokenClaim(&'static str)
JWT token token lacks a claim
InvalidAudience
JWT token has an invalid “aud” claim
DpopNonceMismatch
DPoP token ‘nonce’ claim mismatches with the expected [crate::prelude::BackendNonce]
DpopHandleMismatch
DPoP token ‘handle’ claim mismatches with the expected handle
DpopDisplayNameMismatch
DPoP token display name claim mismatches with the expected handle
DpopTeamMismatch
DPoP token ‘team’ claim mismatches with the expected team
DpopChallengeMismatch
DPoP token ‘chal’ claim mismatches with the expected [crate::prelude::AcmeNonce]
DpopHtuMismatch
DPoP token ‘htu’ claim mismatches with the expected uri
DpopHtmMismatch
DPoP token ‘htm’ claim mismatches with the expected method
UnsupportedAlgorithm
Unsupported algorithm
InvalidBackendKeys(&'static str)
Supplied backend keys have an invalid format
InvalidClientId
UnsupportedApiVersion
Verified a token with an unsupported wire-server API version
UnsupportedScope
Verified a token with an unsupported scope
InvalidHandle
Handle claim is in the wrong format
InvalidIdentifierScheme(String)
Invalid identifier (client id or handle) scheme
ImplementationError
We have done something terribly wrong
Trait Implementations§
§impl Debug for RustyJwtError
impl Debug for RustyJwtError
§impl Display for RustyJwtError
impl Display for RustyJwtError
§impl Error for RustyJwtError
impl Error for RustyJwtError
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
§impl From<DecodeError> for RustyJwtError
impl From<DecodeError> for RustyJwtError
§fn from(source: DecodeError) -> RustyJwtError
fn from(source: DecodeError) -> RustyJwtError
§impl From<Error> for RustyJwtError
impl From<Error> for RustyJwtError
§fn from(source: Error) -> RustyJwtError
fn from(source: Error) -> RustyJwtError
§impl From<Error> for RustyJwtError
impl From<Error> for RustyJwtError
§fn from(source: Error) -> RustyJwtError
fn from(source: Error) -> RustyJwtError
§impl From<Error> for RustyJwtError
impl From<Error> for RustyJwtError
§fn from(source: Error) -> RustyJwtError
fn from(source: Error) -> RustyJwtError
§impl From<Error> for RustyJwtError
impl From<Error> for RustyJwtError
§fn from(source: Error) -> RustyJwtError
fn from(source: Error) -> RustyJwtError
§impl From<ParseError> for RustyJwtError
impl From<ParseError> for RustyJwtError
§fn from(source: ParseError) -> RustyJwtError
fn from(source: ParseError) -> RustyJwtError
Source§impl From<RustyJwtError> for E2eIdentityError
impl From<RustyJwtError> for E2eIdentityError
Source§fn from(source: RustyJwtError) -> Self
fn from(source: RustyJwtError) -> Self
Source§impl From<RustyJwtError> for RustyAcmeError
impl From<RustyJwtError> for RustyAcmeError
Source§fn from(source: RustyJwtError) -> Self
fn from(source: RustyJwtError) -> Self
§impl From<Utf8Error> for RustyJwtError
impl From<Utf8Error> for RustyJwtError
§fn from(source: Utf8Error) -> RustyJwtError
fn from(source: Utf8Error) -> RustyJwtError
Auto Trait Implementations§
impl Freeze for RustyJwtError
impl !RefUnwindSafe for RustyJwtError
impl Send for RustyJwtError
impl Sync for RustyJwtError
impl Unpin for RustyJwtError
impl !UnwindSafe for RustyJwtError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more