Introduction

Java 15 which came into General availability brought a very good set of 14 features. Out of those 14 features, few are additions and few are removed/disabled from current java eco-system. Here is the list of features added

  • Edwards-Curve Digital Signature Algorithm (EdDSA)Sealed Classes (Preview)Hidden ClassesRemove the Nashorn JavaScript EngineReimplement the Legacy DatagramSocket APIDisable and Deprecate Biased LockingPattern Matching for instanceof (Second Preview)ZGC: A Scalable Low-Latency Garbage CollectorText BlocksShenandoah: A Low-Pause-Time Garbage CollectorRemove the Solaris and SPARC PortsForeign-Memory Access API (Second Incubator)Records (Second Preview)Deprecate RMI Activation for Removal

In this blog, we will go through a little bit about what these new features are, how they can be used using a few code snippets.

Edwards-Curve Digital Signature Algorithm (EdDSA)

Image for post

Photo by Markus Spiske on Unsplash

One of the reasons for including this feature in Java 15 is

  • It is a popular signature algorithm due to its security and performance compared to similar signatures ECDSAcaching up with popular crypto libraries such as OpenSSL and BoringSSL which already supports EdDSA.Its only signature at the moment that is allowed in TLS 1.3

Code snippet To generate a key pair and sign the same

Code snippet Snippet to construct the public key

More reading material: https://openjdk.java.net/jeps/339

#learning #technology #software-development #startup #programming

Every feature Java 15 came with
1.10 GEEK