pub enum HttpSigError {
Show 16 variants
MissingHeader(String),
InvalidSignature(String),
VerificationFailed,
DigestMismatch,
TimestampOutOfBounds {
created: u64,
now: u64,
tolerance: u64,
},
KeyNotFound(String),
UnsupportedAlgorithm(String),
ParseError(String),
MissingAuthority,
InvalidHeader(String),
MissingComponent(String),
InvalidBase64(DecodeError),
InvalidHex(FromHexError),
KeyError(KeyError),
NoKeyConfigured,
InvalidLabel(String),
}Expand description
Errors that can occur during HTTP signature operations.
Variants§
MissingHeader(String)
A required HTTP header is missing.
InvalidSignature(String)
The signature format is invalid or malformed.
VerificationFailed
Signature verification failed (signature does not match).
DigestMismatch
The Content-Digest header does not match the computed digest.
TimestampOutOfBounds
The signature timestamp is outside the acceptable tolerance window.
KeyNotFound(String)
The requested key ID was not found.
UnsupportedAlgorithm(String)
The signature algorithm is not supported.
ParseError(String)
Failed to parse a signature header or component.
MissingAuthority
Missing authority in URI
InvalidHeader(String)
Invalid header value
MissingComponent(String)
A required signature component is missing.
InvalidBase64(DecodeError)
Invalid base64 encoding.
InvalidHex(FromHexError)
Invalid hex encoding.
KeyError(KeyError)
Cryptographic key error from keys module.
NoKeyConfigured
No verifier key configured (need either default key or key getter).
InvalidLabel(String)
Invalid signature label.
Trait Implementations§
Source§impl Debug for HttpSigError
impl Debug for HttpSigError
Source§impl Display for HttpSigError
impl Display for HttpSigError
Source§impl Error for HttpSigError
impl Error for HttpSigError
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<DecodeError> for HttpSigError
impl From<DecodeError> for HttpSigError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<FromHexError> for HttpSigError
impl From<FromHexError> for HttpSigError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HttpSigError
impl RefUnwindSafe for HttpSigError
impl Send for HttpSigError
impl Sync for HttpSigError
impl Unpin for HttpSigError
impl UnwindSafe for HttpSigError
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