Package | Description |
---|---|
com.google.api.client.http.apache |
HTTP Transport library for Google API's based on Apache HTTP Client version 4.
|
Modifier and Type | Method and Description |
---|---|
ApacheHttpTransport.Builder |
ApacheHttpTransport.Builder.doNotValidateCertificate()
Beta Disables validating server SSL certificates by setting the SSL socket factory using SslUtils.trustAllSSLContext() for the SSL context and SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER for the host name verifier. |
ApacheHttpTransport.Builder |
ApacheHttpTransport.Builder.setProxy(org.apache.http.HttpHost proxy)
Sets the HTTP proxy to use
DefaultHttpRoutePlanner or null to use setProxySelector(ProxySelector) with ProxySelector.getDefault() . |
ApacheHttpTransport.Builder |
ApacheHttpTransport.Builder.setProxySelector(ProxySelector proxySelector)
Sets the HTTP proxy selector to use
ProxySelectorRoutePlanner or null for
DefaultHttpRoutePlanner . |
ApacheHttpTransport.Builder |
ApacheHttpTransport.Builder.setSocketFactory(org.apache.http.conn.ssl.SSLSocketFactory socketFactory)
Sets the SSL socket factory (
SSLSocketFactory.getSocketFactory() by default). |
ApacheHttpTransport.Builder |
ApacheHttpTransport.Builder.trustCertificates(KeyStore trustStore)
Sets the SSL socket factory based on a root certificate trust store.
|
ApacheHttpTransport.Builder |
ApacheHttpTransport.Builder.trustCertificatesFromJavaKeyStore(InputStream keyStoreStream,
String storePass)
Sets the SSL socket factory based on root certificates in a Java KeyStore.
|
ApacheHttpTransport.Builder |
ApacheHttpTransport.Builder.trustCertificatesFromStream(InputStream certificateStream)
Sets the SSL socket factory based root certificates generated from the specified stream using
CertificateFactory.generateCertificates(InputStream) . |
Copyright © 2011–2021 Google. All rights reserved.