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

Content-Md5 example in java #120

@hazemhamedhs

Description

@hazemhamedhs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    legacyRelated to legacy, non-OpenAPI SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions