From ec0cdfd2218580a84680240436b59ffded29c27a Mon Sep 17 00:00:00 2001 From: curry772 Date: Tue, 23 Jun 2026 08:53:12 +0900 Subject: [PATCH] =?UTF-8?q?OAuthServer=20=ED=94=84=EB=9F=AC=ED=8D=BC?= =?UTF-8?q?=ED=8B=B0=20=EA=B7=B8=EB=A3=B9=20=EC=95=94=ED=98=B8=ED=99=94=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../authserver/config/AuthorizationServerConfig.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/eactive/eai/authserver/config/AuthorizationServerConfig.java b/src/main/java/com/eactive/eai/authserver/config/AuthorizationServerConfig.java index 2583268..003da5b 100644 --- a/src/main/java/com/eactive/eai/authserver/config/AuthorizationServerConfig.java +++ b/src/main/java/com/eactive/eai/authserver/config/AuthorizationServerConfig.java @@ -36,6 +36,7 @@ import org.springframework.security.oauth2.provider.token.store.JwtAccessTokenCo import org.springframework.security.oauth2.provider.token.store.JwtTokenStore; import org.springframework.security.oauth2.provider.token.store.KeyStoreKeyFactory; +import com.eactive.eai.agent.encryption.EncryptionManager; import com.eactive.eai.authserver.dao.TokenIssuanceLogDAO; import com.eactive.eai.authserver.jwt.PssJwtAccessTokenConverter; import com.eactive.eai.authserver.service.OAuth2Manager; @@ -131,10 +132,11 @@ public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdap String keyAlias = "elink-oauth"; String keyPassword = "elink1234"; if (vo != null) { - keystorePath = vo.getProperty(PROP_KEYSTORE_PATH); - keystorePassword = vo.getProperty(PROP_KEYSTORE_PW); - keyAlias = vo.getProperty(PROP_KEY_ALIAS); - keyPassword = vo.getProperty(PROP_KEY_PW); + EncryptionManager encManager = EncryptionManager.getInstance(); + keystorePath = encManager.decryptDBData(vo.getProperty(PROP_KEYSTORE_PATH)); + keystorePassword = encManager.decryptDBData(vo.getProperty(PROP_KEYSTORE_PW)); + keyAlias = encManager.decryptDBData(vo.getProperty(PROP_KEY_ALIAS)); + keyPassword = encManager.decryptDBData(vo.getProperty(PROP_KEY_PW)); } else { logger.warn("The properties has not been set.[" + PROP_GROUP_AUTH_SERVER + "]"); }