Class OOXMLSignatureFacet
- java.lang.Object
-
- org.apache.poi.poifs.crypt.dsig.facets.OOXMLSignatureFacet
-
- All Implemented Interfaces:
SignatureFacet
public class OOXMLSignatureFacet extends java.lang.Object implements SignatureFacet
Office OpenXML Signature Facet implementation.
-
-
Field Summary
-
Fields inherited from interface org.apache.poi.poifs.crypt.dsig.facets.SignatureFacet
MS_DIGSIG_NS, OO_DIGSIG_NS, XADES_132_NS, XADES_141_NS, XML_DIGSIG_NS, XML_NS
-
-
Constructor Summary
Constructors Constructor Description OOXMLSignatureFacet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.poifs.crypt.dsig.facets.SignatureFacet
postSign
-
-
-
-
Method Detail
-
preSign
public 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
Description copied from interface:SignatureFacet
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.- Specified by:
preSign
in interfaceSignatureFacet
- Parameters:
signatureInfo
- the signature info object holding the OPCPackage and other document related datadocument
- the signature document to be used for importsreferences
- list of reference definitionsobjects
- objects to be signed/included in the signature document- Throws:
javax.xml.crypto.dsig.XMLSignatureException
-
-