public interface

XadesSigner

xades4j.production.XadesSigner

Class Overview

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.

Summary

Nested Classes
interface XadesSigner.SignatureAppendingStrategy A strategy to append the signature element to a document's DOM tree using a given node as reference. 
Public Methods
abstract XadesSignatureResult sign(SignedDataObjects signedDataObjects, Node parent)
Applies a signature over a set of data objects and appends it to the given node.
abstract XadesSignatureResult 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.

Public Methods

public abstract XadesSignatureResult sign (SignedDataObjects signedDataObjects, Node parent)

Applies a signature over a set of data objects and appends it to the given node.

Parameters
signedDataObjects the data objects to be signed
parent the node to which the signature element will be appended
Returns
  • the signature result
Throws
XAdES4jException if an error occurs

public abstract XadesSignatureResult 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.

Parameters
signedDataObjects the data objects to be signed
referenceNode the node used as reference for the appending strategy
appendingStrategy the appending strategy
Returns
  • the signature result
Throws
XAdES4jException if an error occurs