Class ExampleScenario7
java.lang.Object
co.ankatech.ankasecure.sdk.examples.ExampleScenario7
Scenario 7 – AES-256 Compact JWE Helpers
This scenario demonstrates the SDK’s non-streaming helpers for symmetric Compact JWE operations:
- Generate an AES-256 key.
- Encrypt a plaintext file (helper stores a Compact JWE).
- Decrypt the ciphertext (helper resolves the correct key from the JWE header).
- Print metadata and validate integrity.
Implementation notes (Java 21+):
- All filesystem interactions use the
Path
API. - UTF-8 is explicitly specified for deterministic encoding.
- Directory creation delegates to
ExampleUtil.ensureTempDir(Path)
.
Thread-safety: this class is stateless and immutable.
- Since:
- 2.1.0
- Author:
- ANKATech – Security Engineering
-
Method Summary
-
Method Details
-
main
-