summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth/Messaging/ITamperProtectionChannelBindingElement.cs
blob: 40203e90e7b4fd5c250b3292174bd2dabefaac9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//-----------------------------------------------------------------------
// <copyright file="ITamperProtectionChannelBindingElement.cs" company="Andrew Arnott">
//     Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOAuth.Messaging {
	using System;
	using DotNetOAuth.ChannelElements;

	/// <summary>
	/// An interface that must be implemented by message transforms/validators in order
	/// to be included in the channel stack.
	/// </summary>
	internal interface ITamperProtectionChannelBindingElement : IChannelBindingElement {
		/// <summary>
		/// Gets or sets the delegate that will initialize the non-serialized properties necessary on a signed
		/// message so that its signature can be correctly calculated for verification.
		/// May be null for Consumers (who never have to verify signatures).
		/// </summary>
		Action<ITamperResistantOAuthMessage> SignatureVerificationCallback { get; set; }
	}
}