DSAzure.TSharedKeyAuthorization.HMAC_SHA256

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: protected
Source:
DSAzure.pas
DSAzure.hpp
Unit: DSAzure
Parent: TSharedKeyAuthorization

Delphi

function HMAC_SHA256(const StringToSign: String): TArray<Byte>;

C++

System::DynamicArray<System::Byte> __fastcall HMAC_SHA256(const System::UnicodeString StringToSign);

Description

Constructs an HMAC Signature for authorization.

HMAC_SHA256 constructs a Hash-based Message Authentication Code (HMAC), where StringToSign is the current request. The result can then be base64-encoded and used for SharedKey authorization, as seen in the Authentication function. For more information, refer to the 'Specifying the Authorization Header' section of the MSDN documentation in the See Also section.

See Also