keyString for SecretKey must be encoded

This commit is contained in:
Roger authored and Pablo Fernandez committed 2010-11-30 14:10:57 -03:00
1 parent fc2c46bd3a
commit 959c093620
1 file changed
+1 -1
@@ -30,7 +30,7 @@ public class HMACSha1SignatureService implements SignatureService
{
Preconditions.checkEmptyString(baseString, "Base string cant be null or empty string");
Preconditions.checkEmptyString(apiSecret, "Api secret cant be null or empty string");
return doSign(baseString, apiSecret + '&' + tokenSecret);
return doSign(baseString, URLUtils.percentEncode(apiSecret) + '&' + URLUtils.percentEncode(tokenSecret));
}
catch (Exception e)
{