C# 클래스 RestSharp.Authenticators.OAuth.OAuthWorkflow

A class to encapsulate OAuth authentication flow. http://oauth.net/core/1.0#anchor9
파일 보기 프로젝트 열기: nicwise/RestSharp 1 사용 예제들

공개 메소드들

메소드 설명
BuildAccessTokenInfo ( string method ) : OAuthWebQueryInfo

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of exchanging a request token for an access token authorized by the user at the Service Provider site.

BuildAccessTokenInfo ( string method, WebParameterCollection parameters ) : OAuthWebQueryInfo

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of exchanging a request token for an access token authorized by the user at the Service Provider site.

BuildClientAuthAccessTokenInfo ( string method, WebParameterCollection parameters ) : OAuthWebQueryInfo

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of exchanging user credentials for an access token authorized by the user at the Service Provider site.

BuildProtectedResourceInfo ( string method, WebParameterCollection parameters, string url ) : OAuthWebQueryInfo
BuildRequestTokenInfo ( string method ) : OAuthWebQueryInfo

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of requesting an unauthorized request token.

BuildRequestTokenInfo ( string method, WebParameterCollection parameters ) : OAuthWebQueryInfo

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of requesting an unauthorized request token.

비공개 메소드들

메소드 설명
AddAuthParameters ( ICollection parameters, string timestamp, string nonce ) : void
AddXAuthParameters ( ICollection parameters, string timestamp, string nonce ) : void
ValidateAccessRequestState ( ) : void
ValidateClientAuthAccessRequestState ( ) : void
ValidateProtectedResourceState ( ) : void
ValidateTokenRequestState ( ) : void

메소드 상세

BuildAccessTokenInfo() 공개 메소드

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of exchanging a request token for an access token authorized by the user at the Service Provider site.
public BuildAccessTokenInfo ( string method ) : OAuthWebQueryInfo
method string The HTTP method for the intended request
리턴 OAuthWebQueryInfo

BuildAccessTokenInfo() 공개 메소드

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of exchanging a request token for an access token authorized by the user at the Service Provider site.
public BuildAccessTokenInfo ( string method, WebParameterCollection parameters ) : OAuthWebQueryInfo
method string The HTTP method for the intended request
parameters WebParameterCollection Any existing, non-OAuth query parameters desired in the request
리턴 OAuthWebQueryInfo

BuildClientAuthAccessTokenInfo() 공개 메소드

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of exchanging user credentials for an access token authorized by the user at the Service Provider site.
public BuildClientAuthAccessTokenInfo ( string method, WebParameterCollection parameters ) : OAuthWebQueryInfo
method string The HTTP method for the intended request
parameters WebParameterCollection Any existing, non-OAuth query parameters desired in the request
리턴 OAuthWebQueryInfo

BuildProtectedResourceInfo() 공개 메소드

public BuildProtectedResourceInfo ( string method, WebParameterCollection parameters, string url ) : OAuthWebQueryInfo
method string
parameters WebParameterCollection
url string
리턴 OAuthWebQueryInfo

BuildRequestTokenInfo() 공개 메소드

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of requesting an unauthorized request token.
public BuildRequestTokenInfo ( string method ) : OAuthWebQueryInfo
method string The HTTP method for the intended request
리턴 OAuthWebQueryInfo

BuildRequestTokenInfo() 공개 메소드

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of requesting an unauthorized request token.
public BuildRequestTokenInfo ( string method, WebParameterCollection parameters ) : OAuthWebQueryInfo
method string The HTTP method for the intended request
parameters WebParameterCollection Any existing, non-OAuth query parameters desired in the request
리턴 OAuthWebQueryInfo