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.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]Default TLS 1.3 named groups configured when Conscrypt security provider is present, organized in client preference order: Standard ML-KEM algorithms: Prioritized first for quantum resistance. -
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.
-
Field Details
-
DEFAULT_CONSCRYPT_NAMED_GROUPS
Default TLS 1.3 named groups configured when Conscrypt security provider is present, organized in client preference order:- Standard ML-KEM algorithms: Prioritized first for quantum resistance.
- Draft Kyber algorithms: Retained as a fallback for legacy draft PQC deployments.
- Classical curves: Fallback for endpoints without PQC support.
In TLS 1.3, the client offers key exchange groups via the
supported_groupsClientHello extension in preference order. The server selects the first group it supports.For details on Conscrypt's supported TLS algorithms, see Conscrypt CAPABILITIES.md.
-
-
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
-