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.JwtTokenStore;
|
||||||
import org.springframework.security.oauth2.provider.token.store.KeyStoreKeyFactory;
|
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.dao.TokenIssuanceLogDAO;
|
||||||
import com.eactive.eai.authserver.jwt.PssJwtAccessTokenConverter;
|
import com.eactive.eai.authserver.jwt.PssJwtAccessTokenConverter;
|
||||||
import com.eactive.eai.authserver.service.OAuth2Manager;
|
import com.eactive.eai.authserver.service.OAuth2Manager;
|
||||||
@@ -131,10 +132,11 @@ public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdap
|
|||||||
String keyAlias = "elink-oauth";
|
String keyAlias = "elink-oauth";
|
||||||
String keyPassword = "elink1234";
|
String keyPassword = "elink1234";
|
||||||
if (vo != null) {
|
if (vo != null) {
|
||||||
keystorePath = vo.getProperty(PROP_KEYSTORE_PATH);
|
EncryptionManager encManager = EncryptionManager.getInstance();
|
||||||
keystorePassword = vo.getProperty(PROP_KEYSTORE_PW);
|
keystorePath = encManager.decryptDBData(vo.getProperty(PROP_KEYSTORE_PATH));
|
||||||
keyAlias = vo.getProperty(PROP_KEY_ALIAS);
|
keystorePassword = encManager.decryptDBData(vo.getProperty(PROP_KEYSTORE_PW));
|
||||||
keyPassword = vo.getProperty(PROP_KEY_PW);
|
keyAlias = encManager.decryptDBData(vo.getProperty(PROP_KEY_ALIAS));
|
||||||
|
keyPassword = encManager.decryptDBData(vo.getProperty(PROP_KEY_PW));
|
||||||
} else {
|
} else {
|
||||||
logger.warn("The properties has not been set.[" + PROP_GROUP_AUTH_SERVER + "]");
|
logger.warn("The properties has not been set.[" + PROP_GROUP_AUTH_SERVER + "]");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user