//-----------------------------------------------------------------------
//
// Copyright (c) Andrew Arnott. All rights reserved.
//
//-----------------------------------------------------------------------
namespace RelyingPartyLogic {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DotNetOpenAuth.OAuth.ChannelElements;
public class OAuthConsumerTokenManager : OAuthTokenManager, IConsumerTokenManager {
///
/// Initializes a new instance of the class.
///
/// The consumer key.
/// The consumer secret.
public OAuthConsumerTokenManager(string consumerKey, string consumerSecret) {
if (String.IsNullOrEmpty(consumerKey)) {
throw new ArgumentNullException("consumerKey");
}
if (consumerSecret == null) {
throw new ArgumentNullException("consumerSecret");
}
this.ConsumerKey = consumerKey;
this.ConsumerSecret = consumerSecret;
}
#region IConsumerTokenManager Members
///
/// Gets the consumer key.
///
/// The consumer key.
public string ConsumerKey { get; private set; }
///
/// Gets the consumer secret.
///
/// The consumer secret.
public string ConsumerSecret { get; private set; }
#endregion
}
}