diff options
Diffstat (limited to 'src/DotNetOAuth/Messaging/ITamperProtectionChannelBindingElement.cs')
-rw-r--r-- | src/DotNetOAuth/Messaging/ITamperProtectionChannelBindingElement.cs | 23 |
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; }
+ }
+}
|