using System;
using System.Collections.Generic;
using System.Text;
namespace FastReport.Cloud.OAuth
{
///
/// Represents the consumer.
///
public class ConsumerContext
{
#region Fields
private string consumerKey;
private string consumerSecret;
private string signatureMethod;
#endregion // Fields
#region Properties
///
/// Gets the consumer key.
///
public string ConsumerKey
{
get { return consumerKey; }
}
///
/// Gest the consumer secret.
///
public string ConsumerSecret
{
get { return consumerSecret; }
}
///
/// Gets the consumer's signature method.
///
public string SignatureMethod
{
get { return signatureMethod; }
}
#endregion // Properties
#region Constructors
///
/// Initializes a new instance of the class.
///
/// The consumer key.
/// The consumer secret.
public ConsumerContext(string consumerKey, string consumerSecret)
{
this.consumerKey = consumerKey;
this.consumerSecret = consumerSecret;
signatureMethod = OAuth.SignatureMethod.HmacSha1;
}
#endregion // Constructors
}
}