diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-09-28 21:27:10 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-09-28 21:27:10 -0700 |
commit | 4fda6b32d3c91027b07cdb31147332b6626f02c1 (patch) | |
tree | 7233952875eb7b2f185f1ee95590dab90763d5be /src/DotNetOAuth/ServiceProvider.cs | |
parent | b498b5e53e166228c008ec94bee862d174bb61de (diff) | |
download | DotNetOpenAuth-4fda6b32d3c91027b07cdb31147332b6626f02c1.zip DotNetOpenAuth-4fda6b32d3c91027b07cdb31147332b6626f02c1.tar.gz DotNetOpenAuth-4fda6b32d3c91027b07cdb31147332b6626f02c1.tar.bz2 |
Refactored ServiceProviderEndpoints into ServiceProviderDescription and made several classes and interfaces public.
Diffstat (limited to 'src/DotNetOAuth/ServiceProvider.cs')
-rw-r--r-- | src/DotNetOAuth/ServiceProvider.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/DotNetOAuth/ServiceProvider.cs b/src/DotNetOAuth/ServiceProvider.cs index ad629a3..778f9df 100644 --- a/src/DotNetOAuth/ServiceProvider.cs +++ b/src/DotNetOAuth/ServiceProvider.cs @@ -28,29 +28,29 @@ namespace DotNetOAuth { /// <summary>
/// Initializes a new instance of the <see cref="ServiceProvider"/> class.
/// </summary>
- /// <param name="endpoints">The endpoints on the Service Provider.</param>
+ /// <param name="serviceDescription">The endpoints and behavior on the Service Provider.</param>
/// <param name="tokenManager">The host's method of storing and recalling tokens and secrets.</param>
- internal ServiceProvider(ServiceProviderEndpoints endpoints, ITokenManager tokenManager, params ITamperProtectionChannelBindingElement[] signingElements) {
- if (endpoints == null) {
- throw new ArgumentNullException("endpoints");
+ internal ServiceProvider(ServiceProviderDescription serviceDescription, ITokenManager tokenManager) {
+ if (serviceDescription == null) {
+ throw new ArgumentNullException("serviceDescription");
}
if (tokenManager == null) {
throw new ArgumentNullException("tokenManager");
}
- ITamperProtectionChannelBindingElement signingElement = new SigningBindingElementChain(signingElements);
+ var signingElement = serviceDescription.CreateTamperProtectionElement();
signingElement.SignatureVerificationCallback = this.TokenSignatureVerificationCallback;
INonceStore store = new NonceMemoryStore(StandardExpirationBindingElement.DefaultMaximumMessageAge);
- this.Endpoints = endpoints;
+ this.Description = serviceDescription;
this.Channel = new OAuthChannel(signingElement, store, tokenManager);
this.TokenGenerator = new StandardTokenGenerator();
this.TokenManager = tokenManager;
}
/// <summary>
- /// Gets the endpoints exposed by this Service Provider.
+ /// Gets the description of this Service Provider.
/// </summary>
- public ServiceProviderEndpoints Endpoints { get; private set; }
+ public ServiceProviderDescription Description { get; private set; }
/// <summary>
/// Gets the pending user agent redirect based message to be sent as an HttpResponse.
|