Skip to content

Commit

Permalink
connect example codeDepot tags
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronWDS committed Nov 30, 2023
1 parent a662681 commit 5298e21
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class HttpsConnectWebhookhMacValidation {
* https://docs.oracle.com/javase/10/docs/specs/security/standard-names.html#mac
* -algorithms
*/
//ds-snippet-start:Connect1Step1
private static String ComputeHash(String secret, byte[] payload)
throws InvalidKeyException, NoSuchAlgorithmException {
String digest = "HmacSHA256";
Expand All @@ -41,7 +42,7 @@ public static boolean HashIsValid(String secret, byte[] payload, String verify)
verify.getBytes(StandardCharsets.UTF_8));
return isEqual;
}

//ds-snippet-end:Connect1Step1
public static void main(String[] args) {

LOGGER.info("DocuSign HMAC Tester");
Expand Down

0 comments on commit 5298e21

Please sign in to comment.