Class AuthorizationV4QueryParser
java.lang.Object
org.apache.hadoop.ozone.s3.signature.AuthorizationV4QueryParser
- All Implemented Interfaces:
SignatureParser
Parser for getting auth info from query parameters.
See: https://docs.aws.amazon .com/AmazonS3/latest/API/sigv4-query-string-auth.html
-
Field Summary
Fields inherited from interface org.apache.hadoop.ozone.s3.signature.SignatureParser
AUTHORIZATION_HEADER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidValidates Date and Expires Query parameters.
-
Constructor Details
-
AuthorizationV4QueryParser
-
-
Method Details
-
parseSignature
- Specified by:
parseSignaturein interfaceSignatureParser- Throws:
MalformedResourceException
-
validateDateAndExpires
Validates Date and Expires Query parameters. According to AWS documentation: https://docs.aws.amazon.com/AmazonS3/latest/ API/sigv4-query-string-auth.html X-Amz-Date: The date and time format must follow the ISO 8601 standard, and must be formatted with the "yyyyMMddTHHmmssZ" format X-Amz-Expires: The minimum value you can set is 1, and the maximum is 604800
-