Class ExampleScenario9

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

public final class ExampleScenario9 extends Object

Scenario 9 – RSA-2048 → ML-DSA-65 Bulk Re-sign (Compact JWS)

This scenario migrates a Compact JWS signature from a classical RSA-2048 key to a post-quantum ML-DSA-65 key without uploading the payload again:

  1. Generate an RSA-2048 key and sign a file.
  2. Verify the RSA-based JWS.
  3. Generate an ML-DSA-65 key.
  4. Re-sign the payload on the server (RSA → ML-DSA).
  5. Verify the new ML-DSA JWS.

Implementation notes (Java 21+):

  • Filesystem APIs rely on Path.
  • UTF-8 encoding is enforced explicitly for deterministic behaviour.
  • Temporary artefacts reside under temp_files/.

Thread-safety: this class is stateless and immutable.

Since:
2.1.0
Author:
ANKATech – Security Engineering
  • Method Details

    • main

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