File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/main/java/com/ning/http/client Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 18
18
19
19
import static com .ning .http .util .MiscUtil .isNonEmpty ;
20
20
21
- import org .slf4j .Logger ;
22
- import org .slf4j .LoggerFactory ;
23
-
24
21
import java .io .UnsupportedEncodingException ;
25
22
import java .security .MessageDigest ;
26
23
import java .security .NoSuchAlgorithmException ;
27
24
25
+ import com .ning .http .util .MiscUtil ;
26
+
28
27
/**
29
28
* This class is required when authentication is needed. The class support DIGEST and BASIC.
30
29
*/
@@ -260,8 +259,6 @@ public int hashCode() {
260
259
*/
261
260
public static class RealmBuilder {
262
261
263
- private static final Logger logger = LoggerFactory .getLogger (RealmBuilder .class );
264
-
265
262
//
266
263
// Portions of code (newCnonce, newResponse) are highly inspired be Jetty 6 BasicAuthentication.java class.
267
264
// This code is already Apache licenced.
@@ -439,7 +436,7 @@ public RealmBuilder parseWWWAuthenticateHeader(String headerLine) {
439
436
setAlgorithm (match (headerLine , "algorithm" ));
440
437
setOpaque (match (headerLine , "opaque" ));
441
438
setQop (match (headerLine , "qop" ));
442
- if (getNonce () != null && ! getNonce (). equalsIgnoreCase ( "" )) {
439
+ if (isNonEmpty ( getNonce ())) {
443
440
setScheme (AuthScheme .DIGEST );
444
441
} else {
445
442
setScheme (AuthScheme .BASIC );
You can’t perform that action at this time.
0 commit comments