-
Notifications
You must be signed in to change notification settings - Fork 17
feat: ReEncryptInstructionFile Implementation #470
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
Merged
akareddy04
merged 46 commits into
aniravk/ReEncrypt-feature
from
aniravk/reEncryptInstructionFileAPI
Jul 15, 2025
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
cc6e593
Added ReEncryptInstructionFileRequest class
effe9bb
Added the ReEncryptInstructionFileResponse class
8ac06bb
Merge ReEncrypt-feature branch to get latest changes for instruction …
8b16a23
changed S3Keyring to RawKeyring and also added getter functions
f501b43
cleaned up ReEncryptInstructionFileResponse class
d16db4d
Rough outline of reEncryptInstructionFile method (default suffix)
5a1f292
added support for custom instruction file suffix in getObject
8fb7167
added optional attribte for custom instruction file suffix in encode …
3ffc4b2
method overloading for putInstructionFile to be able to handle the cu…
6194b64
wrote 2 comprehensive test cases regarding re-encryption of instructi…
f6e43e5
appends a period in front of the instruction file suffix
5b7b3ae
verified in test case testRsaKeyringReEncryptInstructionFile that the…
3bbb9fb
Added examples of re-encryption of instruction files via RSA + AES ke…
24b804b
added Amazon copyright notice
4164acf
renamed ReEncryptionInstructionFileExample class to ReEncryptInstruct…
d45c026
Added test cases to test legacy wrapping algorithm upgrades + backwar…
d4cef6e
Added javadoc comments for readability
0e2b8ce
added more test cases to ensure build validation
e652052
added fix to retrieve the actual contents from the materials descript…
effb4ec
small fixes
2b6dcc8
added one small fix (eliminated space between package and imports in …
7c015b2
removed unused import
07056fc
initialized _secureRandom in builder in S3Keyring with a default value
2871210
Added example for standard RSA key rotation with default instruction …
ee4f448
Changed static constant INSTRUCTION_FILE_SUFFIX to DEFAULT_INSTRUCTIO…
239bc34
changed static constant INSTRUCTION_FILE_SUFFIX to DEFAULT_INSTRUCTIO…
5298412
renamed the getter in ContentMetadata to encryptedDataKeyMatDescOrCon…
0bbd9e7
Changed INSTRUCTION_FILE_SUFFIX to DEFAULT_INSTRUCTION_FILE_SUFFIX
3ae2fa4
refactored the encodeMetadata to be cleaner
3696fa9
updated getter for encryptionContext to be contentMetadata.encryptedD…
4e70b6a
Changed INSTRUCTION_FILE_SUFFIX to DEFAULT_INSTRUCTION_FILE_SUFFIX
767c58b
Made sure to modify the javadoc comments to mention that RSA keyrings…
9e8f502
Modified the names of all the getter functions to be lowercase
887ffd0
removed setting the secureRandom attribute for the Aes + RSA keyrings…
b6b59b6
removed setting the secureRandom attribute in the builder for AES + R…
8ce42fe
rennamed getter to match the newly updated one: actualContentMetadata…
b4c1d57
added space between all of the test cases
66126e0
cleaned up the reEncryptInstructionFile method + added description fo…
cc35216
cleaned up some of the test-cases (will continue working on this)
b36455a
added more test cases with RSA key rotation with default instruction …
7d2e3f0
Added a note to the javadoc comment for the setter for instructionFil…
3092657
fixed up javadoc comments
d1eecbf
V2 (Default) to V3 is not a legacy upgrade for wrapping algorithms. M…
3a5c9a6
fixed some more test cases
a13917a
modified simpleRsaKeyringReEncryptInstructionFileWithCustomSuffix tes…
dd202cf
removed unused import
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
421 changes: 421 additions & 0 deletions
421
...examples/java/software/amazon/encryption/s3/examples/ReEncryptInstructionFileExample.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.