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 requiring the client to upload 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 fresh ML-DSA JWS.

Implementation notes (Java 21+):

  • Filesystem APIs use Path exclusively.
  • UTF-8 encoding is specified explicitly for deterministic behaviour.
  • Temporary directories are created via ExampleUtil.ensureTempDir(Path).

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.
      Parameters:
      args - ignored