Class ExampleScenario2
Object
ExampleScenario2
Scenario 2 Example:
- Authenticates with
clientId
andclientSecret
. - Generates an asymmetric RSA key (e.g. RSA-2048) via
generateKey(GenerateKeySpec)
. - Signs a file in streaming mode.
- (Optionally) exports the entire key data (in JSON) to a file.
- Verifies the signature in streaming mode.
This demonstrates how you might replicate a CLI scenario in raw Java using
the AnkaSecureSdk
. The steps illustrate generating an RSA key,
signing a document, optionally exporting the full key data in JSON (which
includes the public portion), and verifying the signature.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ExampleScenario2
public ExampleScenario2()
-
-
Method Details
-
main
Entry point for executing Scenario 2.- Parameters:
args
- Not used.
-