public class HttpJsonConscryptUtilsUtility class for creating and configuring NetHttpTransport instances.
Static Fields
DEFAULT_CONSCRYPT_NAMED_GROUPS
public static final String[] DEFAULT_CONSCRYPT_NAMED_GROUPSDefault 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_groups
ClientHello extension in preference order. The server selects the first group it supports.
For details on Conscrypt's supported TLS algorithms, see Conscrypt CAPABILITIES.md.
| Field Value | |
|---|---|
| Type | Description |
String[] |
|
Static Methods
configureConscryptSecurityProvider(NetHttpTransport.Builder builder)
public static NetHttpTransport.Builder configureConscryptSecurityProvider(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.
| Parameter | |
|---|---|
| Name | Description |
builder |
com.google.api.client.http.javanet.NetHttpTransport.Builderthe NetHttpTransport.Builder to configure |
| Returns | |
|---|---|
| Type | Description |
com.google.api.client.http.javanet.NetHttpTransport.Builder |
the configured NetHttpTransport.Builder |