Пример #1
0
 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;
 }
Пример #2
0
 public Indication getLongTermValidationIndication(String signatureId) {
   XmlSignature signature = getXmlSignatureById(signatureId);
   if (signature != null
       && signature.getValidationProcessLongTermData() != null
       && signature.getValidationProcessLongTermData().getConclusion() != null) {
     return signature.getValidationProcessLongTermData().getConclusion().getIndication();
   }
   return null;
 }
Пример #3
0
 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;
 }
Пример #4
0
 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;
 }
Пример #5
0
 private XmlSignature getXmlSignatureById(String signatureId) {
   List<XmlSignature> signatures = jaxbDetailedReport.getSignatures();
   if (CollectionUtils.isNotEmpty(signatures)) {
     for (XmlSignature xmlSignature : signatures) {
       if (StringUtils.equals(signatureId, xmlSignature.getId())) {
         return xmlSignature;
       }
     }
   }
   return null;
 }
Пример #6
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;
 }
Пример #7
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;
 }