From 944413de5e88fe151965a3bb3890ca0c348a2cde Mon Sep 17 00:00:00 2001 From: Randy Secrist Date: Mon, 18 Aug 2014 21:21:14 -0700 Subject: [PATCH] Make awsv4 message signature work under scala 2.10 --- tests/com.basho.dynamodb.integ/console/sign.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/com.basho.dynamodb.integ/console/sign.scala b/tests/com.basho.dynamodb.integ/console/sign.scala index f38862a..d274cd9 100644 --- a/tests/com.basho.dynamodb.integ/console/sign.scala +++ b/tests/com.basho.dynamodb.integ/console/sign.scala @@ -43,9 +43,9 @@ val regionName = "us-east-1" val serviceName = "dynamodb" val TERMINATOR = "aws4_request" -val stringToSign = "AWS4-HMAC-SHA256\n" + timeStamp + "\n" + datestamp + "/" + +val stringToSign = ("AWS4-HMAC-SHA256\n" + timeStamp + "\n" + dateStamp + "/" + regionName + "/" + serviceName + "/" + TERMINATOR + "\n" + - canonicalRequestHash + canonicalRequestHash) val kSecret = ("AWS4" + secret_key).getBytes() val kDate = signer.sign(dateStamp, kSecret, SigningAlgorithm.HmacSHA256)