xades4j.xml.marshalling
Interface PropertiesMarshaller

All Known Subinterfaces:
SignedPropertiesMarshaller, UnsignedPropertiesMarshaller
All Known Implementing Classes:
DefaultSignedPropertiesMarshaller, DefaultUnsignedPropertiesMarshaller

public interface PropertiesMarshaller

Interface for property data objects marshallers.

The signed and unsigned properties are marshalled at a different time in the signature production. The separation comes from the nature of the properties: signed properties need to be marshalled before the signature so that they are covered by a Reference. On the other hand, unsigned properties do not need to be marshalled before the signature and most of the times they can't be, because they use information that results from the signature generation.

Default implementations of signed and unsigned properties data objects marshallers are supplied.

Author:
Luís
See Also:
DefaultSignedPropertiesMarshaller, DefaultUnsignedPropertiesMarshaller

Method Summary
 void marshal(SigAndDataObjsPropertiesData props, String propsId, Node qualifyingPropsNode)
          Marshal a pair of collections of property data objects (signature and signed objects) into the QualifyingProperties node.
 

Method Detail

marshal

void marshal(SigAndDataObjsPropertiesData props,
             String propsId,
             Node qualifyingPropsNode)
             throws MarshalException
Marshal a pair of collections of property data objects (signature and signed objects) into the QualifyingProperties node. Must create all the DOM structure below SignedProperties or UnsignedProperties, inclusive.

Parameters:
props - the data objects to be marshalled
propsId - the identifier to be set on the top-most property container (SignedProperties or UnsignedProperties)
qualifyingPropsNode - the destination node
Throws:
MarshalException - if there's an error


Copyright © 2012. All Rights Reserved.