keyString for SecretKey must be encoded
This commit is contained in:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user