Click or drag to resize

openAuthToolsGenerateSignature Method (Uri, String, String, String, String, String, String, String, String, String)

Home | imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Generates a signature using the HMAC-SHA1 algorithm

Namespace:  imbACE.Network.authorization
Assembly:  imbACE.Network (in imbACE.Network.dll) Version: 0.2
Syntax
C#
public string GenerateSignature(
	Uri url,
	string consumerKey,
	string consumerSecret,
	string token,
	string tokenSecret,
	string httpMethod,
	string timeStamp,
	string nonce,
	out string normalizedUrl,
	out string normalizedRequestParameters
)
Request Example View Source

Parameters

url
Type: SystemUri
The full url that needs to be signed including its non OAuth url parameters
consumerKey
Type: SystemString
The consumer key
consumerSecret
Type: SystemString
The consumer seceret
token
Type: SystemString
The token, if available. If not available pass null or an empty string
tokenSecret
Type: SystemString
The token secret, if available. If not available pass null or an empty string
httpMethod
Type: SystemString
The http method used. Must be a valid HTTP method verb (POST,GET,PUT, etc)
timeStamp
Type: SystemString
nonce
Type: SystemString
normalizedUrl
Type: SystemString
normalizedRequestParameters
Type: SystemString

Return Value

Type: String
A base64 string of the hash value
See Also