Class ExampleScenario14

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

public final class ExampleScenario14 extends Object
Scenario 14 — In-Memory Post-Quantum Crypto (Compact JWE/JWS).

This scenario performs an entirely file-less encryption → decryption and signing → verification cycle with post-quantum algorithms:

  1. Resolve a pre-provisioned HQC-128 key for encryption and decryption (the SDK is data-plane-only — it does not create keys).
  2. Resolve a pre-provisioned SLH-DSA-SHA2-128S key for signing and verification.
  3. Encrypt a UTF-8 message into a Compact JWE token and decrypt it back to bytes.
  4. Sign the same bytes, producing a Compact JWS token, and verify that signature.

All artefacts remain in memory; nothing touches the disk.

Since:
3.0.0
Author:
ANKATech Solutions Inc.
See Also:
  • Method Details

    • main

      public static void main(String[] args)
      Runs the in-memory post-quantum crypto scenario.

      Loads CLI properties, authenticates against ANKASecure©, and delegates to the scenario logic. On any unrecoverable error the JVM terminates via ExampleUtil.fatal(String, Throwable).

      Parameters:
      args - command-line arguments (ignored)