public SubIndication getBasicValidationSubIndication(String signatureId) { XmlSignature signature = getXmlSignatureById(signatureId); if (signature != null && signature.getValidationProcessBasicSignatures() != null && signature.getValidationProcessBasicSignatures().getConclusion() != null) { return signature.getValidationProcessBasicSignatures().getConclusion().getSubIndication(); } return null; }
private XmlConstraintsConclusion getBasicSignatureValidationConclusion(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.getValidationProcessBasicSignatures(); } } 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; }