#[non_exhaustive]pub enum JwksError {
NotHttps(Url),
InvalidIssuer(Url),
Http {
url: Url,
source: HttpError,
},
HttpStatus {
url: Url,
status: u16,
},
InvalidMetadata {
url: Url,
reason: String,
},
IssuerMismatch {
expected: Url,
found: String,
},
UnknownKid {
issuer: Url,
kid: String,
},
DuplicateKid {
issuer: Url,
kid: String,
},
InvalidKey {
kid: String,
reason: String,
},
}Available on crate feature
jwks only.Expand description
Why a JwksResolver found no key.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotHttps(Url)
The issuer or jwks_uri is not an https URL.
InvalidIssuer(Url)
The issuer has a query, a fragment or credentials, or no host.
Http
The HttpClient got no response.
HttpStatus
The server answered with a status other than 2xx.
InvalidMetadata
The metadata or key set is not what SD-JWT VC §3.5 and RFC 7517 §5 describe.
IssuerMismatch
The metadata names another issuer.
Fields
UnknownKid
No key of the issuer has the kid.
DuplicateKid
Several keys of the issuer have the kid, so it names none of them.
InvalidKey
The key is not a public JWK this crate reads.
Trait Implementations§
Source§impl Error for JwksError
impl Error for JwksError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for JwksError
impl !UnwindSafe for JwksError
impl Freeze for JwksError
impl Send for JwksError
impl Sync for JwksError
impl Unpin for JwksError
impl UnsafeUnpin for JwksError
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