@@ -212,7 +212,7 @@ public static Consumer<AwsRequestOverrideConfiguration.Builder> withAdditionalCo
212
212
213
213
//= specification/s3-encryption/client.md#optional-api-operations
214
214
//= type=implication
215
- //# ReEncryptInstructionFile MAY be implemented by the S3EC.
215
+ //# - ReEncryptInstructionFile MAY be implemented by the S3EC.
216
216
/**
217
217
* Re-encrypts an instruction file with a new keyring while preserving the original encrypted object in S3.
218
218
* This enables:
@@ -252,7 +252,7 @@ public ReEncryptInstructionFileResponse reEncryptInstructionFile(ReEncryptInstru
252
252
//Decrypt the data key using the current keyring
253
253
//= specification/s3-encryption/client.md#optional-api-operations
254
254
//= type=implication
255
- //# ReEncryptInstructionFile MUST decrypt the instruction file's encrypted data key for the given object using the client's CMM.
255
+ //# - ReEncryptInstructionFile MUST decrypt the instruction file's encrypted data key for the given object using the client's CMM.
256
256
DecryptionMaterials decryptedMaterials = this ._cryptoMaterialsManager .decryptMaterials (
257
257
DecryptMaterialsRequest .builder ()
258
258
.algorithmSuite (algorithmSuite )
@@ -273,7 +273,7 @@ public ReEncryptInstructionFileResponse reEncryptInstructionFile(ReEncryptInstru
273
273
//Re-encrypt the data key with the new keyring while preserving other cryptographic parameters
274
274
//= specification/s3-encryption/client.md#optional-api-operations
275
275
//= type=implication
276
- //# ReEncryptInstructionFile MUST re-encrypt the plaintext data key with a provided keyring.
276
+ //# - ReEncryptInstructionFile MUST re-encrypt the plaintext data key with a provided keyring.
277
277
RawKeyring newKeyring = reEncryptInstructionFileRequest .newKeyring ();
278
278
EncryptionMaterials encryptedMaterials = newKeyring .onEncrypt (encryptionMaterials );
279
279
@@ -317,7 +317,7 @@ private void enforceRotation(EncryptionMaterials newEncryptionMaterials, GetObje
317
317
318
318
//= specification/s3-encryption/client.md#required-api-operations
319
319
//= type=implication
320
- //# PutObject MUST be implemented by the S3EC.
320
+ //# - PutObject MUST be implemented by the S3EC.
321
321
/**
322
322
* See {@link S3EncryptionClient#putObject(PutObjectRequest, RequestBody)}.
323
323
* <p>
@@ -357,7 +357,7 @@ public PutObjectResponse putObject(PutObjectRequest putObjectRequest, RequestBod
357
357
try {
358
358
//= specification/s3-encryption/client.md#required-api-operations
359
359
//= type=implication
360
- //# PutObject MUST encrypt its input data before it is uploaded to S3.
360
+ //# - PutObject MUST encrypt its input data before it is uploaded to S3.
361
361
CompletableFuture <PutObjectResponse > futurePut = pipeline .putObject (putObjectRequest ,
362
362
AsyncRequestBody .fromInputStream (
363
363
requestBody .contentStreamProvider ().newStream (),
@@ -384,7 +384,7 @@ public PutObjectResponse putObject(PutObjectRequest putObjectRequest, RequestBod
384
384
385
385
//= specification/s3-encryption/client.md#required-api-operations
386
386
//= type=implication
387
- //# GetObject MUST be implemented by the S3EC.
387
+ //# - GetObject MUST be implemented by the S3EC.
388
388
/**
389
389
* See {@link S3EncryptionClient#getObject(GetObjectRequest, ResponseTransformer)}
390
390
* <p>
@@ -408,7 +408,7 @@ public <T> T getObject(GetObjectRequest getObjectRequest,
408
408
409
409
//= specification/s3-encryption/client.md#required-api-operations
410
410
//= type=implication
411
- //# GetObject MUST decrypt data received from the S3 server and return it as plaintext.
411
+ //# - GetObject MUST decrypt data received from the S3 server and return it as plaintext.
412
412
GetEncryptedObjectPipeline pipeline = GetEncryptedObjectPipeline .builder ()
413
413
.s3AsyncClient (_wrappedAsyncClient )
414
414
.cryptoMaterialsManager (_cryptoMaterialsManager )
@@ -518,7 +518,7 @@ private <T extends Throwable> T onAbort(UploadObjectObserver observer, T t) {
518
518
519
519
//= specification/s3-encryption/client.md#required-api-operations
520
520
//= type=implication
521
- //# DeleteObject MUST be implemented by the S3EC.
521
+ //# - DeleteObject MUST be implemented by the S3EC.
522
522
/**
523
523
* See {@link S3Client#deleteObject(DeleteObjectRequest)}.
524
524
* <p>
@@ -538,11 +538,11 @@ public DeleteObjectResponse deleteObject(DeleteObjectRequest deleteObjectRequest
538
538
try {
539
539
//= specification/s3-encryption/client.md#required-api-operations
540
540
//= type=implementation
541
- //# DeleteObject MUST delete the given object key.
541
+ //# - DeleteObject MUST delete the given object key.
542
542
DeleteObjectResponse deleteObjectResponse = _wrappedAsyncClient .deleteObject (actualRequest ).join ();
543
543
//= specification/s3-encryption/client.md#required-api-operations
544
544
//= type=implementation
545
- //# DeleteObject MUST delete the associated instruction file using the default instruction file suffix.
545
+ //# - DeleteObject MUST delete the associated instruction file using the default instruction file suffix.
546
546
String instructionObjectKey = deleteObjectRequest .key () + DEFAULT_INSTRUCTION_FILE_SUFFIX ;
547
547
_wrappedAsyncClient .deleteObject (builder -> builder
548
548
.overrideConfiguration (API_NAME_INTERCEPTOR )
@@ -559,7 +559,7 @@ public DeleteObjectResponse deleteObject(DeleteObjectRequest deleteObjectRequest
559
559
560
560
//= specification/s3-encryption/client.md#required-api-operations
561
561
//= type=implication
562
- //# DeleteObjects MUST be implemented by the S3EC.
562
+ //# - DeleteObjects MUST be implemented by the S3EC.
563
563
/**
564
564
* See {@link S3Client#deleteObjects(DeleteObjectsRequest)}.
565
565
* <p>
@@ -578,11 +578,11 @@ public DeleteObjectsResponse deleteObjects(DeleteObjectsRequest deleteObjectsReq
578
578
try {
579
579
//= specification/s3-encryption/client.md#required-api-operations
580
580
//= type=implementation
581
- //# DeleteObjects MUST delete each of the given objects.
581
+ //# - DeleteObjects MUST delete each of the given objects.
582
582
DeleteObjectsResponse deleteObjectsResponse = _wrappedAsyncClient .deleteObjects (actualRequest ).join ();
583
583
//= specification/s3-encryption/client.md#required-api-operations
584
584
//= type=implementation
585
- //# DeleteObjects MUST delete each of the corresponding instruction files using the default instruction file suffix.
585
+ //# - DeleteObjects MUST delete each of the corresponding instruction files using the default instruction file suffix.
586
586
List <ObjectIdentifier > deleteObjects = instructionFileKeysToDelete (deleteObjectsRequest );
587
587
_wrappedAsyncClient .deleteObjects (DeleteObjectsRequest .builder ()
588
588
.overrideConfiguration (API_NAME_INTERCEPTOR )
@@ -599,7 +599,7 @@ public DeleteObjectsResponse deleteObjects(DeleteObjectsRequest deleteObjectsReq
599
599
600
600
//= specification/s3-encryption/client.md#optional-api-operations
601
601
//= type=implication
602
- //# CreateMultipartUpload MAY be implemented by the S3EC.
602
+ //# - CreateMultipartUpload MAY be implemented by the S3EC.
603
603
/**
604
604
* See {@link S3Client#createMultipartUpload(CreateMultipartUploadRequest)}
605
605
* <p>
@@ -623,7 +623,7 @@ public CreateMultipartUploadResponse createMultipartUpload(CreateMultipartUpload
623
623
624
624
//= specification/s3-encryption/client.md#optional-api-operations
625
625
//= type=implication
626
- //# UploadPart MAY be implemented by the S3EC.
626
+ //# - UploadPart MAY be implemented by the S3EC.
627
627
/**
628
628
* See {@link S3Client#uploadPart(UploadPartRequest, RequestBody)}
629
629
*
@@ -649,7 +649,7 @@ public UploadPartResponse uploadPart(UploadPartRequest request, RequestBody requ
649
649
650
650
//= specification/s3-encryption/client.md#optional-api-operations
651
651
//= type=implication
652
- //# CompleteMultipartUpload MAY be implemented by the S3EC.
652
+ //# - CompleteMultipartUpload MAY be implemented by the S3EC.
653
653
/**
654
654
* See {@link S3Client#completeMultipartUpload(CompleteMultipartUploadRequest)}
655
655
* @param request the request instance
@@ -669,7 +669,7 @@ public CompleteMultipartUploadResponse completeMultipartUpload(CompleteMultipart
669
669
670
670
//= specification/s3-encryption/client.md#optional-api-operations
671
671
//= type=implication
672
- //# AbortMultipartUpload MAY be implemented by the S3EC.
672
+ //# - AbortMultipartUpload MAY be implemented by the S3EC.
673
673
/**
674
674
* See {@link S3Client#abortMultipartUpload(AbortMultipartUploadRequest)}
675
675
* @param request the request instance
@@ -763,7 +763,7 @@ private Builder() {
763
763
@ SuppressFBWarnings (value = "EI_EXPOSE_REP2" , justification = "Pass mutability into wrapping client" )
764
764
public Builder wrappedClient (S3Client _wrappedClient ) {
765
765
//= specification/s3-encryption/client.md#wrapped-s3-client-s
766
- //= type=exception
766
+ //= type=implementation
767
767
//# The S3EC MUST NOT support use of S3EC as the provided S3 client during its initialization; it MUST throw an exception in this case.
768
768
if (_wrappedClient instanceof S3EncryptionClient ) {
769
769
throw new S3EncryptionClientException ("Cannot use S3EncryptionClient as wrapped client" );
@@ -785,7 +785,7 @@ public Builder wrappedClient(S3Client _wrappedClient) {
785
785
@ SuppressFBWarnings (value = "EI_EXPOSE_REP2" , justification = "Pass mutability into wrapping client" )
786
786
public Builder wrappedAsyncClient (S3AsyncClient _wrappedAsyncClient ) {
787
787
//= specification/s3-encryption/client.md#wrapped-s3-client-s
788
- //= type=exception
788
+ //= type=implementation
789
789
//# The S3EC MUST NOT support use of S3EC as the provided S3 client during its initialization; it MUST throw an exception in this case.
790
790
if (_wrappedAsyncClient instanceof S3AsyncEncryptionClient ) {
791
791
throw new S3EncryptionClientException ("Cannot use S3AsyncEncryptionClient as wrapped client" );
@@ -885,7 +885,7 @@ private void checkKeyOptions() {
885
885
}
886
886
887
887
//= specification/s3-encryption/client.md#cryptographic-materials
888
- //= type=exception
888
+ //= type=implementation
889
889
//# If both a CMM and a Keyring are provided, the S3EC MUST throw an exception.
890
890
throw new S3EncryptionClientException ("Only one may be set of: crypto materials manager, keyring, AES key, RSA key pair, KMS key id" );
891
891
}
0 commit comments