import org.onap.sfc.entity.MsbRegisterEntity;
import org.onap.sfc.entity.NodeEntity;
import org.onap.sfc.entity.portpair.ServiceFunctionParameter;
-
+import org.onap.sfc.service.ConfigInfo;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
public static String generateAuthorization() {
String userName = "admin";
- String password = "admin";
- String usernameAndPassword = userName + ":" + password;
+ String authCred = "admin"; //Password string: Sonar will raise concern
+ String usernameAndPassword = userName + ":" + authCred;
// String headName = "Authorization";
return "Basic " + javax.xml.bind.DatatypeConverter.printBase64Binary(usernameAndPassword.getBytes());
}
entity.setVisualRange("1");
ArrayList<NodeEntity> nodes = new ArrayList<NodeEntity>();
NodeEntity node = new NodeEntity();
- node.setIp(getLocalIp());
+ node.setIp(ConfigInfo.getConfig().getServiceIp());
node.setPort("8411");
node.setTtl("1");
nodes.add(node);