What Java and OpenJDK needs to use post-quantum algorithms

JDK 27 ships ML-KEM and ML-DSA as provider classes and enables hybrid X25519MLKEM768 TLS by default, but older JDK lines and any PQC-only design need additional checks and settings.

On this page

What does a Java or OpenJDK team need before post-quantum algorithms work?

If your team runs Java or OpenJDK and wants post-quantum algorithms, the first thing to establish is which release you are on. In JDK 27, ML-KEM and ML-DSA are provider classes of the JDK itself: ML-KEM is in the SunJCE provider and ML-DSA is in the SUN provider, so no separate library is needed to call them through the standard Java Security APIs. TLS hybrid key exchange is also on by default in JDK 27. The default most preferred named group is X25519MLKEM768, so a TLS connection negotiates that hybrid group whenever the peer also supports it. Check your own environment to confirm that your peers and middleboxes handle it. JEP 527, which adds the hybrid key exchange, is integrated into JDK 27, and early access builds from build 6 include it. Verify the build number you are testing against the release notes before you rely on it.

Earlier releases are a different question. The sources listed on this page do not say what older LTS lines will receive beyond Oracle's stated roadmap. Oracle has said on inside.java that it is working to bring standardized PQC algorithms and PQC-enabled TLS to current Long-Term Support releases, but the sources listed here do not describe the scope, the release lines or the dates. Confirm the specifics with Oracle and with your distributor before planning an LTS upgrade around post-quantum support. The OpenJDK 21u backport of ML-DSA JAR signing needed many adaptations, which is a reminder that backported features may not behave identically across lines.

For security leads, treat this as a readiness fact about what the JDK provides, not as a compliance or certification claim. Having ML-KEM and ML-DSA in a release does not mean a system meets any standard, and the sources listed here do not establish that. Record the exact JDK version, the provider names and the TLS named groups enabled in each environment, and confirm them with Oracle or your vendor for your specific build.

Which JDK release and component provides each requirement

This table compares the JDK releases and components that provide each post-quantum capability, so you can see which release you need before enabling a feature. Read each row against your current JDK version and the source date to confirm what is documented. The main takeaway is that standalone ML-KEM and ML-DSA names are documented from JDK 24, hybrid TLS groups and ML-DSA JAR signing tooling appear in JDK 27, and JDK 21 lacks key backported pieces.

ComponentWhat it supportsSource and date
JDK 27 TLS hybrid groupsSunJSSE hybrid groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024, with X25519MLKEM768 as the default preferred groupJDK 27 JSSE Guide; Quality Outreach heads-up, 2026-05-17
Standalone ML-KEM and ML-DSA providersML-KEM (512, 768, 1024) in SunJCE and ML-DSA (44, 65, 87) in SUN, available as standard algorithm namesJDK 24 Standard Names; JDK 27 Providers and Standard Names
ML-DSA JAR signing toolingjarsigner signs with the ML-DSA signature algorithm in JDK 27, but the TLS signature schemes remain classicalJDK 27 jarsigner page; JDK 27 Standard Names
JDK 24 standard namesDocuments ML-KEM and ML-DSA names for the KEM, Signature, KeyPairGenerator and KeyFactory APIsJDK 24 Standard Names
JDK 21 standard names and signingLacks JDK-8302233 (HSS/LMS keytool and jarsigner changes), and the ML-DSA JAR signing backport needed substantial adaptationOpenJDK pull request 3146, jdk21u-dev
Bouncy Castle alternative in JavaBCJSSE adds ML-KEM-only and hybrid ML-KEM with classical TLS cipher suites, distributed as LTS jars on Maven CentralBC 1.81 Release; BC LTS Page

Which JDK components must be present and configured

A post-quantum setup in Java depends on a few JDK components working together: the TLS implementation, the providers that supply the algorithms, the tools that generate and sign keys, and the security policy file that can block or allow them. Check each one against the JDK release you run, since defaults and availability differ by version.

