Class ExampleScenario12

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

public final class ExampleScenario12 extends Object

Scenario 12 – RSA-2048 → FALCON-1024 Streaming Re-sign (Detached JWS)

This scenario migrates a detached JWS signature from a classical RSA-2048 key to a post-quantum FALCON-1024 key, entirely on the server side and therefore without requiring the client to upload the payload again:

  1. Generate an RSA-2048 key and stream-sign a file.
  2. Generate a FALCON-1024 key.
  3. Re-sign the existing detached JWS on the server (RSA-2048 -> FALCON-1024).
  4. Stream-verify the fresh FALCON signature.

Implementation notes (Java 21+):

  • The Path API is used for all filesystem operations.
  • UTF-8 encoding is specified explicitly for deterministic behaviour.
  • The working directory is 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