Skip to content

Commit

Permalink
Make awsv4 message signature work under scala 2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
randysecrist committed Aug 19, 2014
1 parent 8f99fd1 commit 944413d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/com.basho.dynamodb.integ/console/sign.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 944413d

Please sign in to comment.