Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Content-Md5 example in java #120

Open
hazemhamedhs opened this issue Aug 26, 2020 · 0 comments
Open

Content-Md5 example in java #120

hazemhamedhs opened this issue Aug 26, 2020 · 0 comments
Labels
legacy Related to legacy, non-OpenAPI SDK

Comments

@hazemhamedhs
Copy link

Add a code example that will help customers to implement event hash verification as detailed below:
https://app.hellosign.com/api/eventsAndCallbacksWalkthrough#EventHash

Something between the lines of this flow:
val jsonPayload: String = """ {"event":{"event_type":"callback_test","event_time":"1598376374","event_hash":"event_hash","event_metadata":{"related_signature_id":null,"reported_for_account_id":"reported_for_account_id","reported_for_app_id":null,"event_message":null}}}' """ val hmacMd5: Mac = Mac.getInstance("HmacMD5") hmacMd5.init(SecretKeySpec("API_KEY", "HmacMD5")) return Base64.getEncoder().encodeToString(hmacMd5.doFinal(jsonPayload.toByteArray()))
Internal report - DEV-10537
ZD - 11266583

@jtreminio-dropbox jtreminio-dropbox added the legacy Related to legacy, non-OpenAPI SDK label Jun 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
legacy Related to legacy, non-OpenAPI SDK
Projects
None yet
Development

No branches or pull requests

2 participants