static private DecryptObjectUsingInstructions ( |
||
response | /// The getObject response whose contents are to be decrypted. /// | |
instructions | /// The instruction that will be used to encrypt the object data. /// | |
리턴 | void |
/// <summary> /// Updates object where the object input stream contains the decrypted contents. /// </summary> /// <param name="objectResponse"> /// The getObject response whose contents are to be decrypted. /// </param> private void DecryptObjectUsingMetadata(GetObjectResponse objectResponse) { // Create an instruction object from the object metadata EncryptionInstructions instructions = EncryptionUtils.BuildInstructionsFromObjectMetadata(objectResponse, this.encryptionMaterials); // Decrypt the object with the instruction EncryptionUtils.DecryptObjectUsingInstructions(objectResponse, instructions); }
/// <summary> /// Updates object where the object input stream contains the decrypted contents. /// </summary> /// <param name="instructionFileResponse"> /// The getObject response of InstructionFile. /// </param> /// <param name="response"> /// The getObject response whose contents are to be decrypted. /// </param> 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); }