C# Class Sage_One_Authorisation_Client.SageOneAPIRequestSigner

Mostrar archivo Open project: Sage/sageone_api_csharp_sample Class Usage Examples

Public Methods

Method Description
GenerateSignature ( string httpMethod, Uri url, string>.List requestBody, string signingSecret, string token, string nonce ) : string

Generates the signature from all the parameters passed in

Private Methods

Method Description
GenerateHmac ( string signingKey, string baseString ) : string

Generates a hash based message authentication code based on the signing key and the entire message that has been parameterised and escaped

NormalizeParams ( string httpMethod, Uri url, string>.List requestBody ) : string

Creates a string that represents the HTTP method, the URL and the request body

Method Details

GenerateSignature() public static method

Generates the signature from all the parameters passed in
public static GenerateSignature ( string httpMethod, Uri url, string>.List requestBody, string signingSecret, string token, string nonce ) : string
httpMethod string The HTTP method
url System.Uri The URL
requestBody string>.List The request message body (this will be null on a GET or DELETE)
signingSecret string
token string
nonce string The nonce
return string