mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-17 07:26:47 +00:00
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 NTLMScheme(final NTLMEngine engine) {
|
||||
this.challenge = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public NTLMScheme() {
|
||||
this(new NTLMEngineImpl());
|
||||
}
|
||||
|
||||
public String getSchemeName() {
|
||||
return "ntlm";
|
||||
}
|
||||
|
@ -46,11 +46,11 @@
|
||||
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…
x
Reference in New Issue
Block a user