public static interface

XadesSigner.SignatureAppendingStrategy

xades4j.production.XadesSigner.SignatureAppendingStrategy

Class Overview

A strategy to append the signature element to a document's DOM tree using a given node as reference. Examples are appending the signature as the first or last child of a node.

Summary

Public Methods
abstract void append(Element signatureElement, Node referenceNode)
Appends the signature element to the DOM tree using the given node as reference.
abstract void revert(Element signatureElement, Node referenceNode)
Reverts the append action.

Public Methods

public abstract void append (Element signatureElement, Node referenceNode)

Appends the signature element to the DOM tree using the given node as reference.

Parameters
signatureElement the signature element
referenceNode the reference node

public abstract void revert (Element signatureElement, Node referenceNode)

Reverts the append action. Used when to remove the signature from the DOM tree when signature production fails.

Parameters
signatureElement the signature element
referenceNode the reference node