TLS 1.3 JSSE and named groups

The SunJSSE provider implements TLS 1.3 and decides which key exchange groups a connection may use. JDK 27 lists three hybrid ECDHE-MLKEM groups: X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. By default the most preferred group is X25519MLKEM768, so a connection negotiates the hybrid group whenever the peer supports it. The other two hybrids must be enabled explicitly, through the jdk.tls.namedGroups property or SSLParameters.setNamedGroups. Check the group list in the JSSE guide for your exact release.

JSSE reference guide

SunJCE and SUN providers

The SunJCE provider lists ML-KEM for key encapsulation, and the SUN provider lists ML-DSA for signatures. Both are provider classes shipped in the JDK itself, so no separate library is needed for these algorithms in JDK 27. The standard names specification lists ML-KEM-512, ML-KEM-768 and ML-KEM-1024, and ML-DSA-44, ML-DSA-65 and ML-DSA-87. Confirm which parameter sets your application requests in its code and configuration.

Oracle providers

Keytool and jarsigner

Keytool generates and stores keys and certificates, and jarsigner signs and verifies JAR files. The sources say the default key sizes and signature algorithms follow the key type: RSA defaults to 3072 bits and EC to 384 bits, and jarsigner defaults to SHA-384. The jarsigner page says an ML-DSA key signs with the signature algorithm ML-DSA and a .DSA signature block file. Check whether your signing and verification tools accept that output before relying on it in a release pipeline.

jarsigner manual

The java.security policy file

The java.security file sets the disabled algorithm lists that the JDK enforces. The OpenJDK master file disables SHA-1 handshake signatures, RC4, DES, and several small key sizes, and it lists the providers loaded at startup, including SunJCE and SUN. Check jdk.tls.disabledAlgorithms and jdk.jar.disabledAlgorithms in your deployed file, since a site policy that restricts TLS or signing can block a post-quantum group or signature even when the provider is present.

java.security file

TLS signature schemes stay classical

The JDK 27 standard names list 16 TLS signature schemes, covering ECDSA, EdDSA, and RSA PKCS#1 and RSA-PSS variants. None of them is ML-DSA. A hybrid key exchange therefore changes how keys are agreed, but it does not change how the server proves its identity during the handshake. Certificates and handshake signatures remain classical, so plan any post-quantum signature change as a separate item.

Standard names

How requirements differ between JDK 27, JDK 24 and older lines

JDK 27 is the release where the sources document post-quantum key exchange in the TLS stack. JEP 527 is integrated into JDK 27, and the JSSE guide describes hybrid key exchange schemes under the TLS 1.3 implementation. The release lists ML-KEM and ML-DSA as standard names with the FIPS 203 and FIPS 204 parameter sets, and by default the most preferred named group is the hybrid X25519MLKEM768, so a connection negotiates a hybrid group whenever the peer also supports it.

  • Default hybrid TLS: the JSSE guide says connections negotiate a hybrid named group by default when the peer supports one, with X25519MLKEM768 as the most preferred group.
  • Hybrid groups provided: the SunJSSE provider lists X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. Groups other than the default must be enabled explicitly.
  • Signatures remain classical in TLS: the TLS signature scheme table lists 16 schemes and none is ML-DSA, so certificate signatures in TLS are still classical.
  • CNSA 2.0 names appear: ML-KEM-1024 and ML-DSA-87 are listed as standard names. Their presence does not make the JDK compliant with CNSA 2.0 or any other requirement.
  • Early access timing: the Inside Java post says early access builds from build 6 include JEP 527.

Confirm with the vendor and your own tests which hybrid group your peers negotiate, since the default can differ from what a given client or middlebox accepts. Check the jdk.tls.namedGroups setting in your configuration.

Steps to prepare a Java upgrade for post-quantum algorithms

