Skip to content

Commit 549e657

Browse files
committed
Fix documentation.
1 parent 27188ab commit 549e657

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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()

src/main/java/software/amazon/encryption/s3/legacy/materials/LegacyDecryptMaterialsManager.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
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
*/
1418
public class LegacyDecryptMaterialsManager implements MaterialsManager {
1519
private final Keyring _keyring;

0 commit comments

Comments
 (0)