/** * 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; } }
byte[] bytes = null; try { bytes = loader.get(url); } catch (Exception e) { LOG.warn("Unable to download certificate from '{}': {}", url, e.getMessage());
bytes = getLocalFileContent(url); } else { bytes = dataLoader.get(url);