throw new DSSNullReturnedException(xPathQueryHolder.XPATH_UNSIGNED_SIGNATURE_PROPERTIES);
throw new DSSNullReturnedException(TimeStampToken.class);
/** * Load a trusted list form the specified URL. If the {@code signingCertList} contains any {@code X509Certificate} then the validation of the signature of the TSL is done. * * @param url of the TSL to load * @param signingCertList the {@code List} of the possible signing certificates * @return {@code TrustStatusList} */ private TrustStatusList getTrustStatusList(final String url, final List<X509Certificate> signingCertList) { boolean refresh = shouldRefresh(url); final byte[] bytes = dataLoader.get(url, refresh); if (bytes == null) { throw new DSSNullReturnedException(url); } boolean coreValidity = checkSignature ? validateTslSignature(signingCertList, bytes) : true; final Document doc = DSSXMLUtils.buildDOM(bytes); final TrustStatusList trustStatusList = TrustServiceListFactory.newInstance(doc); trustStatusList.setWellSigned(coreValidity); updateTslNextUpdateDate(url, trustStatusList); return trustStatusList; }