Exemple #1
0
 public SubIndication getLongTermValidationSubIndication(String signatureId) {
   XmlSignature signature = getXmlSignatureById(signatureId);
   if (signature != null
       && signature.getValidationProcessLongTermData() != null
       && signature.getValidationProcessLongTermData().getConclusion() != null) {
     return signature.getValidationProcessLongTermData().getConclusion().getSubIndication();
   }
   return null;
 }
 private XmlConstraintsConclusion getLongTermDataValidationConclusion(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.getValidationProcessLongTermData();
     }
   }
   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;
 }