summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth/ServiceProvider.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOAuth/ServiceProvider.cs')
-rw-r--r--src/DotNetOAuth/ServiceProvider.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/DotNetOAuth/ServiceProvider.cs b/src/DotNetOAuth/ServiceProvider.cs
index 6f5c2c4..ad629a3 100644
--- a/src/DotNetOAuth/ServiceProvider.cs
+++ b/src/DotNetOAuth/ServiceProvider.cs
@@ -30,7 +30,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 ServiceProvider(ServiceProviderEndpoints endpoints, ITokenManager tokenManager) {
+ internal ServiceProvider(ServiceProviderEndpoints endpoints, ITokenManager tokenManager, params ITamperProtectionChannelBindingElement[] signingElements) {
if (endpoints == null) {
throw new ArgumentNullException("endpoints");
}
@@ -38,10 +38,7 @@ namespace DotNetOAuth {
throw new ArgumentNullException("tokenManager");
}
- ITamperProtectionChannelBindingElement signingElement = new SigningBindingElementChain(new ITamperProtectionChannelBindingElement[] {
- new PlainTextSigningBindingElement(),
- new HmacSha1SigningBindingElement(),
- });
+ ITamperProtectionChannelBindingElement signingElement = new SigningBindingElementChain(signingElements);
signingElement.SignatureVerificationCallback = this.TokenSignatureVerificationCallback;
INonceStore store = new NonceMemoryStore(StandardExpirationBindingElement.DefaultMaximumMessageAge);
this.Endpoints = endpoints;