pub enum JwkError {
NotPublic,
Missing(&'static str),
NotBase64Url(&'static str),
WrongLength(String),
Unsupported(String),
AlgorithmDisagreement {
declared: String,
actual: &'static str,
},
}Expand description
Why a JWK could not become a verification key.
Variants§
NotPublic
The JWK carries a private component and is not a published verification key.
Missing(&'static str)
A member the key type requires is missing.
NotBase64Url(&'static str)
A member is present but not in the encoding a JWK uses.
WrongLength(String)
A coordinate or key is the wrong length for its curve.
Unsupported(String)
The key type or curve is one this build does not verify with.
AlgorithmDisagreement
The alg the JWK declares is not the one its key material can produce.
Trait Implementations§
impl Eq for JwkError
Source§impl Error for JwkError
impl Error for JwkError
1.30.0 · 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()
impl StructuralPartialEq for JwkError
Auto Trait Implementations§
impl Freeze for JwkError
impl RefUnwindSafe for JwkError
impl Send for JwkError
impl Sync for JwkError
impl Unpin for JwkError
impl UnsafeUnpin for JwkError
impl UnwindSafe for JwkError
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