Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Java example #3

Open
paulhowardarm opened this issue May 4, 2022 · 0 comments
Open

Add Java example #3

paulhowardarm opened this issue May 4, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@paulhowardarm
Copy link
Contributor

Summary

Add a Java client example to the demo, structured along the same lines as the Rust and Go demos.

Details

The Java program can use the low-level Java client library as opposed to the JCA stack, which would make it smaller and simpler. To behave like the existing programs, it should be a single, self-contained console executable that reads a line of text from standard input, base64-decodes it, and decrypts it using the PsaAsymmetricDecrypt operation using the key HelloParsecDemoKey (which will have been provisioned by the demo script, so the program does not need to create it). The decrypted plaintext should be converted to a string and written to the console standard output.

Once this program has been added, the demo script will also need to be updated to invoke it. It should be self-evident how to do this from the existing contents of the script. The plaintext string should be "Hello Parsec from Java!" to match the existing strings.

Dependencies

This can't be done until the JAR for the Java client library is published to a well-known location (such as Maven central or some other canonical repository). This requirement is being tracked here: parallaxsecond/parsec-client-java#17

@paulhowardarm paulhowardarm added enhancement New feature or request good first issue Good for newcomers labels May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant