use of xades4j.xml.bind.xades.XmlCompleteCertificateRefsType in project xades4j by luisgoncalves.
the class FromXmlCompleteCertRefsConverter method convertFromObjectTree.
@Override
public void convertFromObjectTree(XmlUnsignedSignaturePropertiesType xmlProps, QualifyingPropertiesDataCollector propertyDataCollector) throws PropertyUnmarshalException {
XmlCompleteCertificateRefsType xmlCompleteCertRefs = xmlProps.getCompleteCertificateRefs();
if (null == xmlCompleteCertRefs)
return;
CompleteCertificateRefsData completeCertRefsData = new CompleteCertificateRefsData();
FromXmlUtils.createAndCertificateRefs(xmlCompleteCertRefs.getCertRefs(), completeCertRefsData);
propertyDataCollector.setCompleteCertificateRefs(completeCertRefsData);
}
use of xades4j.xml.bind.xades.XmlCompleteCertificateRefsType in project xades4j by luisgoncalves.
the class ToXmlCompleteCertRefsConverter method convertIntoObjectTree.
@Override
public void convertIntoObjectTree(PropertyDataObject propData, XmlUnsignedPropertiesType xmlProps, Document doc) {
XmlCertIDListType xmlCertRefsList = ToXmlUtils.getXmlCertRefList((CompleteCertificateRefsData) propData);
XmlCompleteCertificateRefsType xmlCompleteCertRefsProp = new XmlCompleteCertificateRefsType();
xmlCompleteCertRefsProp.setCertRefs(xmlCertRefsList);
xmlProps.getUnsignedSignatureProperties().setCompleteCertificateRefs(xmlCompleteCertRefsProp);
}
Aggregations