Interface XadesSigner.SignatureAppendingStrategy

Enclosing interface:
XadesSigner

public static interface XadesSigner.SignatureAppendingStrategy
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.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    append(Element signatureElement, Node referenceNode)
    Appends the signature element to the DOM tree using the given node as reference.
    void
    revert(Element signatureElement, Node referenceNode)
    Reverts the append action.
  • Method Details

    • append

      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
    • revert

      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