AbstractNetworkProvider: Expose HttpClient.setTrustAllCertificates() as an API method.

This commit is contained in:
Andreas Schildbach 2018-08-13 11:37:11 +02:00
parent f7c7a9fa38
commit 845e066be8

View file

@ -88,6 +88,11 @@ public abstract class AbstractNetworkProvider implements NetworkProvider {
return this;
}
public AbstractNetworkProvider setTrustAllCertificates(final boolean trustAllCertificates) {
httpClient.setTrustAllCertificates(trustAllCertificates);
return this;
}
protected AbstractNetworkProvider setRequestUrlEncoding(final Charset requestUrlEncoding) {
this.requestUrlEncoding = requestUrlEncoding;
return this;