xades4j.production
Interface XadesSignatureFormatExtender


public interface XadesSignatureFormatExtender

Interface for signature enrichment. The features of the enrichment process depend on the profile configuration.

The main purpose of XadesSignatureFormatExtender is to be used in the verification process. However, it can also be used separately, but no checks are made on the correctness of the signature. It is user's responsability to ensure that the signature has the appropriate properties (form) to be extended with other properties.

Author:
Luís
See Also:
XadesFormatExtenderProfile

Method Summary
 void enrichSignature(org.apache.xml.security.signature.XMLSignature sig, UnsignedProperties props)
          Enrichs a signature with a set of properties.
 

Method Detail

enrichSignature

void enrichSignature(org.apache.xml.security.signature.XMLSignature sig,
                     UnsignedProperties props)
                     throws XAdES4jException
Enrichs a signature with a set of properties. If no properties are specified, no actions are taken.

Note that, due to the library's internal design, the properties cannot have dependencies on each other. For instance, one must not add properties from XAdES-C and XAdES-X, as the last need the first's XML structure. In the library, the XML for a given set of properties is generated at the same time, after gathering all the data needed to the properties.

Parameters:
sig - the signature
props - the properties
Throws:
XAdES4jException - if an error occurs (see XadesSigner.sign(xades4j.production.SignedDataObjects, org.w3c.dom.Node))


Copyright © 2012. All Rights Reserved.