summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth/Messaging/Bindings/INonceStore.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOAuth/Messaging/Bindings/INonceStore.cs')
-rw-r--r--src/DotNetOAuth/Messaging/Bindings/INonceStore.cs37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/DotNetOAuth/Messaging/Bindings/INonceStore.cs b/src/DotNetOAuth/Messaging/Bindings/INonceStore.cs
deleted file mode 100644
index 0ff7e60..0000000
--- a/src/DotNetOAuth/Messaging/Bindings/INonceStore.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-//-----------------------------------------------------------------------
-// <copyright file="INonceStore.cs" company="Andrew Arnott">
-// Copyright (c) Andrew Arnott. All rights reserved.
-// </copyright>
-//-----------------------------------------------------------------------
-
-namespace DotNetOAuth.Messaging.Bindings {
- using System;
-
- /// <summary>
- /// Describes the contract a nonce store must fulfill.
- /// </summary>
- internal interface INonceStore {
- /// <summary>
- /// Stores a given nonce and timestamp.
- /// </summary>
- /// <param name="nonce">
- /// A series of random characters.
- /// </param>
- /// <param name="timestamp">
- /// The timestamp that together with the nonce string make it unique.
- /// The timestamp may also be used by the data store to clear out old nonces.
- /// </param>
- /// <returns>
- /// True if the nonce+timestamp (combination) was not previously in the database.
- /// False if the nonce was stored previously with the same timestamp.
- /// </returns>
- /// <remarks>
- /// The nonce must be stored for no less than the maximum time window a message may
- /// be processed within before being discarded as an expired message.
- /// If the binding element is applicable to your channel, this expiration window
- /// is retrieved or set using the
- /// <see cref="StandardExpirationBindingElement.MaximumMessageAge"/> property.
- /// </remarks>
- bool StoreNonce(string nonce, DateTime timestamp);
- }
-}