Search in sources :

Example 1 with CompleteCertificateRefsData

use of xades4j.properties.data.CompleteCertificateRefsData 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);
}
Also used : XmlCompleteCertificateRefsType(xades4j.xml.bind.xades.XmlCompleteCertificateRefsType) CompleteCertificateRefsData(xades4j.properties.data.CompleteCertificateRefsData)

Aggregations

CompleteCertificateRefsData (xades4j.properties.data.CompleteCertificateRefsData)1 XmlCompleteCertificateRefsType (xades4j.xml.bind.xades.XmlCompleteCertificateRefsType)1