This sequence confirms that the JDK you run includes the post-quantum providers, that the hybrid key exchange groups are set on purpose, that no disabled-algorithm or key-size setting blocks them, and that older peers still complete a handshake. Each step ends with a check you can record as evidence before you move to the next one.

  1. Confirm the JDK release and build line

    Start by recording the exact JDK release and build number your runtime reports, using the java -version command on each host and container image. The JDK 27 documentation says the hybrid key exchange is integrated into JDK 27, and early access builds from build 6 include it, so check your build number against the release notes for your build line. JDK 24 already documents standalone ML-KEM and ML-DSA, but the hybrid TLS groups described here are documented for JDK 27, so an older build will not offer them. Your release is confirmed when the inventory lists the vendor, version and build for every runtime in scope. If you run an LTS release, check the Inside Java post on post-quantum support in LTS releases, and ask your Java vendor whether a backport is planned for your line.

  2. Check the provider names in a provider listing

    Run a short program or the jshell tool that lists the security providers, and confirm that SunJCE contains ML-KEM and that the SUN provider contains ML-DSA, using the names from the JDK 27 standard names specification. Also confirm that SunJSSE lists the three hybrid groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. Record the output of the listing next to the build number from the previous step. If a name is missing, the runtime does not provide that algorithm, whatever the release notes say, so the check fails and the upgrade stops here. Some vendors add post-quantum providers as separate products, such as Oracle Jipher, which is a separate Oracle product and not part of the JDK, so note any extra provider you depend on.

  3. Set jdk.tls.namedGroups or setNamedGroups deliberately

    Decide which key exchange groups your service offers, and set them with either the jdk.tls.namedGroups system property or SSLParameters.setNamedGroups in code. The property takes a quoted, comma-separated list in preference order, and if it is undefined or empty the JDK defaults apply. The JDK 27 guide says the default most preferred group is X25519MLKEM768, so a client that does not set the property will offer the hybrid group whenever the peer supports it. Do not rely on that default without reading it: name the groups you want, keep the classical groups you still need for peers that lack hybrid support, and write the chosen list into your configuration. The check is a handshake log or a packet capture showing the group that was negotiated with a test peer, matching the list you set.

  4. Review disabled algorithms and key-size limits

    Open the java.security file that your runtime loads, and read jdk.tls.disabledAlgorithms, jdk.certpath.disabledAlgorithms and jdk.jar.disabledAlgorithms. The defaults on the OpenJDK master branch disable SSLv3, TLSv1, TLSv1.1, RC4, DES, 3DES_EDE_CBC, MD5withRSA, SHA-1 handshake signatures and RSA, DSA and EC keys below the listed sizes, and these can block a negotiation or a certificate chain. Also check the keytool and jarsigner defaults that matter for new keys and signatures, because the JDK 27 pages document the default key sizes and digest algorithms. Confirm that no local override removes a group or key type you intend to use. The check is a clean run of the test handshake and a recorded copy of the effective security properties, produced with the Security.getProperty call or by reading the file in use.

  5. Test a handshake with an older peer

    Before you change production, run a handshake from the upgraded JDK to an older client or server that does not offer hybrid groups, and a second handshake from that peer to your upgraded service. Record which group and protocol each side negotiated, and check that the connection completes with the classical groups when no hybrid is available. The JDK 27 guide says the client offers both a hybrid key share and a classical x25519 key share in the Quality Outreach heads-up, so test whether your middleboxes, load balancers or inspection tools handle the larger key shares. The check is a passing test for each older peer type, recorded with the negotiated group and any failure messages, and a list of the peers you could not test yet. Do not move to production until every peer on that list has been tested or accepted as an open risk by the owner.

Where the JDK 27 TLS hybrid group is chosen during a handshake

