Property | Type | Description | |
---|---|---|---|
random |
Method | Description | |
---|---|---|
ComputeHash ( |
Helper function to compute a hash value
|
|
GenerateNonce ( ) : string |
Generate a nonce
|
|
GenerateSignature ( |
Generates a signature using the specified signatureType
|
|
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
|
|
GenerateTimeStamp ( ) : string |
Generate the timestamp for the signature
|
|
GetQueryParameters ( string query ) : List |
Internal function to cut out all non oauth query string parameters (all parameters not begining with "oauth_")
|
|
NormalizeRequestParameters ( List |
Normalizes the request parameters according to the spec
|
|
SignatureHelper ( Ramone.OAuth1.OAuth1Settings settings, IOAuth1Logger logger ) : System | ||
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
|
Method | Description | |
---|---|---|
Log ( string message ) : void |
public ComputeHash ( |
||
hashAlgorithm | The hashing algorihtm used. If that algorithm needs some initialization, like HMAC and its derivatives, they should be initialized prior to passing it to this function | |
data | string | The data to hash |
return | 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 |
callback | string | |
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 | |
return | string |
public GenerateSignatureBase ( |
||
url | The full url that needs to be signed including its non OAuth url parameters | |
consumerKey | string | The consumer key |
callback | string | OAuth callback value. |
token | string | The token, 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 | |
return | 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 | |
return | string |
public GetQueryParameters ( string query ) : List |
||
query | string | The query string part of the Url |
return | List |
public NormalizeRequestParameters ( List |
||
parameters | List |
The list of parameters already sorted |
return | string |
public SignatureHelper ( Ramone.OAuth1.OAuth1Settings settings, IOAuth1Logger logger ) : System | ||
settings | Ramone.OAuth1.OAuth1Settings | |
logger | IOAuth1Logger | |
return | System |
public static UrlEncode ( string value ) : string | ||
value | string | The value to Url encode |
return | string |