Skip to content

Implement JDK PQC availability detection#6244

Open
anavarr wants to merge 1 commit into
eclipse-vertx:masterfrom
anavarr:pqc_jdk
Open

Implement JDK PQC availability detection#6244
anavarr wants to merge 1 commit into
eclipse-vertx:masterfrom
anavarr:pqc_jdk

Conversation

@anavarr

@anavarr anavarr commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #6236.

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).

@vietj vietj added this to the 5.1.6 milestone Jul 13, 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.

2 participants