Skip to content

Commit

Permalink
Note that X509HostnameVerifier is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite committed Jul 28, 2020
1 parent 6a71572 commit 835445b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpPut;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.conn.ssl.X509HostnameVerifier;
import org.apache.http.impl.client.BasicCredentialsProvider;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.client.SystemDefaultCredentialsProvider;
Expand Down Expand Up @@ -127,7 +126,8 @@ public class PreemptiveAuthHttpClientConnection implements HttpConnection {

private Boolean followRedirects;

private X509HostnameVerifier hostnameverifier;
@Deprecated
private org.apache.http.conn.ssl.X509HostnameVerifier hostnameverifier;

SSLContext ctx;

Expand Down Expand Up @@ -434,7 +434,8 @@ public void setHostnameVerifier(final HostnameVerifier hostnameverifier) {
this.hostnameverifier = new X509HostnameVerifierImpl(hostnameverifier);
}

private static class X509HostnameVerifierImpl implements X509HostnameVerifier {
@Deprecated
private static class X509HostnameVerifierImpl implements org.apache.http.conn.ssl.X509HostnameVerifier {

private final HostnameVerifier hostnameverifier;

Expand Down

0 comments on commit 835445b

Please sign in to comment.