diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-09-28 17:15:21 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-09-28 17:15:21 -0700 |
commit | e900947a227091adaf2b7a81cafdc0c5b624a91b (patch) | |
tree | 982ddecbe75baeff15c962efad056b26cae38899 /src/DotNetOAuth/Consumer.cs | |
parent | ad79dec82e43910db29d1a259155f2cf3f86e731 (diff) | |
download | DotNetOpenAuth-e900947a227091adaf2b7a81cafdc0c5b624a91b.zip DotNetOpenAuth-e900947a227091adaf2b7a81cafdc0c5b624a91b.tar.gz DotNetOpenAuth-e900947a227091adaf2b7a81cafdc0c5b624a91b.tar.bz2 |
Removed hard-coded signing modules.
Diffstat (limited to 'src/DotNetOAuth/Consumer.cs')
-rw-r--r-- | src/DotNetOAuth/Consumer.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/DotNetOAuth/Consumer.cs b/src/DotNetOAuth/Consumer.cs index c3b34f3..2d9355e 100644 --- a/src/DotNetOAuth/Consumer.cs +++ b/src/DotNetOAuth/Consumer.cs @@ -21,7 +21,7 @@ namespace DotNetOAuth { /// </summary>
/// <param name="endpoints">The endpoints on the Service Provider.</param>
/// <param name="tokenManager">The host's method of storing and recalling tokens and secrets.</param>
- public Consumer(ServiceProviderEndpoints endpoints, ITokenManager tokenManager) {
+ internal Consumer(ServiceProviderEndpoints endpoints, ITokenManager tokenManager, params ITamperProtectionChannelBindingElement[] signingElements) {
if (endpoints == null) {
throw new ArgumentNullException("endpoints");
}
@@ -30,10 +30,7 @@ namespace DotNetOAuth { }
this.WebRequestHandler = new StandardWebRequestHandler();
- ITamperProtectionChannelBindingElement signingElement = new SigningBindingElementChain(new ITamperProtectionChannelBindingElement[] {
- new PlainTextSigningBindingElement(),
- new HmacSha1SigningBindingElement(),
- });
+ ITamperProtectionChannelBindingElement signingElement = new SigningBindingElementChain(signingElements);
INonceStore store = new NonceMemoryStore(StandardExpirationBindingElement.DefaultMaximumMessageAge);
this.Channel = new OAuthChannel(signingElement, store, new OAuthMessageTypeProvider(tokenManager), this.WebRequestHandler);
this.ServiceProvider = endpoints;
|