diff options
Diffstat (limited to 'src/DotNetOAuth/Messaging/IReplayProtectedProtocolMessage.cs')
-rw-r--r-- | src/DotNetOAuth/Messaging/IReplayProtectedProtocolMessage.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/DotNetOAuth/Messaging/IReplayProtectedProtocolMessage.cs b/src/DotNetOAuth/Messaging/IReplayProtectedProtocolMessage.cs new file mode 100644 index 0000000..bc6cd7b --- /dev/null +++ b/src/DotNetOAuth/Messaging/IReplayProtectedProtocolMessage.cs @@ -0,0 +1,23 @@ +//-----------------------------------------------------------------------
+// <copyright file="IReplayProtectedProtocolMessage.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOAuth.Messaging {
+ using System;
+
+ /// <summary>
+ /// The contract a message that has an allowable time window for processing must implement.
+ /// </summary>
+ /// <remarks>
+ /// All replay-protected messages must also be set to expire so the nonces do not have
+ /// to be stored indefinitely.
+ /// </remarks>
+ internal interface IReplayProtectedProtocolMessage : IExpiringProtocolMessage {
+ /// <summary>
+ /// Gets or sets the nonce that will protect the message from replay attacks.
+ /// </summary>
+ string Nonce { get; set; }
+ }
+}
|