Package 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 responsibility to ensure that the signature has
the appropriate properties (form) to be extended with other properties.
- Author:
- Luís
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
enrichSignature
(org.apache.xml.security.signature.XMLSignature sig, UnsignedProperties props) Enriches a signature with a set of properties.
-
Method Details
-
enrichSignature
void enrichSignature(org.apache.xml.security.signature.XMLSignature sig, UnsignedProperties props) throws XAdES4jException Enriches 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 signatureprops
- the properties- Throws:
XAdES4jException
- if an error occurs (seeXadesSigner.sign(xades4j.production.SignedDataObjects, org.w3c.dom.Node)
)
-