diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-11-03 17:22:00 -0800 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-11-04 08:12:52 -0800 |
commit | 462e19abd9034c11a12cad30e9899740f2bef8ff (patch) | |
tree | e08667f1d69249f8daa6c348a919bd0fd5434415 /src/DotNetOAuth/OAuth/ChannelElements/ITokenGenerator.cs | |
parent | 6a79be0eca3929d8fb4e797799dac8d6f7875475 (diff) | |
download | DotNetOpenAuth-462e19abd9034c11a12cad30e9899740f2bef8ff.zip DotNetOpenAuth-462e19abd9034c11a12cad30e9899740f2bef8ff.tar.gz DotNetOpenAuth-462e19abd9034c11a12cad30e9899740f2bef8ff.tar.bz2 |
Changed namepace and project names in preparation for merge with DotNetOpenId.
Diffstat (limited to 'src/DotNetOAuth/OAuth/ChannelElements/ITokenGenerator.cs')
-rw-r--r-- | src/DotNetOAuth/OAuth/ChannelElements/ITokenGenerator.cs | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/DotNetOAuth/OAuth/ChannelElements/ITokenGenerator.cs b/src/DotNetOAuth/OAuth/ChannelElements/ITokenGenerator.cs deleted file mode 100644 index 888ba05..0000000 --- a/src/DotNetOAuth/OAuth/ChannelElements/ITokenGenerator.cs +++ /dev/null @@ -1,40 +0,0 @@ -//-----------------------------------------------------------------------
-// <copyright file="ITokenGenerator.cs" company="Andrew Arnott">
-// Copyright (c) Andrew Arnott. All rights reserved.
-// </copyright>
-//-----------------------------------------------------------------------
-
-namespace DotNetOAuth.OAuth.ChannelElements {
- /// <summary>
- /// An interface allowing OAuth hosts to inject their own algorithm for generating tokens and secrets.
- /// </summary>
- public interface ITokenGenerator {
- /// <summary>
- /// Generates a new token to represent a not-yet-authorized request to access protected resources.
- /// </summary>
- /// <param name="consumerKey">The consumer that requested this token.</param>
- /// <returns>The newly generated token.</returns>
- /// <remarks>
- /// This method should not store the newly generated token in any persistent store.
- /// This will be done in <see cref="ITokenManager.StoreNewRequestToken"/>.
- /// </remarks>
- string GenerateRequestToken(string consumerKey);
-
- /// <summary>
- /// Generates a new token to represent an authorized request to access protected resources.
- /// </summary>
- /// <param name="consumerKey">The consumer that requested this token.</param>
- /// <returns>The newly generated token.</returns>
- /// <remarks>
- /// This method should not store the newly generated token in any persistent store.
- /// This will be done in <see cref="ITokenManager.ExpireRequestTokenAndStoreNewAccessToken"/>.
- /// </remarks>
- string GenerateAccessToken(string consumerKey);
-
- /// <summary>
- /// Returns a cryptographically strong random string for use as a token secret.
- /// </summary>
- /// <returns>The generated string.</returns>
- string GenerateSecret();
- }
-}
|