summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth/ChannelElements/ITamperResistantOAuthMessage.cs
blob: a7f9892ac898a4178904345c327b58ac088ffaf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//-----------------------------------------------------------------------
// <copyright file="ITamperResistantOAuthMessage.cs" company="Andrew Arnott">
//     Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOAuth.ChannelElements {
	using System.Collections.Generic;
	using DotNetOAuth.Messaging;
	using DotNetOAuth.Messaging.Bindings;

	/// <summary>
	/// An interface that OAuth messages implement to support signing.
	/// </summary>
	internal interface ITamperResistantOAuthMessage : IDirectedProtocolMessage, ITamperResistantProtocolMessage {
		/// <summary>
		/// Gets or sets the method used to sign the message.
		/// </summary>
		string SignatureMethod { get; set; }

		/// <summary>
		/// Gets or sets the Token Secret used to sign the message.
		/// </summary>
		string TokenSecret { get; set; }

		/// <summary>
		/// Gets or sets the Consumer key.
		/// </summary>
		string ConsumerKey { get; set; }

		/// <summary>
		/// Gets or sets the Consumer Secret used to sign the message.
		/// </summary>
		string ConsumerSecret { get; set; }

		/// <summary>
		/// Gets or sets the HTTP method that will be used to transmit the message.
		/// </summary>
		string HttpMethod { get; set; }

		/// <summary>
		/// Gets or sets the extra, non-OAuth parameters that will be included in the request.
		/// Only applicable to Consumer.
		/// </summary>
		IDictionary<string, string> AdditionalParametersInHttpRequest { get; set; }
	}
}