Skip to content

Implement JDK PQC availability detection#6245

Open
anavarr wants to merge 1 commit into
eclipse-vertx:4.xfrom
anavarr:4.x_pqc_jdk
Open

Implement JDK PQC availability detection#6245
anavarr wants to merge 1 commit into
eclipse-vertx:4.xfrom
anavarr:4.x_pqc_jdk

Conversation

@anavarr

@anavarr anavarr commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Port #6244 to 4.x

JdkSSLEngineOptions.isPqcAvailable() was hardcoded to false. This PR implements the actual detection using the multi-release JAR pattern already in place:

Base implementation (< JDK 21): returns false
JDK 21+ implementation: checks SSLParameters.getNamedGroups() for the presence of at least one PQ-compliant group (X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024)
JdkSSLEngineOptions.isPqcAvailable() now delegates to JdkDependent.isPqcAvailable(), meaning STRICT and CLIENT_NEGOTIATED enforcement policies will automatically auto-select the JDK engine for PQC once a supporting JDK is available (expected JDK 25 backport, October 2026).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant