#[non_exhaustive]pub enum HttpSigError {
Show 18 variants
MissingComponent(String),
UnsupportedComponent(String),
InvalidComponentValue(String),
MissingRequiredComponent(String),
UnsupportedAlg {
found: String,
},
InvalidTimeWindow,
TooOld,
Parse(String),
LabelMismatch,
MalformedSignature,
InvalidSignature,
Expired,
CreatedInFuture,
MissingParameter(&'static str),
ForbiddenParameter(&'static str),
WrongTag {
found: String,
},
AudienceMismatch,
RequestNonceMismatch,
}Expand description
An error returned while signing or verifying an HTTP message signature.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MissingComponent(String)
A covered component referenced a header field not present in the message.
UnsupportedComponent(String)
A component identifier is not supported by this crate.
InvalidComponentValue(String)
A component value contained a bare CR or LF, which would corrupt the signature base.
MissingRequiredComponent(String)
A component required by the verifier was not covered by the signature.
UnsupportedAlg
The signature’s alg parameter was present but not ed25519.
InvalidTimeWindow
The signature’s expires is before its created.
TooOld
The signature is older than the verifier’s max_age.
Parse(String)
The Signature-Input or Signature field value could not be parsed.
LabelMismatch
The Signature-Input and Signature used different labels, or the
requested label was absent.
MalformedSignature
The signature byte sequence was not valid Base64 or not 64 bytes.
InvalidSignature
The signature did not verify against the supplied key.
Expired
The signature’s expires parameter is in the past.
CreatedInFuture
The signature’s created parameter is in the future.
MissingParameter(&'static str)
The WIMSE profile requires a signature parameter that is absent.
ForbiddenParameter(&'static str)
The WIMSE profile forbids a signature parameter that is present.
WrongTag
The signature’s tag is not the WIMSE workload-to-workload tag.
AudienceMismatch
The signature’s wimse-aud did not match the audience the verifier
expected — the signature was minted for a different service.
RequestNonceMismatch
A signed response carried back a wimse-req-nonce that is not the nonce
the client sent, so the response answers some other request.
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
1.30.0 · Source§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
use the Display impl or to_string()