Merge "removed some unused imports"
authorSunder Tattavarada <statta@research.att.com>
Thu, 18 Jun 2020 19:45:22 +0000 (19:45 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 18 Jun 2020 19:45:22 +0000 (19:45 +0000)
1  2 
ecomp-portal-BE-os/src/main/java/org/onap/portalapp/service/RemoteWebServiceCallServiceImpl.java

  package org.onap.portalapp.service;
  
  import java.util.List;
 -
  import org.onap.portalapp.portal.domain.EPApp;
- import org.onap.portalapp.service.RemoteWebServiceCallService;
  import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate;
  import org.onap.portalsdk.core.onboarding.util.CipherUtil;
 +import org.onap.portalsdk.core.onboarding.util.KeyConstants;
 +import org.onap.portalsdk.core.onboarding.util.KeyProperties;
  import org.onap.portalsdk.core.service.WebServiceCallServiceImpl;
 -import org.onap.portalsdk.core.util.SystemProperties;
  import org.springframework.context.annotation.EnableAspectJAutoProxy;
  import org.springframework.stereotype.Service;
  import org.springframework.transaction.annotation.Transactional;
@@@ -68,10 -67,11 +67,10 @@@ public class RemoteWebServiceCallServic
                        logger.warn(EELFLoggerDelegate.errorLogger, "Failed to find application with UEB key " + requestUebKey);
                        return false;
                }
 -              
 -              String encryptedPwdDB = appRecord.getAppPassword();
 -              String appUserName = appRecord.getUsername();
 -              String decryptedPwd = CipherUtil.decryptPKC(encryptedPwdDB,
 -                              secretKey == null ? SystemProperties.getProperty(SystemProperties.Decryption_Key) : secretKey);
 +
 +              String encryptedPwdDB = appRecord.getAppBasicAuthPassword();
 +              String appUserName = appRecord.getAppBasicAuthUsername();
 +              String decryptedPwd = CipherUtil.decryptPKC(encryptedPwdDB,secretKey == null ? KeyProperties.getProperty(KeyConstants.CIPHER_ENCRYPTION_KEY) : secretKey);
                if (decryptedPwd.equals(requestPassword) && appUserName.equals(requestAppName))
                        return true;
                else