From ac55aee034978fb3497f6e39738373c46b70ee55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A3=BC=EC=88=98=ED=98=84?= Date: Tue, 24 Jun 2025 09:09:05 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/strategy/SftpStorageFileUploadStrategy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/app/module/core/usecase/file/saveToStorage/ports/application/strategy/SftpStorageFileUploadStrategy.java b/core/src/main/java/app/module/core/usecase/file/saveToStorage/ports/application/strategy/SftpStorageFileUploadStrategy.java index 1f181abe..0d4a8bd7 100644 --- a/core/src/main/java/app/module/core/usecase/file/saveToStorage/ports/application/strategy/SftpStorageFileUploadStrategy.java +++ b/core/src/main/java/app/module/core/usecase/file/saveToStorage/ports/application/strategy/SftpStorageFileUploadStrategy.java @@ -32,7 +32,7 @@ public class SftpStorageFileUploadStrategy implements FileUploadStrategy { private String tmpPath; private final SftpConnector sftpConnector; - private final AESEncryptUtil encryptUtil; // EncryptUtil 주입 + private final AESEncryptUtil aesEncryptUtil; // EncryptUtil 주입 @PostConstruct public void initialize() throws Exception { @@ -93,7 +93,7 @@ public class SftpStorageFileUploadStrategy implements FileUploadStrategy { // 파일 읽기 byte[] fileContent = Files.readAllBytes(tmpFile); // 암호화 - byte[] encryptedContent = encryptUtil.encryptAesCbc(fileContent); + byte[] encryptedContent = aesEncryptUtil.encryptAesCbc(fileContent); // 암호화된 내용을 임시 파일로 저장 Files.write(encryptedFile, encryptedContent); } catch (Exception e) {