@@ -48,7 +48,6 @@ public class Realm {
48
48
private final boolean usePreemptiveAuth ;
49
49
private final Charset charset ;
50
50
private final String host ;
51
- private final boolean messageType2Received ;
52
51
private final String ntlmDomain ;
53
52
private final boolean useAbsoluteURI ;
54
53
private final boolean omitQuery ;
@@ -60,7 +59,7 @@ public enum AuthScheme {
60
59
61
60
private Realm (AuthScheme scheme , String principal , String password , String realmName , String nonce , String algorithm , String response ,
62
61
String qop , String nc , String cnonce , Uri uri , String method , boolean usePreemptiveAuth , String ntlmDomain , Charset charset ,
63
- String host , boolean messageType2Received , String opaque , boolean useAbsoluteURI , boolean omitQuery , boolean targetProxy ) {
62
+ String host , String opaque , boolean useAbsoluteURI , boolean omitQuery , boolean targetProxy ) {
64
63
65
64
this .principal = principal ;
66
65
this .password = password ;
@@ -78,7 +77,6 @@ private Realm(AuthScheme scheme, String principal, String password, String realm
78
77
this .usePreemptiveAuth = usePreemptiveAuth ;
79
78
this .ntlmDomain = ntlmDomain ;
80
79
this .host = host ;
81
- this .messageType2Received = messageType2Received ;
82
80
this .charset = charset ;
83
81
this .useAbsoluteURI = useAbsoluteURI ;
84
82
this .omitQuery = omitQuery ;
@@ -173,10 +171,6 @@ public String getNtlmHost() {
173
171
return host ;
174
172
}
175
173
176
- public boolean isNtlmMessageType2Received () {
177
- return messageType2Received ;
178
- }
179
-
180
174
public boolean isUseAbsoluteURI () {
181
175
return useAbsoluteURI ;
182
176
}
@@ -275,7 +269,6 @@ public static class RealmBuilder {
275
269
private String ntlmDomain = System .getProperty ("http.auth.ntlm.domain" , "" );
276
270
private Charset charset = UTF_8 ;
277
271
private String host = "localhost" ;
278
- private boolean messageType2Received ;
279
272
private boolean useAbsoluteURI = true ;
280
273
private boolean omitQuery ;
281
274
private boolean targetProxy ;
@@ -415,11 +408,6 @@ public RealmBuilder setUsePreemptiveAuth(boolean usePreemptiveAuth) {
415
408
return this ;
416
409
}
417
410
418
- public RealmBuilder setNtlmMessageType2Received (boolean messageType2Received ) {
419
- this .messageType2Received = messageType2Received ;
420
- return this ;
421
- }
422
-
423
411
public boolean isUseAbsoluteURI () {
424
412
return useAbsoluteURI ;
425
413
}
@@ -494,7 +482,6 @@ public RealmBuilder clone(Realm clone) {
494
482
setUsePreemptiveAuth (clone .getUsePreemptiveAuth ());
495
483
setNtlmDomain (clone .getNtlmDomain ());
496
484
setNtlmHost (clone .getNtlmHost ());
497
- setNtlmMessageType2Received (clone .isNtlmMessageType2Received ());
498
485
setUseAbsoluteURI (clone .isUseAbsoluteURI ());
499
486
setOmitQuery (clone .isOmitQuery ());
500
487
setTargetProxy (clone .isTargetProxy ());
@@ -623,7 +610,7 @@ public Realm build() {
623
610
}
624
611
625
612
return new Realm (scheme , principal , password , realmName , nonce , algorithm , response , qop , nc , cnonce , uri , methodName ,
626
- usePreemptive , ntlmDomain , charset , host , messageType2Received , opaque , useAbsoluteURI , omitQuery , targetProxy );
613
+ usePreemptive , ntlmDomain , charset , host , opaque , useAbsoluteURI , omitQuery , targetProxy );
627
614
}
628
615
}
629
616
}
0 commit comments