> +      } catch (IOException e) {
> +         throw new HttpException("Error signing request", e);
> +      }
> +      return hashedPayload;
> +   }
> +
> +   private byte[] hmacSha256(byte[] key, String s) {
> +      try {
> +         Mac hmacSHA256 = crypto.hmacSHA256(key);
> +         return hmacSHA256.doFinal(s.getBytes());
> +      } catch (Exception e) {
> +         throw new HttpException("Error signing request", e);
> +      }
> +   }
> +
> +   @VisibleForTesting

The method is actually not visible for testing as it is private.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/3/files#r12469349

Reply via email to