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 + "]"); }