Class ExampleScenario3

Object
ExampleScenario3

public final class ExampleScenario3 extends Object
Scenario 3 – Streaming Encrypt / Decrypt with AES-256

This example demonstrates how to:

  1. Load and authenticate CLI credentials (encrypted via PBKDF2‐derived key).
  2. Generate an AES-256 symmetric key (kty="oct", alg="AES-256").
  3. Stream-encrypt a plaintext file using that key.
  4. Stream-decrypt the resulting ciphertext using the same key.
  5. Verify that the decrypted plaintext matches the original.

All files are written under the temp_files/ directory.

  • Constructor Details

    • ExampleScenario3

      public ExampleScenario3()
  • Method Details

    • main

      public static void main(String[] args)