Class ExampleScenario10
java.lang.Object
co.ankatech.ankasecure.sdk.examples.ExampleScenario10
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:
- Generate an ML-KEM-1024 key.
- Export its public metadata.
- Encrypt a plaintext file via
AnkaSecureSdk.encryptFile(String, Path, Path)
. - Decrypt via
AnkaSecureSdk.decryptFile(Path, Path)
. - Validate round-trip integrity.
Implementation notes (Java 21+):
- All filesystem interactions use the
Path
API. - UTF-8 encoding is explicitly specified for deterministic behaviour.
- Temporary directories are ensured via
ExampleUtil.ensureTempDir(Path)
.
Thread-safety: this class is stateless and immutable.
- Since:
- 2.1.0
- Author:
- ANKATech – Security Engineering
-
Method Summary
-
Method Details
-
main
-