File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/main/java/software/amazon/encryption/s3/legacy/materials Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ class Example {
114114
115115 Keyring legacyKeyring = AesWrapKeyring . builder()
116116 .wrappingKey(aesKey)
117- .nonLegacyKeyring(keyring)
118117 .build();
119118
120119 MaterialsManager materialsManager = LegacyDecryptMaterialsManager . builder()
Original file line number Diff line number Diff line change 1010
1111/**
1212 * This class supports legacy decrypt as well as non-legacy encrypt and decrypt.
13+ *
14+ * It will only use the non-legacy keyring for encrypt.
15+ * For decrypt, it will attempt to use the legacy keyring first.
16+ * If the legacy keyring fails to decrypt, the non-legacy keyring will be used.
1317 */
1418public class LegacyDecryptMaterialsManager implements MaterialsManager {
1519 private final Keyring _keyring ;
You can’t perform that action at this time.
0 commit comments