The diagram follows one TLS 1.3 handshake between a Java client and a server running JDK 27. The client offers an X25519MLKEM768 hybrid key share together with a classical x25519 key share, as the OpenJDK heads-up describes. If the server's enabled groups and the peer both support the hybrid group, it is selected, since it is the default most preferred group in JDK 27. If the peer does not offer it, the handshake falls back to a classical group such as x25519. Check that the hybrid group is enabled on both sides and that the peer actually offers it before assuming a hybrid exchange took place.

Illustrative TLS 1.3 handshake flow based on the sources, not a packet capture.

What the sources do not say and what to ask Oracle or the project

The sources listed on this page give partial answers on Java post-quantum support. The four points below are not settled by them, so each needs a direct answer from Oracle or the OpenJDK project before you plan an upgrade or record a vendor position.

Hybrid TLS and standalone algorithms in older LTS releases

Oracle stated on 2026-08-07 that it is working toward bringing standardized PQC algorithms and PQC-enabled TLS to current Long-Term Support releases. The sources do not say which LTS releases will receive hybrid TLS key exchange or the standalone ML-KEM and ML-DSA providers, or on what dates. Ask Oracle, in writing, which LTS lines are in scope, whether the standalone algorithms and hybrid TLS groups are included for each, and the target release for each. Record the answer against your own Java release versions.

LTS PQC notice

ML-DSA as a TLS signature scheme

The JDK 27 Standard Names specification lists ML-DSA for the Signature, KeyPairGenerator and KeyFactory APIs, but its TLS signature scheme table lists 16 schemes and none of them is ML-DSA. The sources do not say whether ML-DSA is planned as a TLS signature scheme or when. Ask Oracle whether ML-DSA will be negotiated in TLS 1.3 handshakes, in which releases, and whether certificate chains using ML-DSA are supported. Until that answer is in writing, treat TLS server and client authentication as classical.

JDK 27 standard names

Brotli and zstd certificate compression

The JDK 27 JSSE guide says the brotli and zstd certificate compression algorithms are not supported. The sources do not say whether Oracle plans to add them, which would matter because larger post-quantum certificates and handshake messages increase the data sent during a TLS handshake. Ask Oracle whether certificate compression is on the roadmap, which algorithms it would cover, and in which release. Include the question in any sizing review for handshake overhead.

JSSE reference guide

Default jdk.tls.keyLimits for ChaCha20

The JDK 27 JSSE guide gives the jdk.tls.keyLimits default for AES/GCM/NoPadding as KeyUpdate 2^37. The ChaCha20-Poly1305 entry is not clearly stated in the extracted text, so the default for ChaCha20 is not confirmed here. Ask Oracle to confirm the exact default value for ChaCha20-Poly1305 in JDK 27 and in the LTS releases you run. Check the value in the java.security or runtime configuration on your own systems rather than assuming it.

JSSE reference guide

What can break or silently fall back to classical algorithms

The main risk in Java TLS is that a connection completes with a classical key exchange even though the team expected a post-quantum one. Hybrid groups other than the default must be enabled explicitly. The JDK 27 JSSE guide's default preference puts X25519MLKEM768 first, but the examples in the guide show a client preferring secp256r1 and x25519 while also enabling SecP256r1MLKEM768, so a secp256r1-only or x25519-only group list in your own configuration will never negotiate a hybrid. Setting jdk.tls.namedGroups replaces the defaults entirely when it is defined and non-empty, so a list that omits the hybrid groups removes them everywhere. The same applies to SSLParameters.setNamedGroups, which the guide offers as the code-level alternative. Confirm the effective group list at runtime, not only in the file you edited.

Cipher suite settings can also weaken what is negotiated. The JDK 27 JSSE guide says jdk.tls.client.cipherSuites and jdk.tls.server.cipherSuites override the default enabled suites, and cautions that these properties can configure weak suites. Review any value you set against the jdk.tls.disabledAlgorithms list in java.security, which in the OpenJDK master branch file read on 2026-12-03 disables SSLv3, TLSv1, TLSv1.1, RC4, DES, 3DES_EDE_CBC, anonymous and NULL suites, ECDH, and the TLS_RSA_* static key suites, among others. Note that the same file disables the SHA-1 handshake signatures rsa_pkcs1_sha1, ecdsa_sha1 and dsa_sha1. Those disabled-algorithm lists are the baseline you should compare against, not a guarantee of hybrid negotiation.

