Package xades4j.production
Interface XadesSigner
public interface XadesSigner
Interface for a producer of signatures. The features of the produced signatures
depend on the profile configuration.
All the exceptions defined in the current package may be thrown during production. They are organized as a tree which means that one can go from rough to fine-grained handling by catching exceptions in the different branches/depths of the tree.
- Author:
- Luís
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A strategy to append the signature element to a document's DOM tree using a given node as reference. -
Method Summary
Modifier and TypeMethodDescriptionsign
(SignedDataObjects signedDataObjects, Node parent) Applies a signature over a set of data objects and appends it to the given node.sign
(SignedDataObjects signedDataObjects, Node referenceNode, XadesSigner.SignatureAppendingStrategy appendingStrategy) Applies a signature over a set of data objects and appends it to the DOM tree using the given srtategy and reference node.
-
Method Details
-
sign
Applies a signature over a set of data objects and appends it to the given node.- Parameters:
signedDataObjects
- the data objects to be signedparent
- the node to which the signature element will be appended- Returns:
- the signature result
- Throws:
XAdES4jException
- if an error occurs- See Also:
-
sign
XadesSignatureResult sign(SignedDataObjects signedDataObjects, Node referenceNode, XadesSigner.SignatureAppendingStrategy appendingStrategy) throws XAdES4jException Applies a signature over a set of data objects and appends it to the DOM tree using the given srtategy and reference node.- Parameters:
signedDataObjects
- the data objects to be signedreferenceNode
- the node used as reference for the appending strategyappendingStrategy
- the appending strategy- Returns:
- the signature result
- Throws:
XAdES4jException
- if an error occurs- See Also:
-