code: public static NetHttpTransport newTrustedTransport()
        throws GeneralSecurityException, IOException {
      return new NetHttpTransport.Builder().trustCertificates(GoogleUtils.getCertificateTrustStore())
          .build();
    }
docs: Returns a new instance of {@link NetHttpTransport} that uses
  {@link GoogleUtils#getCertificateTrustStore()} for the trusted certificates using
  {@link com.google.api.client.http.javanet.NetHttpTransport.Builder#trustCertificates(KeyStore)}
  .
  
  <p>
  This helper method doesn't provide for customization of the {@link NetHttpTransport}, such as
  the ability to specify a proxy. To do use, use
  {@link com.google.api.client.http.javanet.NetHttpTransport.Builder}, for example:
  </p>
  
  <pre>
  static HttpTransport newProxyTransport() throws GeneralSecurityException, IOException {
  NetHttpTransport.Builder builder = new NetHttpTransport.Builder();
  builder.trustCertificates(GoogleUtils.getCertificateTrustStore());
  builder.setProxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", 3128)));
  return builder.build();
  }
  </pre>