Amazon.S3.Encryption.AmazonS3EncryptionClient.DecryptObjectUsingInstructionFile C# (CSharp) Method

DecryptObjectUsingInstructionFile() private method

Updates object where the object input stream contains the decrypted contents.
private DecryptObjectUsingInstructionFile ( GetObjectResponse response, GetObjectResponse instructionFileResponse ) : void
response Amazon.S3.Model.GetObjectResponse /// The getObject response whose contents are to be decrypted. ///
instructionFileResponse Amazon.S3.Model.GetObjectResponse /// The getObject response of InstructionFile. ///
return void
        private void DecryptObjectUsingInstructionFile(GetObjectResponse response, GetObjectResponse instructionFileResponse)
        {
            // Create an instruction object from the instruction file response
            EncryptionInstructions instructions = EncryptionUtils.BuildInstructionsUsingInstructionFile(instructionFileResponse, this.encryptionMaterials);

            // Decrypt the object with the instructions
            EncryptionUtils.DecryptObjectUsingInstructions(response, instructions);
        }