From a4fe878a8ec8fcf664a165e0d1ed264923faf7a1 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 1 Jul 2014 17:57:28 +0900 Subject: [PATCH] Moved some properties to AuthenticationBase class --- websocket-sharp/Net/AuthenticationBase.cs | 30 +++++++++++++++++++ .../Net/AuthenticationChallenge.cs | 30 ------------------- websocket-sharp/Net/AuthenticationResponse.cs | 30 ------------------- 3 files changed, 30 insertions(+), 60 deletions(-) diff --git a/websocket-sharp/Net/AuthenticationBase.cs b/websocket-sharp/Net/AuthenticationBase.cs index 8f688c64..1d08612e 100644 --- a/websocket-sharp/Net/AuthenticationBase.cs +++ b/websocket-sharp/Net/AuthenticationBase.cs @@ -58,6 +58,36 @@ namespace WebSocketSharp.Net #region Public Properties + public string Algorithm { + get { + return Parameters["algorithm"]; + } + } + + public string Nonce { + get { + return Parameters["nonce"]; + } + } + + public string Opaque { + get { + return Parameters["opaque"]; + } + } + + public string Qop { + get { + return Parameters["qop"]; + } + } + + public string Realm { + get { + return Parameters["realm"]; + } + } + public AuthenticationSchemes Scheme { get { return _scheme; diff --git a/websocket-sharp/Net/AuthenticationChallenge.cs b/websocket-sharp/Net/AuthenticationChallenge.cs index 618afa0d..7daaac52 100644 --- a/websocket-sharp/Net/AuthenticationChallenge.cs +++ b/websocket-sharp/Net/AuthenticationChallenge.cs @@ -60,42 +60,12 @@ namespace WebSocketSharp.Net #region Public Properties - public string Algorithm { - get { - return Parameters["algorithm"]; - } - } - public string Domain { get { return Parameters["domain"]; } } - public string Nonce { - get { - return Parameters["nonce"]; - } - } - - public string Opaque { - get { - return Parameters["opaque"]; - } - } - - public string Qop { - get { - return Parameters["qop"]; - } - } - - public string Realm { - get { - return Parameters["realm"]; - } - } - public string Stale { get { return Parameters["stale"]; diff --git a/websocket-sharp/Net/AuthenticationResponse.cs b/websocket-sharp/Net/AuthenticationResponse.cs index 7e9e6417..671c487d 100644 --- a/websocket-sharp/Net/AuthenticationResponse.cs +++ b/websocket-sharp/Net/AuthenticationResponse.cs @@ -99,12 +99,6 @@ namespace WebSocketSharp.Net #region Public Properties - public string Algorithm { - get { - return Parameters["algorithm"]; - } - } - public string Cnonce { get { return Parameters["cnonce"]; @@ -117,36 +111,12 @@ namespace WebSocketSharp.Net } } - public string Nonce { - get { - return Parameters["nonce"]; - } - } - - public string Opaque { - get { - return Parameters["opaque"]; - } - } - public string Password { get { return Parameters["password"]; } } - public string Qop { - get { - return Parameters["qop"]; - } - } - - public string Realm { - get { - return Parameters["realm"]; - } - } - public string Response { get { return Parameters["response"];