summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth.Test/Mocks/TestSignedDirectedMessage.cs
blob: d4d25365fc7b60fbf93e4b8a836aac970e17f4dd (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
//-----------------------------------------------------------------------
// <copyright file="TestSignedDirectedMessage.cs" company="Andrew Arnott">
//     Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOAuth.Test.Mocks {
	using System.Runtime.Serialization;
	using DotNetOAuth.Messaging;
	using DotNetOAuth.Messaging.Bindings;

	[DataContract(Namespace = Protocol.DataContractNamespaceV10)]
	internal class TestSignedDirectedMessage : TestDirectedMessage, ITamperResistantProtocolMessage {
		internal TestSignedDirectedMessage(MessageTransport transport)
			: base(transport) {
		}

		#region ISignedProtocolMessage Members

		[DataMember]
		public string Signature {
			get;
			set;
		}

		#endregion

		protected override MessageProtection RequiredProtection {
			get { return MessageProtection.TamperProtection; }
		}
	}
}