summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth/ChannelElements/ITokenManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOAuth/ChannelElements/ITokenManager.cs')
-rw-r--r--src/DotNetOAuth/ChannelElements/ITokenManager.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DotNetOAuth/ChannelElements/ITokenManager.cs b/src/DotNetOAuth/ChannelElements/ITokenManager.cs
index 9c61bc4..db1766d 100644
--- a/src/DotNetOAuth/ChannelElements/ITokenManager.cs
+++ b/src/DotNetOAuth/ChannelElements/ITokenManager.cs
@@ -19,6 +19,11 @@ namespace DotNetOAuth.ChannelElements {
/// </summary>
/// <param name="consumerKey">The Consumer Key.</param>
/// <returns>The Consumer Secret.</returns>
+ /// <exception cref="ArgumentException">Thrown if the consumer key cannot be found.</exception>
+ /// <remarks>
+ /// TODO: In the case of RSA hashing, the consumer may not have a secret
+ /// like this. What to do in that case?
+ /// </remarks>
string GetConsumerSecret(string consumerKey);
/// <summary>
@@ -37,6 +42,7 @@ namespace DotNetOAuth.ChannelElements {
/// <param name="requestToken">The token to store.</param>
/// <param name="requestTokenSecret">The secret to store as associated with the request token.</param>
/// <param name="parameters">The optional application-specific parameters of this request.</param>
+ /// <exception cref="ArgumentException">Thrown if the consumer key is not registered, or a required parameter was not found in the parameters collection.</exception>
void StoreNewRequestToken(string consumerKey, string requestToken, string requestTokenSecret, IDictionary<string, string> parameters);
/// <summary>