Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 685ea5f2 authored by Alexandre Pocinho's avatar Alexandre Pocinho
Browse files

[WHOBP-17] Change http to https

parent f9081e51
No related branches found
No related tags found
1 merge request!7Release/1.2.1
Pipeline #694154 passed
......@@ -33,7 +33,7 @@ import java.util.stream.Collectors;
public class DDCCValidatorConnector extends AbstractValidator{
private static final Logger LOGGER = LoggerFactory.getLogger(DDCCValidatorConnector.class);
private static final String DDCC_VALIDATION_URL = "http://ddcc-validator.pathcheck.org/verify";
private static final String DDCC_VALIDATION_URL = "https://ddcc-validator.pathcheck.org/verify";
private static final String DDCC_VALIDATION_TITLE = "QR Barcode Validation From DDCC Universal Verifier";
private static final String VERIFIED_STATUS="VERIFIED";
private static final String DDCC_VALIDATION_STATUS_CONSTRAINT = "The DDCC Universal Verifier must return status : \"VERIFIED\"";
......@@ -81,7 +81,7 @@ public class DDCCValidatorConnector extends AbstractValidator{
}
private String getJSONReportFromDDCCValidationServer(byte[] object){
try (CloseableHttpClient httpclient = HttpClients.custom().useSystemProperties().build()) {
try (CloseableHttpClient httpclient = HttpClients.createDefault()) {
JSONObject jsonRequest = new JSONObject();
jsonRequest.put("uri",decodeFromByteArray(object));
HttpPost httppost = new HttpPost(DDCC_VALIDATION_URL);
......
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