Class Office2010SignatureFacet
- java.lang.Object
-
- org.apache.poi.poifs.crypt.dsig.facets.Office2010SignatureFacet
-
- All Implemented Interfaces:
SignatureFacet
public class Office2010SignatureFacet extends Object implements SignatureFacet
Work-around for Office2010 to accept the XAdES-BES/EPES signature. xades:UnsignedProperties/xades:UnsignedSignatureProperties needs to be present.
-
-
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 Office2010SignatureFacet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpostSign(SignatureInfo signatureInfo, Document document)This method is being invoked by the XML signature service engine during the post-sign phase.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.poifs.crypt.dsig.facets.SignatureFacet
preSign
-
-
-
-
Method Detail
-
postSign
public void postSign(SignatureInfo signatureInfo, Document document) throws MarshalException
Description copied from interface:SignatureFacetThis 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.- Specified by:
postSignin interfaceSignatureFacet- Parameters:
signatureInfo- the signature info object holding the OPCPackage and other document related datadocument- the signature document to be modified- Throws:
MarshalException
-
-