Метод | Описание | |
---|---|---|
GenerateSignature ( |
Generates a signature using the specified signatureType
|
|
GenerateSignature ( |
Generates a signature using the HMAC-SHA1 algorithm
|
|
GenerateSignatureBase ( |
Generate the signature base that is used to produce the signature
|
|
GenerateSignatureUsingHash ( string signatureBase, |
Generate the signature value based on the given signature base and hash algorithm
|
Метод | Описание | |
---|---|---|
ComputeHash ( |
Helper function to compute a hash value
|
|
GenerateNonce ( ) : string |
Generate a nonce
|
|
GenerateTimeStamp ( ) : string |
Generate the timestamp for the signature
|
|
GetQueryParameters ( string parameters ) : List |
Internal function to cut out all non oauth query string parameters (all parameters not begining with "oauth_")
|
|
NormalizeRequestParameters ( IList |
Normalizes the request parameters according to the spec
|
|
UrlEncode ( string value ) : string |
This is a different Url Encode implementation since the default .NET one outputs the percent encoding in lower case. While this is not a problem with the percent encoding spec, it is used in upper case throughout OAuth
|
public GenerateSignature ( |
||
url | The full url that needs to be signed including its non OAuth url parameters | |
consumerKey | string | The consumer key |
consumerSecret | string | The consumer seceret |
token | string | The token, if available. If not available pass null or an empty string |
tokenSecret | string | The token secret, if available. If not available pass null or an empty string |
httpMethod | string | The http method used. Must be a valid HTTP method verb (POST,GET,PUT, etc) |
timeStamp | string | |
nonce | string | |
signatureType | SignatureTypes | The type of signature to use |
normalizedUrl | string | |
normalizedRequestParameters | string | |
Результат | string |
public GenerateSignature ( |
||
url | The full url that needs to be signed including its non OAuth url parameters | |
consumerKey | string | The consumer key |
consumerSecret | string | The consumer seceret |
token | string | The token, if available. If not available pass null or an empty string |
tokenSecret | string | The token secret, if available. If not available pass null or an empty string |
httpMethod | string | The http method used. Must be a valid HTTP method verb (POST,GET,PUT, etc) |
timeStamp | string | |
nonce | string | |
normalizedUrl | string | |
normalizedRequestParameters | string | |
Результат | string |
public GenerateSignatureBase ( |
||
url | The full url that needs to be signed including its non OAuth url parameters | |
consumerKey | string | The consumer key |
token | string | The token, if available. If not available pass null or an empty string |
tokenSecret | string | The token secret, if available. If not available pass null or an empty string |
httpMethod | string | The http method used. Must be a valid HTTP method verb (POST,GET,PUT, etc) |
timeStamp | string | |
nonce | string | |
signatureType | string | The signature type. To use the default values use |
normalizedUrl | string | |
normalizedRequestParameters | string | |
Результат | string |
public GenerateSignatureUsingHash ( string signatureBase, |
||
signatureBase | string | The signature based as produced by the GenerateSignatureBase method or by any other means |
hash | The hash algorithm used to perform the hashing. If the hashing algorithm requires initialization or a key it should be set prior to calling this method | |
Результат | Windows.Storage.Streams.IBuffer |