Example usage for com.google.api.client.googleapis.apache GoogleApacheHttpTransport newTrustedTransport

List of usage examples for com.google.api.client.googleapis.apache GoogleApacheHttpTransport newTrustedTransport

Introduction

In this page you can find the example usage for com.google.api.client.googleapis.apache GoogleApacheHttpTransport newTrustedTransport.

Prototype

public static ApacheHttpTransport newTrustedTransport() throws GeneralSecurityException, IOException 

Source Link

Document

Returns a new instance of ApacheHttpTransport that uses GoogleUtils#getCertificateTrustStore() for the trusted certificates.

Usage

From source file:org.opendatakit.common.utils.tomcat.TomcatHttpClientFactoryImpl.java

License:Apache License

@Override
public HttpTransport getGoogleOAuth2Transport() throws GeneralSecurityException, IOException {
    return GoogleApacheHttpTransport.newTrustedTransport();
}