Beispiel #1
0
 public SubIndication getTimestampValidationSubIndication(String timestampId) {
   List<XmlSignature> signatures = jaxbDetailedReport.getSignatures();
   if (CollectionUtils.isNotEmpty(signatures)) {
     for (XmlSignature xmlSignature : signatures) {
       List<XmlValidationProcessTimestamps> validationTimestamps =
           xmlSignature.getValidationProcessTimestamps();
       if (CollectionUtils.isNotEmpty(validationTimestamps)) {
         for (XmlValidationProcessTimestamps tspValidation : validationTimestamps) {
           if (StringUtils.equals(tspValidation.getId(), timestampId)
               && tspValidation.getConclusion() != null) {
             return tspValidation.getConclusion().getSubIndication();
           }
         }
       }
     }
   }
   return null;
 }
Beispiel #2
0
 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;
 }