Skip to content

Commit 18f21e0

Browse files
author
Anirav Kareddy
committed
AESKeyring class is now extending RawKeyring and the builder is also extending the abstract builder from RawKeyring
1 parent 20ed743 commit 18f21e0

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/main/java/software/amazon/encryption/s3/materials/AesKeyring.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* This keyring can wrap keys with the active keywrap algorithm and
2121
* unwrap with the active and legacy algorithms for AES keys.
2222
*/
23-
public class AesKeyring extends S3Keyring {
23+
public class AesKeyring extends RawKeyring {
2424

2525
private static final String KEY_ALGORITHM = "AES";
2626

@@ -181,9 +181,8 @@ public MaterialsDescription getMaterialsDescription() {
181181
return _materialsDescription;
182182
}
183183

184-
public static class Builder extends S3Keyring.Builder<AesKeyring, Builder> {
184+
public static class Builder extends RawKeyring.Builder<AesKeyring, Builder> {
185185
private SecretKey _wrappingKey;
186-
private boolean _reEncryptInstructionFile = false;
187186

188187
private Builder() {
189188
super();
@@ -204,12 +203,6 @@ public Builder wrappingKey(final SecretKey wrappingKey) {
204203
_wrappingKey = wrappingKey;
205204
return builder();
206205
}
207-
public Builder reEncryptInstructionFile(boolean reEncryptInstructionFile) {
208-
_reEncryptInstructionFile = reEncryptInstructionFile;
209-
return builder();
210-
211-
}
212-
213206
public AesKeyring build() {
214207
return new AesKeyring(this);
215208
}

0 commit comments

Comments
 (0)