Amazon.S3.Encryption.AmazonS3EncryptionClient.GenerateEncryptedObjectRequestUsingMetadata C# (CSharp) 메소드

GenerateEncryptedObjectRequestUsingMetadata() 개인적인 메소드

Updates the request where the metadata contains encryption information and the input stream contains the encrypted object contents.
private GenerateEncryptedObjectRequestUsingMetadata ( PutObjectRequest putObjectRequest ) : void
putObjectRequest Amazon.S3.Model.PutObjectRequest /// The request whose contents are to be encrypted. ///
리턴 void
        private void GenerateEncryptedObjectRequestUsingMetadata(PutObjectRequest putObjectRequest)
        {
            // Create instruction
            EncryptionInstructions instructions = EncryptionUtils.GenerateInstructions(this.encryptionMaterials);

            EncryptionUtils.AddUnencryptedContentLengthToMetadata(putObjectRequest);

            // Encrypt the object data with the instruction
            putObjectRequest.InputStream = EncryptionUtils.EncryptRequestUsingInstruction(putObjectRequest.InputStream, instructions);

            // Update the metadata
            EncryptionUtils.UpdateMetadataWithEncryptionInstructions(putObjectRequest, instructions);
        }