C# Class GenericRestConnector.OAuth1Auth

Inheritance: AuthBase
Show file Open project: websy85/generic-rest-connector

Public Methods

Method Description
PrepClient ( System client, AuthInfo info, dynamic options ) : WebClient
PrepUrl ( string url, AuthInfo info, dynamic options ) : string

Private Methods

Method Description
generateHmac ( string key, string msg ) : string
generateSignature ( string httpMethod, Uri url, string>.IDictionary oauthParams, string secret ) : string
getNonce ( ) : string
getTimestamp ( ) : string
normalizeParams ( string httpMethod, Uri url, string>.IEnumerable oauthParams ) : string

Method Details

PrepClient() public method

public PrepClient ( System client, AuthInfo info, dynamic options ) : WebClient
client System
info AuthInfo
options dynamic
return System.Net.WebClient

PrepUrl() public method

public PrepUrl ( string url, AuthInfo info, dynamic options ) : string
url string
info AuthInfo
options dynamic
return string