[−][src]Enum aws_sig_verify::ErrorKind
The possible reasons for an AWS SigV4 signature validation to fail; returned as part of SignatureError.
Variants
IO(Error)
Validation failed due to an underlying I/O error.
The request body used an unsupported character set encoding. Currently only UTF-8 is supported.
The request signature specified an invalid credential -- either the
access key was not specified, or the credential scope (in the form
date/region/service/aws4_request
) did not match
the expected value for the server.
The signature passed in the request did not match the calculated signature value.
The URI path includes invalid components. This can be a malformed
hex encoding (e.g. %0J
), a non-absolute URI path (foo/bar
), or a
URI path that attempts to navigate above the root (/x/../../../y
).
An HTTP header was malformed -- the value could not be decoded as
UTF-8, or the header was empty and this is not allowed (e.g. the
content-type
header), or the header could not be parsed
(e.g., the date
header is not a valid date).
A query parameter was malformed -- the value could not be decoded as
UTF-8, or the parameter was empty and this is not allowed (e.g. a
signature parameter), or the parameter could not be parsed
(e.g., the X-Amz-Date
parameter is not a valid date).
The AWS SigV4 signature was malformed in some way. This can include invalid timestamp formats, missing authorization components, or unparseable components.
A required HTTP header (and its equivalent in the query string) is missing.
A required query parameter is missing. This is used internally in the
library; external callers only see MissingHeader
.
An HTTP header that can be specified only once was specified multiple times.
A query parameter that can be specified only once was specified multiple times.
The timestamp in the request is out of the allowed range.
The access key specified in the request is unknown.
The signature algorithm requested by the caller is unknown. This library
only supports the AWS4-HMAC-SHA256
algorithm.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,