public final class GoogleApacheHttpTransport extends Object
ApacheHttpTransport.| Modifier and Type | Method and Description |
|---|---|
static com.google.api.client.http.apache.v2.ApacheHttpTransport |
newTrustedTransport()
Returns a new instance of
ApacheHttpTransport that uses GoogleUtils.getCertificateTrustStore() for the trusted certificates. |
static com.google.api.client.http.apache.v2.ApacheHttpTransport |
newTrustedTransport(MtlsProvider mtlsProvider)
Beta Returns a new instance of ApacheHttpTransport that uses GoogleUtils.getCertificateTrustStore() for the trusted certificates. mtlsProvider can be used
to configure mutual TLS for the transport. |
public static com.google.api.client.http.apache.v2.ApacheHttpTransport newTrustedTransport()
throws GeneralSecurityException,
IOException
ApacheHttpTransport that uses GoogleUtils.getCertificateTrustStore() 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.GeneralSecurityExceptionIOException@Beta public static com.google.api.client.http.apache.v2.ApacheHttpTransport newTrustedTransport(MtlsProvider mtlsProvider) throws GeneralSecurityException, IOException
Beta ApacheHttpTransport that uses GoogleUtils.getCertificateTrustStore() for the trusted certificates. mtlsProvider can be used
to configure mutual TLS for the transport.mtlsProvider - MtlsProvider to configure mutual TLS for the transportGeneralSecurityExceptionIOExceptionCopyright © 2010–2024 Google. All rights reserved.