HTTPCLIENT-1364: added default constructor to NTLMScheme
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1489313 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
70e8b48473
commit
eb26f23b3d
|
@ -70,6 +70,13 @@ public class NTLMScheme extends AuthSchemeBase {
|
|||
this.challenge = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public NTLMScheme() {
|
||||
this(new NTLMEngineImpl());
|
||||
}
|
||||
|
||||
public String getSchemeName() {
|
||||
return "ntlm";
|
||||
}
|
||||
|
|
|
@ -46,11 +46,11 @@ import org.apache.http.protocol.HttpContext;
|
|||
public class NTLMSchemeFactory implements AuthSchemeFactory, AuthSchemeProvider {
|
||||
|
||||
public AuthScheme newInstance(final HttpParams params) {
|
||||
return new NTLMScheme(new NTLMEngineImpl());
|
||||
return new NTLMScheme();
|
||||
}
|
||||
|
||||
public AuthScheme create(final HttpContext context) {
|
||||
return new NTLMScheme(new NTLMEngineImpl());
|
||||
return new NTLMScheme();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue