Class KeyEncapsulationExchange

java.lang.Object
net.jrodolfo.java_evolution.java21.key_encapsulation.KeyEncapsulationExchange

public class KeyEncapsulationExchange extends Object
Demonstrates the full Java 21 Key Encapsulation Mechanism API flow.

The example models a receiver, often called Bob, that owns a public/private key pair. A sender, often called Alice, uses Bob's public key to create a shared secret and an encapsulation message. Bob then uses his private key and the encapsulation message to recover the same shared secret.