Class ExampleScenario10

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

public final class ExampleScenario10 extends Object
Scenario 10 — ML-KEM-1024 Bulk Helpers (Compact JWE).

This scenario demonstrates the non-streaming helper methods for RFC 7516 Compact JWE using an ML-KEM-1024 key:

  1. Resolve a pre-provisioned ML-KEM-1024 key from the demo-cli playground (the SDK is data-plane-only — it does not create keys).
  2. Encrypt a plaintext file.
  3. Decrypt the ciphertext.
  4. Validate round-trip integrity.

Implementation notes (Java 21+):

  • Filesystem interactions use the Path API.
  • UTF-8 encoding is enforced explicitly for deterministic behaviour.
  • Temporary artefacts reside under temp_files/.

Thread-safety: this class is stateless and immutable.

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

    • main

      public static void main(String[] args)
      Runs the ML-KEM-1024 compact JWE encrypt/decrypt 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)