NAME
Azure::SDK::AppConfiguration::Hmac - App Configuration HMAC-SHA256 policy
DESCRIPTION
Hashes the request body and signs the exact encoded request path and query on every pipeline attempt using the App Configuration HMAC-SHA256 scheme.
CONSTRUCTOR
new
Requires credential_id and a Base64 credential_secret. Optional clock is a code reference returning epoch seconds and is primarily useful for deterministic tests.
METHODS
send
Implements Azure::SDK::Core::Policy. Sets Host, x-ms-date, x-ms-content-sha256, and Authorization immediately before invoking the next pipeline stage. The signing Host comes from "wire_host" in Azure::SDK::Core::Transport::Default: lowercase host, no userinfo, default port omitted, and non-default ports kept verbatim, matching the default transport's automatically generated wire header regardless of the installed URI release. The exact encoded path/query is not canonicalized.
string_to_sign
Returns the canonical string for a prepared request. The signing headers must already be present.
SEE ALSO
Azure::SDK::AppConfiguration::ConnectionString, Azure::SDK::Core::Policy