> +
> + public static final String AUTH_TAG = "AWS4";
> + public static final String HEADER_TAG = "x-amz-";
> + public static final String ALGORITHM = AUTH_TAG + "-HMAC-SHA256";
> + public static final String TERMINATION_STRING = "aws4_request";
> + public static final String REGION = "us-east-1";
> + public static final String SERVICE = "glacier";
> +
> + private final Crypto crypto;
> + private final String identity;
> + private final String credential;
> +
> + public AWSRequestSignerV4(String identity, String credential, Crypto
> crypto) {
> + this.crypto = crypto;
> + this.identity = identity;
> + this.credential = credential;
Same as above. Add `Preconditions.checkNotNull` checks to the mandatory fields.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/3/files#r12469130