summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth/Messaging/ITamperProtectionChannelBindingElement.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-09-27 13:24:47 -0700
committerAndrew <andrewarnott@gmail.com>2008-09-27 13:24:47 -0700
commit92ec674bd52330d4847f75150cd34263336219b6 (patch)
treec72fbbb80e33241603f8de239a99ee995e674d3f /src/DotNetOAuth/Messaging/ITamperProtectionChannelBindingElement.cs
parent452a3bcdbe2028923ba869803c95f7ebb3699610 (diff)
downloadDotNetOpenAuth-92ec674bd52330d4847f75150cd34263336219b6.zip
DotNetOpenAuth-92ec674bd52330d4847f75150cd34263336219b6.tar.gz
DotNetOpenAuth-92ec674bd52330d4847f75150cd34263336219b6.tar.bz2
Added SigningBindingElementChain class to enable the use of several signers based on the situation.
Diffstat (limited to 'src/DotNetOAuth/Messaging/ITamperProtectionChannelBindingElement.cs')
-rw-r--r--src/DotNetOAuth/Messaging/ITamperProtectionChannelBindingElement.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/DotNetOAuth/Messaging/ITamperProtectionChannelBindingElement.cs b/src/DotNetOAuth/Messaging/ITamperProtectionChannelBindingElement.cs
new file mode 100644
index 0000000..40203e9
--- /dev/null
+++ b/src/DotNetOAuth/Messaging/ITamperProtectionChannelBindingElement.cs
@@ -0,0 +1,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; }
+ }
+}