Skip to content

Commit

Permalink
NTLM scheme deprecated and disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ok2c committed Aug 12, 2023
1 parent 8aa4fbc commit 83c6079
Show file tree
Hide file tree
Showing 40 changed files with 72 additions and 1,238 deletions.
1 change: 0 additions & 1 deletion BUILDING.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ The JAR packages can be found in the target folders of their respective modules
httpclient5/target/httpclient5-<VERSION>.jar
httpclient5-cache/target/httpclient5-cache-<VERSION>.jar
httpclient5-fluent/target/httpclient5-fluent-<VERSION>.jar
httpclient5-win/target/httpclient5-win-<VERSION>.jar
httpclient5-osgi/target/org.apache.httpcomponents.httpclient_<VERSION>.jar

where <VERSION> is the release version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

@SuppressWarnings("deprecation")
public class TestByteArrayCacheEntrySerializer {

private ByteArrayCacheEntrySerializer impl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import org.apache.hc.client5.http.auth.AuthScope;
import org.apache.hc.client5.http.auth.Credentials;
import org.apache.hc.client5.http.auth.CredentialsStore;
import org.apache.hc.client5.http.auth.NTCredentials;
import org.apache.hc.client5.http.auth.UsernamePasswordCredentials;
import org.apache.hc.client5.http.config.ConnectionConfig;
import org.apache.hc.client5.http.cookie.CookieStore;
Expand Down Expand Up @@ -186,10 +185,14 @@ public Executor auth(final HttpHost host,
return auth(host, new UsernamePasswordCredentials(username, password));
}

/**
* @deprecated Use {@link #auth(HttpHost, String, char[])}.
*/
@Deprecated
public Executor auth(final HttpHost host,
final String username, final char[] password,
final String workstation, final String domain) {
return auth(host, new NTCredentials(username, password, workstation, domain));
return auth(host, new org.apache.hc.client5.http.auth.NTCredentials(username, password, workstation, domain));
}

public Executor clearAuth() {
Expand Down
5 changes: 0 additions & 5 deletions httpclient5-testing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@
<artifactId>httpclient5-fluent</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5-win</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ protected GSSManager getManager() {

}

@SuppressWarnings("deprecation")
private static class UseJaasCredentials implements Credentials {

@Override
Expand Down
Loading

0 comments on commit 83c6079

Please sign in to comment.