diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-04-23 10:05:50 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-04-23 10:05:50 -0700 |
commit | ab27c3ba3075583e95bf95d42e69bc5585f2a37e (patch) | |
tree | c23c9219cdb443e8511e17a102a32ef510724a99 /src/DotNetOpenAuth.OAuth2 | |
parent | bdaa24667d7e1b04174587143e005bb0fd1f5db1 (diff) | |
download | DotNetOpenAuth-ab27c3ba3075583e95bf95d42e69bc5585f2a37e.zip DotNetOpenAuth-ab27c3ba3075583e95bf95d42e69bc5585f2a37e.tar.gz DotNetOpenAuth-ab27c3ba3075583e95bf95d42e69bc5585f2a37e.tar.bz2 |
Fixed build breaks when targeting .NET 3.5.
Diffstat (limited to 'src/DotNetOpenAuth.OAuth2')
4 files changed, 7 insertions, 7 deletions
diff --git a/src/DotNetOpenAuth.OAuth2/OAuth2/IScopeSatisfiedCheck.cs b/src/DotNetOpenAuth.OAuth2/OAuth2/IScopeSatisfiedCheck.cs index c1fe3e4..b1e2372 100644 --- a/src/DotNetOpenAuth.OAuth2/OAuth2/IScopeSatisfiedCheck.cs +++ b/src/DotNetOpenAuth.OAuth2/OAuth2/IScopeSatisfiedCheck.cs @@ -32,6 +32,6 @@ namespace DotNetOpenAuth.OAuth2 { /// </para> /// <para>Great care should be taken in implementing this method as this is a critical security module for the authorization and resource servers.</para> /// </remarks> - bool IsScopeSatisfied(ISet<string> requiredScope, ISet<string> grantedScope); + bool IsScopeSatisfied(HashSet<string> requiredScope, HashSet<string> grantedScope); } } diff --git a/src/DotNetOpenAuth.OAuth2/OAuth2/Messages/UnauthorizedResponse.cs b/src/DotNetOpenAuth.OAuth2/OAuth2/Messages/UnauthorizedResponse.cs index e73f3cf..e4a8a48 100644 --- a/src/DotNetOpenAuth.OAuth2/OAuth2/Messages/UnauthorizedResponse.cs +++ b/src/DotNetOpenAuth.OAuth2/OAuth2/Messages/UnauthorizedResponse.cs @@ -90,7 +90,7 @@ namespace DotNetOpenAuth.OAuth2.Messages { /// </summary> /// <value>The scope.</value> [MessagePart(Protocol.BearerTokenUnauthorizedResponseParameters.Scope, Encoder = typeof(ScopeEncoder))] - public ISet<string> Scope { get; set; } + public HashSet<string> Scope { get; set; } /// <summary> /// Gets the scheme to use in the WWW-Authenticate header. @@ -143,7 +143,7 @@ namespace DotNetOpenAuth.OAuth2.Messages { /// <param name="request">The request.</param> /// <param name="requiredScopes">The set of scopes required to perform this operation.</param> /// <returns>The error message.</returns> - internal static UnauthorizedResponse InsufficientScope(IDirectedProtocolMessage request, ISet<string> requiredScopes) { + internal static UnauthorizedResponse InsufficientScope(IDirectedProtocolMessage request, HashSet<string> requiredScopes) { Requires.NotNull(request, "request"); Requires.NotNull(requiredScopes, "requiredScopes"); var message = new UnauthorizedResponse(request) { diff --git a/src/DotNetOpenAuth.OAuth2/OAuth2/OAuthUtilities.cs b/src/DotNetOpenAuth.OAuth2/OAuth2/OAuthUtilities.cs index 4c46f75..5a4a0d3 100644 --- a/src/DotNetOpenAuth.OAuth2/OAuth2/OAuthUtilities.cs +++ b/src/DotNetOpenAuth.OAuth2/OAuth2/OAuthUtilities.cs @@ -74,7 +74,7 @@ namespace DotNetOpenAuth.OAuth2 { /// </summary> /// <param name="scopes">The scopes to serialize.</param> /// <returns>A space-delimited list.</returns> - public static string JoinScopes(ISet<string> scopes) { + public static string JoinScopes(HashSet<string> scopes) { Requires.NotNull(scopes, "scopes"); VerifyValidScopeTokens(scopes); return string.Join(" ", scopes.ToArray()); @@ -85,7 +85,7 @@ namespace DotNetOpenAuth.OAuth2 { /// </summary> /// <param name="scopes">The space-delimited string.</param> /// <returns>A set.</returns> - internal static ISet<string> ParseScopeSet(string scopes) { + internal static HashSet<string> ParseScopeSet(string scopes) { Requires.NotNull(scopes, "scopes"); return ParseScopeSet(scopes.Split(scopeDelimiter, StringSplitOptions.RemoveEmptyEntries)); } @@ -95,7 +95,7 @@ namespace DotNetOpenAuth.OAuth2 { /// </summary> /// <param name="scopes">The array of strings.</param> /// <returns>A set.</returns> - internal static ISet<string> ParseScopeSet(string[] scopes) { + internal static HashSet<string> ParseScopeSet(string[] scopes) { Requires.NotNull(scopes, "scopes"); return new HashSet<string>(scopes, StringComparer.Ordinal); } diff --git a/src/DotNetOpenAuth.OAuth2/OAuth2/StandardScopeSatisfiedCheck.cs b/src/DotNetOpenAuth.OAuth2/OAuth2/StandardScopeSatisfiedCheck.cs index 1370057..684e4a8 100644 --- a/src/DotNetOpenAuth.OAuth2/OAuth2/StandardScopeSatisfiedCheck.cs +++ b/src/DotNetOpenAuth.OAuth2/OAuth2/StandardScopeSatisfiedCheck.cs @@ -28,7 +28,7 @@ namespace DotNetOpenAuth.OAuth2 { /// </para> /// <para>Great care should be taken in implementing this method as this is a critical security module for the authorization and resource servers.</para> /// </remarks> - public bool IsScopeSatisfied(ISet<string> requiredScope, ISet<string> grantedScope) { + public bool IsScopeSatisfied(HashSet<string> requiredScope, HashSet<string> grantedScope) { Requires.NotNull(requiredScope, "requiredScope"); Requires.NotNull(grantedScope, "grantedScope"); return grantedScope.IsSupersetOf(requiredScope); |