Peers and middleboxes that lack hybrid support will negotiate a classical group, and the handshake will succeed without any warning in the application. The JDK 27 JSSE guide states that by default the JDK negotiates a hybrid group only when the peer supports it, so an older server, a load balancer or an inspection appliance in the path can silently select x25519 or secp256r1. Test the actual negotiated group against each peer class you depend on. Also keep the classical rules in view: the jdk.certpath.disabledAlgorithms and jdk.jar.disabledAlgorithms lists still reject SHA-1 usage after 2019-01-01, MD5, and RSA or DSA keys under 1024 bits, and the keytool and jarsigner defaults (for example SHA-384 digests and 3072-bit RSA keys) are still classical. Post-quantum key exchange does not change these certificate and signing rules, so an upgrade that only enables hybrid groups leaves them in force.

Questions engineers and vendor-risk reviewers ask about Java post-quantum readiness

Is JDK 27 quantum safe?

JDK 27 does not make a Java application quantum safe on its own, and no product can be called quantum safe as a blanket claim. What JDK 27 supports is specific: ML-KEM (FIPS 203) and ML-DSA (FIPS 204) are listed as standard algorithm names in the SunJCE and SUN providers, and the TLS 1.3 implementation offers hybrid key exchange groups that combine ML-KEM with classical ECDHE, including X25519MLKEM768. Hybrid groups are used by default when the peer also supports them. TLS signature schemes in the JDK 27 standard names remain classical, so certificate authentication is not post-quantum in this release. Confirm the exact scope of any control you need with the vendor and in your own test environment.

Which Java release do I need for post-quantum algorithms?

The standalone ML-KEM and ML-DSA algorithms are documented from JDK 24 onward, and the hybrid TLS key exchange described here is integrated into JDK 27, with early access builds from build 6 including it. Older releases do not ship these hybrid groups in the same form. JDK 21 does not include the HSS/LMS keytool and jarsigner changes from JDK-8302233, and the ML-DSA JAR signing backport to jdk21u required many adaptations. For Long-Term Support releases, Oracle stated on 2026-08-07 that it is executing a strategy to bring standardized PQC algorithms and PQC-enabled TLS to current LTS releases. The sources on this page do not give a specific LTS release date, so confirm the timing and the exact update with Oracle or your distributor before you plan around it.

Does post-quantum support in Java cost extra?

The JDK itself is the base, and the post-quantum algorithms and hybrid TLS groups described here are part of the JDK 27 platform. Oracle Jipher 20 is a separate Oracle product that adds ML-KEM and ML-DSA support, so it carries its own licensing and support terms. Other supplied sources cover Bouncy Castle, whose BCJSSE provider adds ML-KEM-only and hybrid TLS cipher suites in release 1.81, and whose Java LTS jars are mirrored on Maven Central. Costs you should expect to pay for include the upgrade effort, testing, any commercial product you choose, and support contracts. The sources on this page do not give prices, so request written quotes that separate the JDK upgrade from any add-on product, and ask which parts recur each year.

What breaks when I enable post-quantum key exchange in Java?

The main risk is interoperability with peers that do not offer the same groups. The JDK 27 JSSE guide says the default preferred group is X25519MLKEM768 and that connections negotiate a hybrid group whenever the peer supports it, so a peer that supports only classical groups will fall back to classical key exchange. Clients offer both a hybrid key share and a classical x25519 key share, which can increase the size of the TLS handshake. Some middleboxes and older peers may handle larger handshake messages poorly. Cipher suites, named groups and protocol settings are controlled by jdk.tls.namedGroups, jdk.tls.client.cipherSuites, jdk.tls.server.cipherSuites and jdk.tls.client.protocols, and a misconfigured value can weaken or break a connection. Test each service against the peers it actually talks to before changing the default.

