Dear Simon,

Thanks for your email!

I'm afraid we don't have an official Java binding, and we don't have any plans to create one. Our focus is mostly on projects that use C. I'm afraid that we wouldn't be able to host community bindings either, unless there is significant interest from the members of the Trusted Firmware Project (https://www.trustedfirmware.org/) which looks after Mbed TLS. This is quite unlikely, as the project is mostly geared towards device firmware and not IoT middleware.

However, Mbed TLS has proven to be easy for many projects to integrate and we have unofficial bindings for various languages. I'm sure that if necessary you could maintain your own bindings for what you need without too much trouble, or as you say use an unofficial binding.

Sorry to give a disappointing answer, but all the best for future work on your library!

Many thanks,

David Horstmann
Mbed TLS developer

From: Simon Bernard via mbed-tls <mbed-tls@lists.trustedfirmware.org>
Sent: 07 May 2025 15:24
To: mbed-tls@lists.trustedfirmware.org <mbed-tls@lists.trustedfirmware.org>
Subject: [mbed-tls] Any plan for a Java Binding ?
 

Hi,

  I'm the main developer of Leshan Library. This is a Java open source implementation of LWM2M protocol hosted at Eclipse Foundation.
  We currently use Scandium (from Californium Project) as DTLS library.
  This library fits our needs until now but we have some concerns about future-proofness of it  (Especially, there is no plan for DTLS 1.3) and there is no support of TLS.

  So we explore some other way for the future.
  I had consider to use OpenJdk but there is a lot of missing IoT Features. I contact OpenJdk security dev and they makes me understand politely that IoT is not the priority (at least this is my understanding)

  Another solution we explore would be to use an mbedtls Java binding. (as mbedtls is well supported and focus IoT)
  There is a not official one at : https://github.com/open-coap/kotlin-mbedtls

   Questions  :

  1. Is there any official java binding ? 
  2. If no, is there any plan for that kind of binding ? 
  3. If no, if there is a community initiative could it be hosted by you ? 

   Thx,

Simon