Interface SignatureFacet

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void postSign​(SignatureInfo signatureInfo, org.w3c.dom.Document document)
      This method is being invoked by the XML signature service engine during the post-sign phase.
      default void preSign​(SignatureInfo signatureInfo, org.w3c.dom.Document document, java.util.List<javax.xml.crypto.dsig.Reference> references, java.util.List<javax.xml.crypto.dsig.XMLObject> objects)
      This method is being invoked by the XML signature service engine during pre-sign phase.
    • Method Detail

      • preSign

        default void preSign​(SignatureInfo signatureInfo,
                             org.w3c.dom.Document document,
                             java.util.List<javax.xml.crypto.dsig.Reference> references,
                             java.util.List<javax.xml.crypto.dsig.XMLObject> objects)
                      throws javax.xml.crypto.dsig.XMLSignatureException
        This method is being invoked by the XML signature service engine during pre-sign phase. Via this method a signature facet implementation can add signature facets to an XML signature.
        Parameters:
        signatureInfo - the signature info object holding the OPCPackage and other document related data
        document - the signature document to be used for imports
        references - list of reference definitions
        objects - objects to be signed/included in the signature document
        Throws:
        javax.xml.crypto.dsig.XMLSignatureException
      • postSign

        default void postSign​(SignatureInfo signatureInfo,
                              org.w3c.dom.Document document)
                       throws javax.xml.crypto.MarshalException
        This method is being invoked by the XML signature service engine during the post-sign phase. Via this method a signature facet can extend the XML signatures with for example key information.
        Parameters:
        signatureInfo - the signature info object holding the OPCPackage and other document related data
        document - the signature document to be modified
        Throws:
        javax.xml.crypto.MarshalException