-
Notifications
You must be signed in to change notification settings - Fork 20
chore(java): add examples for mutation to hv-2 #1477
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
chore(java): add examples for mutation to hv-2 #1477
Conversation
This reverts commit 055ffaf.
...ain/java/software/amazon/cryptography/example/hierarchy/mutations/MutationResumeExample.java
Outdated
Show resolved
Hide resolved
...va/software/amazon/cryptography/example/hierarchy/mutations/MutationSystemKeyKMSExample.java
Outdated
Show resolved
Hide resolved
...rc/main/java/software/amazon/cryptography/example/hierarchy/mutations/MutationsProvider.java
Outdated
Show resolved
Hide resolved
Examples/java/src/test/java/software/amazon/cryptography/example/hierarchy/ExampleTests.java
Outdated
Show resolved
Hide resolved
Examples/java/src/test/java/software/amazon/cryptography/example/hierarchy/ExampleTests.java
Outdated
Show resolved
Hide resolved
Examples/java/src/test/java/software/amazon/cryptography/example/hierarchy/ExampleTests.java
Outdated
Show resolved
Hide resolved
Examples/java/src/test/java/software/amazon/cryptography/example/hierarchy/ExampleTests.java
Show resolved
Hide resolved
…le/hierarchy/ExampleTests.java
| @Nonnull AwsKms terminalAwsKms, | ||
| @Nullable HierarchyVersion terminalHierarchyVersion, | ||
| @Nonnull SystemKey systemKey, | ||
| @Nullable KeyStoreAdmin admin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Keep your required args and your non-required args in groups.
Honestly, Smithy is correct, parameters should never be set by argument ordering,
but Java predates Smithy.
| @Nonnull AwsKms terminalAwsKms, | |
| @Nullable HierarchyVersion terminalHierarchyVersion, | |
| @Nonnull SystemKey systemKey, | |
| @Nullable KeyStoreAdmin admin | |
| @Nonnull AwsKms terminalAwsKms, | |
| @Nonnull SystemKey systemKey, | |
| @Nullable HierarchyVersion terminalHierarchyVersion, | |
| @Nullable KeyStoreAdmin admin |
.../software/amazon/cryptography/example/hierarchy/mutations/MutationDecryptEncryptExample.java
Outdated
Show resolved
Hide resolved
| @Nullable SystemKey systemKey, | ||
| @Nullable KeyStoreAdmin admin | ||
| @Nullable KeyStoreAdmin admin, | ||
| final boolean doNotVersion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefect! Like this.
| @Nullable final HierarchyVersion terminalHVersion, | ||
| @Nullable final Boolean doNotVersion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Praise: Here, Boolean is used, which does support Null, and these are the final values, so this is all correct!
Co-authored-by: Tony Knapp <[email protected]>
…om/aws/aws-cryptographic-material-providers-library into rishav/hv-2/M4/addMutationExamples
Issue #, if available:
Description of changes:
Squash/merge commit message, if applicable:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.