Class ExampleScenario15

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

public final class ExampleScenario15 extends Object

Scenario 15 – Streamed Sign / Verify (ML-DSA-87)

This scenario demonstrates streaming signing and verification with an ML-DSA-87 key, including out-of-band verification using only the exported public key:

  1. Generate an ML-DSA-87 key.
  2. Export its public metadata.
  3. Stream-sign a payload (detached JWS).
  4. Verify the signature with verifySignatureUtilityStream using only the exported key.

Implementation notes (Java 21+):

  • All filesystem access uses the Path API.
  • UTF-8 encoding is specified explicitly.
  • JSON parsing relies on 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.