Class HMACVerify
- java.lang.Object
-
- org.wso2.carbon.esb.connector.hmac.utils.HMACVerify
-
public class HMACVerify extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanverify(String payload, String secret, String algorithm, String signature)Verifies the payload using the signature.
-
-
-
Method Detail
-
verify
public static boolean verify(String payload, String secret, String algorithm, String signature) throws NoSuchAlgorithmException, InvalidSecretException, InvalidKeyException
Verifies the payload using the signature.- Parameters:
payload- String.secret- String.algorithm- Signing algorithm.- Returns:
- boolean value of verified or not.
- Throws:
NoSuchAlgorithmExceptionInvalidSecretExceptionInvalidKeyException
-
-