/** * Download a CRL from any location with any protocol. * * @param downloadUrls * the {@code List} of urls to be used to obtain the revocation data through the CRL canal. * @return {@code X509CRL} or null if it was not possible to download the CRL */ private DataLoader.DataAndUrl downloadCrl(final List<String> downloadUrls) { try { return dataLoader.get(downloadUrls); } catch (DSSException e) { LOG.warn("Unable to download CRL from URLs {}", downloadUrls, e); return null; } }
@Override public void setContentType(String contentType) { dataLoader.setContentType(contentType); } }
returnedBytes = dataLoader.post(urlString, content);
nbTries--; try { final byte[] ocspRespBytes = dataLoader.post(ocspAccessLocation, content); if (!Utils.isArrayEmpty(ocspRespBytes)) { final OCSPResp ocspResp = new OCSPResp(ocspRespBytes);
byte[] bytes = null; try { bytes = loader.get(url); } catch (Exception e) { LOG.warn("Unable to download certificate from '{}': {}", url, e.getMessage());
dataLoader = new NativeHTTPDataLoader(); byte[] respBytes = dataLoader.post(tspServer, requestBytes);
bytes = getLocalFileContent(url); } else { bytes = dataLoader.get(url);