OAuthServer 프러퍼티 그룹 암호화 적용
This commit is contained in:
@@ -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 + "]");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user