Class ExampleScenario14

java.lang.Object
co.ankatech.ankasecure.sdk.examples.ExampleScenario14

public final class ExampleScenario14 extends Object

Scenario 14 – ML-KEM-768 Key-Lifecycle Demonstration

This scenario illustrates a complete key-lifecycle for an ML-KEM-768 key via ANKASecure’s REST API:

  1. List all keys currently stored.
  2. Generate a new ML-KEM-768 key.
  3. Export its public metadata as JSON.
  4. Delete the key.
  5. Restore the key by re-importing the public-only JSON.

Implementation notes (Java 21+):

  • All filesystem access is performed via the Path API.
  • UTF-8 encoding is specified explicitly.
  • JSON (de)serialisation uses Gson with a custom adapter for ZonedDateTime.
Since:
2.1.0
Author:
ANKATech – Security Engineering
  • Method Details

    • main

      public static void main(String[] args)
      Entry-point.