What should I ask my Java vendor about post-quantum support?

Ask the vendor to state which Java release, update and edition contain each post-quantum feature, and whether the feature is in the base JDK or in a separate product. Ask which TLS named groups are enabled by default, whether certificate signatures and TLS signature schemes support ML-DSA, and whether any hybrid group needs to be enabled explicitly through jdk.tls.namedGroups or SSLParameters.setNamedGroups. Ask for the dates of planned updates to LTS releases and the support period for each release line. Ask what the vendor will support in writing if an interoperability test fails. Request the answers in writing and date them, because roadmap statements can change.

Can my team do this upgrade alone, or do we need outside help?

Many teams can do the JDK upgrade, configuration and testing with their own engineers, provided they have the time and access to test against every peer their services use. The work usually includes inventorying where Java uses TLS, keystores and signing, moving to a release that includes the hybrid groups, setting and testing named groups and cipher suites, and checking older clients and middleboxes. Outside help is useful when the estate is large, when many services run older releases, or when the team lacks the test coverage. DeployOpen can plan, implement, test and document a Java upgrade inside your own infrastructure, with a written scope agreed before work starts. Ask any provider for a fixed scope and deliverables in writing.

Where do I confirm which Java features rely on RSA or elliptic-curve keys?

Start with the JDK security configuration and your own code. The OpenJDK java.security file on the master branch, read on 2026-12-03, lists jdk.tls.disabledAlgorithms, jdk.certpath.disabledAlgorithms and jdk.jar.disabledAlgorithms, which restrict weak or legacy algorithms such as SHA-1 handshake signatures, DES and RC4 and small RSA, DSA and EC key sizes. Confirm the settings your production JVMs actually use, because distributions and application servers can override them. The default keystore type is pkcs12 and the default key sizes in keytool and jarsigner depend on the key type, so review those defaults against your standards. The sibling topic on RSA and elliptic-curve use covers this inventory in more depth.

How DeployOpen works on this

DeployOpen starts by confirming which Java and OpenJDK releases and providers your estate runs, then maps what each needs before post-quantum algorithms can be enabled. The work covers JDK 27 features, the build and signing steps around them, and the separate Oracle and Bouncy Castle options, with each step written down so your team can check it.

How we scope

  • We confirm which JDK releases, vendor builds and security providers each application runs before any change is proposed.
  • We record which features are in scope, such as hybrid TLS key exchange, ML-KEM and ML-DSA, and which are out of scope in writing.
  • Engagements are fixed-scope, so the deliverables, the systems covered and the acceptance steps are agreed before work starts.

How we build

  • We identify the jdk.tls.namedGroups and SSLParameters settings needed to enable hybrid groups, and test each one in a non-production environment.
  • We check the disabled-algorithm and keystore defaults in java.security, since they can block or change post-quantum negotiation.
  • We test JAR and keytool signing paths, because JDK 21 lacks some HSS/LMS and ML-DSA signing changes and needs adapted builds.

How we hand over

  • We deliver a dated inventory of Java releases, providers, TLS settings and signing tools, with the version each finding applies to.
  • We document the configuration changes, test results and rollback steps so your engineers can repeat and audit them.
  • We record what the sources do not say, and list the points to confirm directly with Oracle, your JDK vendor or Bouncy Castle.

How we support

  • Ongoing support and upgrade work are available as a retainer, covering JDK updates and changes in the post-quantum settings.
  • We can retest hybrid key exchange after each JDK release or vendor update, since default groups and providers may change.
  • Continuous testing can track interoperability with older clients and peers as hybrid groups are rolled out across your services.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.