Class ResponseTypeEqualityComparer
- Namespace
- Duende.IdentityServer.Validation
- Assembly
- Duende.IdentityServer.dll
Compares resource_type strings, where the order of space-delimited values is insignificant.
public class ResponseTypeEqualityComparer : IEqualityComparer<string>
- Inheritance
-
ResponseTypeEqualityComparer
- Implements
- Inherited Members
Remarks
This is to handle the fact that the order of multi-valued response_type lists is insignificant, per the OAuth2 spec and the (OAuth 2.0 Multiple Response Type Encoding Practices draft ).
Constructors
ResponseTypeEqualityComparer()
public ResponseTypeEqualityComparer()
Methods
Equals(string, string)
Determines whether the specified values are equal.
public bool Equals(string x, string y)
Parameters
Returns
- bool
true if the specified values are equal; otherwise, false.
GetHashCode(string)
Returns a hash code for the value.
public int GetHashCode(string value)
Parameters
value
stringThe value for which a hash code is to be returned.
Returns
- int
A hash code for the value, suitable for use in hashing algorithms and data structures like a hash table.