summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OAuth2.ResourceServer/OAuth2/IAccessTokenAnalyzer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.OAuth2.ResourceServer/OAuth2/IAccessTokenAnalyzer.cs')
-rw-r--r--src/DotNetOpenAuth.OAuth2.ResourceServer/OAuth2/IAccessTokenAnalyzer.cs28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/DotNetOpenAuth.OAuth2.ResourceServer/OAuth2/IAccessTokenAnalyzer.cs b/src/DotNetOpenAuth.OAuth2.ResourceServer/OAuth2/IAccessTokenAnalyzer.cs
index 9ab37fc..a86b26d 100644
--- a/src/DotNetOpenAuth.OAuth2.ResourceServer/OAuth2/IAccessTokenAnalyzer.cs
+++ b/src/DotNetOpenAuth.OAuth2.ResourceServer/OAuth2/IAccessTokenAnalyzer.cs
@@ -8,7 +8,6 @@ namespace DotNetOpenAuth.OAuth2 {
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
- using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
using DotNetOpenAuth.Messaging;
@@ -18,7 +17,6 @@ namespace DotNetOpenAuth.OAuth2 {
/// An interface that resource server hosts should implement if they accept access tokens
/// issued by non-DotNetOpenAuth authorization servers.
/// </summary>
- [ContractClass((typeof(IAccessTokenAnalyzerContract)))]
public interface IAccessTokenAnalyzer {
/// <summary>
/// Reads an access token to find out what data it authorizes access to.
@@ -29,30 +27,4 @@ namespace DotNetOpenAuth.OAuth2 {
/// <exception cref="ProtocolException">Thrown if the access token is expired, invalid, or from an untrusted authorization server.</exception>
AccessToken DeserializeAccessToken(IDirectedProtocolMessage message, string accessToken);
}
-
- /// <summary>
- /// Code contract for the <see cref="IAccessTokenAnalyzer"/> interface.
- /// </summary>
- [ContractClassFor(typeof(IAccessTokenAnalyzer))]
- internal abstract class IAccessTokenAnalyzerContract : IAccessTokenAnalyzer {
- /// <summary>
- /// Prevents a default instance of the <see cref="IAccessTokenAnalyzerContract"/> class from being created.
- /// </summary>
- private IAccessTokenAnalyzerContract() {
- }
-
- /// <summary>
- /// Reads an access token to find out what data it authorizes access to.
- /// </summary>
- /// <param name="message">The message carrying the access token.</param>
- /// <param name="accessToken">The access token's serialized representation.</param>
- /// <returns>The deserialized, validated token.</returns>
- /// <exception cref="ProtocolException">Thrown if the access token is expired, invalid, or from an untrusted authorization server.</exception>
- AccessToken IAccessTokenAnalyzer.DeserializeAccessToken(IDirectedProtocolMessage message, string accessToken) {
- Requires.NotNull(message, "message");
- Requires.NotNullOrEmpty(accessToken, "accessToken");
- Contract.Ensures(Contract.Result<AccessToken>() != null);
- throw new NotImplementedException();
- }
- }
}