Skip to content

Commit dfa7b4f

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

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* This keyring can wrap keys with the active keywrap algorithm and
2424
* unwrap with the active and legacy algorithms for RSA keys.
2525
*/
26-
public class RsaKeyring extends S3Keyring {
26+
public class RsaKeyring extends RawKeyring {
2727

2828
private final PartialRsaKeyPair _partialRsaKeyPair;
2929

@@ -201,9 +201,8 @@ public MaterialsDescription getMaterialsDescription() {
201201
return _materialsDescription;
202202
}
203203

204-
public static class Builder extends S3Keyring.Builder<S3Keyring, Builder> {
204+
public static class Builder extends RawKeyring.Builder<RsaKeyring, RsaKeyring.Builder> {
205205
private PartialRsaKeyPair _partialRsaKeyPair;
206-
private boolean _reEncryptInstructionFile = false;
207206

208207
private Builder() {
209208
super();
@@ -218,10 +217,6 @@ public Builder wrappingKeyPair(final PartialRsaKeyPair partialRsaKeyPair) {
218217
_partialRsaKeyPair = partialRsaKeyPair;
219218
return builder();
220219
}
221-
public Builder reEncryptInstructionFile(final boolean reEncryptInstructionFile) {
222-
_reEncryptInstructionFile = reEncryptInstructionFile;
223-
return builder();
224-
}
225220

226221
public RsaKeyring build() {
227222
return new RsaKeyring(this);

0 commit comments

Comments
 (0)