public SubIndication getArchiveDataValidationSubIndication(String signatureId) { XmlSignature signature = getXmlSignatureById(signatureId); if (signature != null && signature.getValidationProcessArchivalData() != null && signature.getValidationProcessArchivalData().getConclusion() != null) { return signature.getValidationProcessArchivalData().getConclusion().getSubIndication(); } return null; }
private XmlConstraintsConclusion getArchivalValidationConclusion(String signatureId) { List<eu.europa.esig.dss.jaxb.detailedreport.XmlSignature> signatures = detailedReport.getSignatures(); for (eu.europa.esig.dss.jaxb.detailedreport.XmlSignature xmlSignature : signatures) { if (StringUtils.equals(signatureId, xmlSignature.getId())) { return xmlSignature.getValidationProcessArchivalData(); } } return null; }
private Set<String> getInfos(String signatureId) { Set<String> infos = new HashSet<String>(); List<eu.europa.esig.dss.jaxb.detailedreport.XmlSignature> signatures = detailedReport.getSignatures(); for (eu.europa.esig.dss.jaxb.detailedreport.XmlSignature xmlSignature : signatures) { if (StringUtils.equals(signatureId, xmlSignature.getId())) { collectInfos(infos, xmlSignature.getValidationProcessBasicSignatures()); List<XmlValidationProcessTimestamps> validationProcessTimestamps = xmlSignature.getValidationProcessTimestamps(); if (CollectionUtils.isNotEmpty(validationProcessTimestamps)) { for (XmlValidationProcessTimestamps xmlValidationProcessTimestamps : validationProcessTimestamps) { collectInfos(infos, xmlValidationProcessTimestamps); } } collectInfos(infos, xmlSignature.getValidationProcessLongTermData()); collectInfos(infos, xmlSignature.getValidationProcessArchivalData()); } } // Collections.sort(infos); return infos; }