Class HttpJsonConscryptUtils

java.lang.Object
com.google.api.gax.httpjson.HttpJsonConscryptUtils

@InternalApi public class HttpJsonConscryptUtils extends Object
Utility class for creating and configuring NetHttpTransport instances.
  • Method Details

    • configureConscryptSecurityProvider

      public static com.google.api.client.http.javanet.NetHttpTransport.Builder configureConscryptSecurityProvider(com.google.api.client.http.javanet.NetHttpTransport.Builder builder)
      Configures the given NetHttpTransport.Builder with Conscrypt as the security provider by default if Conscrypt is available. Users can customize the NetHttpTransport.Builder to use a different security provider.
      Parameters:
      builder - the NetHttpTransport.Builder to configure
      Returns:
      the configured NetHttpTransport.Builder