From 4de06fa99a27775600d8e011f5884b756ce148b6 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 24 Jun 2014 14:40:34 +0900 Subject: [PATCH] Refactored HttpDigestIdentity.cs --- websocket-sharp/Net/HttpDigestIdentity.cs | 24 +++++++++++------------ 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/websocket-sharp/Net/HttpDigestIdentity.cs b/websocket-sharp/Net/HttpDigestIdentity.cs index 7e994f2f..3914369d 100644 --- a/websocket-sharp/Net/HttpDigestIdentity.cs +++ b/websocket-sharp/Net/HttpDigestIdentity.cs @@ -33,8 +33,7 @@ using System.Security.Principal; namespace WebSocketSharp.Net { /// - /// Holds the user name and other authentication parameters from an HTTP Digest - /// authentication request. + /// Holds the user name and other parameters from the HTTP Digest authentication credentials. /// public class HttpDigestIdentity : GenericIdentity { @@ -57,7 +56,7 @@ namespace WebSocketSharp.Net #region Public Properties /// - /// Gets the algorithm parameter from an HTTP Digest authentication request. + /// Gets the algorithm parameter from the HTTP Digest authentication credentials. /// /// /// A that represents the algorithm parameter. @@ -69,7 +68,7 @@ namespace WebSocketSharp.Net } /// - /// Gets the cnonce parameter from an HTTP Digest authentication request. + /// Gets the cnonce parameter from the HTTP Digest authentication credentials. /// /// /// A that represents the cnonce parameter. @@ -81,7 +80,7 @@ namespace WebSocketSharp.Net } /// - /// Gets the nc parameter from an HTTP Digest authentication request. + /// Gets the nc parameter from the HTTP Digest authentication credentials. /// /// /// A that represents the nc parameter. @@ -93,7 +92,7 @@ namespace WebSocketSharp.Net } /// - /// Gets the nonce parameter from an HTTP Digest authentication request. + /// Gets the nonce parameter from the HTTP Digest authentication credentials. /// /// /// A that represents the nonce parameter. @@ -105,7 +104,7 @@ namespace WebSocketSharp.Net } /// - /// Gets the opaque parameter from an HTTP Digest authentication request. + /// Gets the opaque parameter from the HTTP Digest authentication credentials. /// /// /// A that represents the opaque parameter. @@ -117,7 +116,7 @@ namespace WebSocketSharp.Net } /// - /// Gets the qop parameter from an HTTP Digest authentication request. + /// Gets the qop parameter from the HTTP Digest authentication credentials. /// /// /// A that represents the qop parameter. @@ -129,7 +128,7 @@ namespace WebSocketSharp.Net } /// - /// Gets the realm parameter from an HTTP Digest authentication request. + /// Gets the realm parameter from the HTTP Digest authentication credentials. /// /// /// A that represents the realm parameter. @@ -141,7 +140,7 @@ namespace WebSocketSharp.Net } /// - /// Gets the response parameter from an HTTP Digest authentication request. + /// Gets the response parameter from the HTTP Digest authentication credentials. /// /// /// A that represents the response parameter. @@ -153,7 +152,7 @@ namespace WebSocketSharp.Net } /// - /// Gets the uri parameter from an HTTP Digest authentication request. + /// Gets the uri parameter from the HTTP Digest authentication credentials. /// /// /// A that represents the uri parameter. @@ -168,8 +167,7 @@ namespace WebSocketSharp.Net #region Internal Methods - internal bool IsValid ( - string password, string realm, string method, string entity) + internal bool IsValid (string password, string realm, string method, string entity) { var parameters = new NameValueCollection (_params); parameters ["password"] = password;