HMAC Canonicalize Method
Canonicalizes an array of parameters into a string.

Namespace: HotDocs.Sdk.Server.Contracts
Assembly: HotDocs.Sdk.Server.Contracts (in HotDocs.Sdk.Server.Contracts.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static string Canonicalize(
	params Object[] paramList
)

Parameters

paramList
Type:  OnlineSystem Object 
The parameters to be canonicalized

Return Value

Type: OnlineString
A canonicalized string
Remarks

The canonicalization algorithm is as follows: - Strings are included as-is, even if they contain '\n'. - Integral types are converted to strings using base 10 and no leading zeros. - Enums and bools are converted to strings. - DateTime types are converted to UTC and formatted as "yyyy-MM-ddTHH:mm:ssZ". - Dictionaries (must have string key and string value) are sorted alphabetically by key, and projected to individual strings as "key=value", e.g. keyA=valueA\nkeyB=valueB\n etc. - Nulls and all other types are converted to empty strings. - All parameters are separated by '\n'. - The resulting string is encoded in UTF-8. This canonicalization is in keeping with REST services provided by Amazon, Microsoft, SpatialCloud, etc.
See Also