> +
> + @Resource
> + @Named(Constants.LOGGER_SIGNATURE)
> + Logger signatureLog = Logger.NULL;
> +
> + private final Provider<String> timeStampProvider;
> + private final HttpUtils utils;
> +
> + @Inject
> + public RequestAuthorizeSignature(
> + @TimeStamp Provider<String> timeStampProvider,
> + @org.jclouds.location.Provider Supplier<Credentials> creds,
> + Crypto crypto, HttpUtils utils) {
> + this.signer = new AWSRequestSignerV4(creds.get().identity,
> creds.get().credential, crypto);
> + this.timeStampProvider = timeStampProvider;
> + this.utils = utils;
Add a `checkNotNull` to mandatory fields. Injection will already fail, but
having the check will help when directly calling the constructor (for exampe in
the tests).
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/3/files#r12469091