Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 4536815f authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

- fix c sonar warnings

parent 4e0eb461
No related branches found
No related tags found
No related merge requests found
...@@ -187,17 +187,6 @@ public class UIUserService extends UIServiceBase<DBUser, UserRO> { ...@@ -187,17 +187,6 @@ public class UIUserService extends UIServiceBase<DBUser, UserRO> {
return ""; return "";
} }
public boolean isCertificatePemEncoded(byte[] certData) {
if (certData != null && certData.length > S_PEM_START_TAG.length) {
for (int i = 0; i < certData.length; i++) {
if (certData[i] != S_PEM_START_TAG[i]) {
return false;
}
return true;
}
}
return false;
}
/** /**
* Method tests if certificate is in PEM format. If not it creates pem format else returns original data. * Method tests if certificate is in PEM format. If not it creates pem format else returns original data.
......
...@@ -162,7 +162,9 @@ public class SmlClientFactory { ...@@ -162,7 +162,9 @@ public class SmlClientFactory {
log.info("Configuring proxy for BDMSL integration client: {}:{}@{}:{}", proxyUser, "########", proxyServer, proxyPort.get()); log.info("Configuring proxy for BDMSL integration client: {}:{}@{}:{}", proxyUser, "########", proxyServer, proxyPort.get());
httpConduit.getClient().setProxyServerType(ProxyServerType.HTTP); httpConduit.getClient().setProxyServerType(ProxyServerType.HTTP);
httpConduit.getClient().setProxyServer(proxyServer); httpConduit.getClient().setProxyServer(proxyServer);
httpConduit.getClient().setProxyServerPort(proxyPort.get()); if (proxyPort.isPresent()) {
httpConduit.getClient().setProxyServerPort(proxyPort.get());
}
ProxyAuthorizationPolicy proxyAuth = new ProxyAuthorizationPolicy(); ProxyAuthorizationPolicy proxyAuth = new ProxyAuthorizationPolicy();
proxyAuth.setUserName(proxyUser); proxyAuth.setUserName(proxyUser);
proxyAuth.setPassword(proxyPassword); proxyAuth.setPassword(proxyPassword);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment