Package com.google.api.gax.httpjson
Class HttpJsonConscryptUtils
java.lang.Object
com.google.api.gax.httpjson.HttpJsonConscryptUtils
Utility class for creating and configuring
NetHttpTransport instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.api.client.http.javanet.NetHttpTransport.BuilderconfigureConscryptSecurityProvider(com.google.api.client.http.javanet.NetHttpTransport.Builder builder) Configures the givenNetHttpTransport.Builderwith Conscrypt as the security provider by default if Conscrypt is available.
-
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 givenNetHttpTransport.Builderwith Conscrypt as the security provider by default if Conscrypt is available. Users can customize theNetHttpTransport.Builderto use a different security provider.- Parameters:
builder- theNetHttpTransport.Builderto configure- Returns:
- the configured
NetHttpTransport.Builder
-