Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IHmacContext

interface IHmacContext
Extends com.amazon.apmf.IStandard

Methods

sign()

u8[] sign(u8[] message)
Sign a message using the HMAC context.

Parameters

message
u8[] — Required The message to sign.

Returns

u8[] The HMAC signature of the message.

verify()

bool verify(u8[] message, u8[] tag)
Verify the authenticity of a message using the HMAC context.

Parameters

message
u8[] — Required The message to verify.
tag
u8[] — Required The HMAC tag associated with the message.

Returns

bool True if the message is authentic, false otherwise.
Last modified on October 29, 2026