Refactored HttpDigestIdentity.cs
This commit is contained in:
parent
746f647eed
commit
4de06fa99a
@ -33,8 +33,7 @@ using System.Security.Principal;
|
|||||||
namespace WebSocketSharp.Net
|
namespace WebSocketSharp.Net
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Holds the user name and other authentication parameters from an HTTP Digest
|
/// Holds the user name and other parameters from the HTTP Digest authentication credentials.
|
||||||
/// authentication request.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class HttpDigestIdentity : GenericIdentity
|
public class HttpDigestIdentity : GenericIdentity
|
||||||
{
|
{
|
||||||
@ -57,7 +56,7 @@ namespace WebSocketSharp.Net
|
|||||||
#region Public Properties
|
#region Public Properties
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the algorithm parameter from an HTTP Digest authentication request.
|
/// Gets the algorithm parameter from the HTTP Digest authentication credentials.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// A <see cref="string"/> that represents the algorithm parameter.
|
/// A <see cref="string"/> that represents the algorithm parameter.
|
||||||
@ -69,7 +68,7 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the cnonce parameter from an HTTP Digest authentication request.
|
/// Gets the cnonce parameter from the HTTP Digest authentication credentials.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// A <see cref="string"/> that represents the cnonce parameter.
|
/// A <see cref="string"/> that represents the cnonce parameter.
|
||||||
@ -81,7 +80,7 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the nc parameter from an HTTP Digest authentication request.
|
/// Gets the nc parameter from the HTTP Digest authentication credentials.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// A <see cref="string"/> that represents the nc parameter.
|
/// A <see cref="string"/> that represents the nc parameter.
|
||||||
@ -93,7 +92,7 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the nonce parameter from an HTTP Digest authentication request.
|
/// Gets the nonce parameter from the HTTP Digest authentication credentials.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// A <see cref="string"/> that represents the nonce parameter.
|
/// A <see cref="string"/> that represents the nonce parameter.
|
||||||
@ -105,7 +104,7 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the opaque parameter from an HTTP Digest authentication request.
|
/// Gets the opaque parameter from the HTTP Digest authentication credentials.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// A <see cref="string"/> that represents the opaque parameter.
|
/// A <see cref="string"/> that represents the opaque parameter.
|
||||||
@ -117,7 +116,7 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the qop parameter from an HTTP Digest authentication request.
|
/// Gets the qop parameter from the HTTP Digest authentication credentials.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// A <see cref="string"/> that represents the qop parameter.
|
/// A <see cref="string"/> that represents the qop parameter.
|
||||||
@ -129,7 +128,7 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the realm parameter from an HTTP Digest authentication request.
|
/// Gets the realm parameter from the HTTP Digest authentication credentials.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// A <see cref="string"/> that represents the realm parameter.
|
/// A <see cref="string"/> that represents the realm parameter.
|
||||||
@ -141,7 +140,7 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the response parameter from an HTTP Digest authentication request.
|
/// Gets the response parameter from the HTTP Digest authentication credentials.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// A <see cref="string"/> that represents the response parameter.
|
/// A <see cref="string"/> that represents the response parameter.
|
||||||
@ -153,7 +152,7 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the uri parameter from an HTTP Digest authentication request.
|
/// Gets the uri parameter from the HTTP Digest authentication credentials.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// A <see cref="string"/> that represents the uri parameter.
|
/// A <see cref="string"/> that represents the uri parameter.
|
||||||
@ -168,8 +167,7 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
#region Internal Methods
|
#region Internal Methods
|
||||||
|
|
||||||
internal bool IsValid (
|
internal bool IsValid (string password, string realm, string method, string entity)
|
||||||
string password, string realm, string method, string entity)
|
|
||||||
{
|
{
|
||||||
var parameters = new NameValueCollection (_params);
|
var parameters = new NameValueCollection (_params);
|
||||||
parameters ["password"] = password;
|
parameters ["password"] = password;
|
||||||
|
Loading…
Reference in New Issue
Block a user