2.9.3 (latest) 2.9.2 2.8.1 2.7.2 2.6.0 2.5.1 2.4.1 2.1.2 2.0.1 1.35.2 1.34.1 1.33.4

```java
public final class GoogleApacheHttpTransport
```
Utilities for Google APIs based on ApacheHttpTransport.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> GoogleApacheHttpTransport

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### newTrustedTransport()

```java
public static ApacheHttpTransport newTrustedTransport()
```
Returns a new instance of ApacheHttpTransport that uses default jdk certificates for
the trusted certificates. If `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is set to
"true", and the default client certificate key store from Utils#loadDefaultMtlsKeyStore() is not null, then the transport uses the default client
certificate and is mutual TLS.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.api.client.http.apache.v2.ApacheHttpTransport` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `GeneralSecurityException` |   |
| `IOException` |   |

### newTrustedTransport(MtlsProvider mtlsProvider)

```java
public static ApacheHttpTransport newTrustedTransport(MtlsProvider mtlsProvider)
```
Beta   

Returns a new instance of ApacheHttpTransport that default jdk certs for the trusted
certificates. mtlsProvider can be used to configure mutual TLS for the transport.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `mtlsProvider` | `MtlsProvider` MtlsProvider to configure mutual TLS for the transport |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.api.client.http.apache.v2.ApacheHttpTransport` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `GeneralSecurityException` |   |
| `IOException` |   |