Class OOXMLSignatureFacet
java.lang.Object
org.apache.poi.poifs.crypt.dsig.facets.SignatureFacet
org.apache.poi.poifs.crypt.dsig.facets.OOXMLSignatureFacet
- All Implemented Interfaces:
SignatureConfig.SignatureConfigurable
Office OpenXML Signature Facet implementation.
-
Field Summary
Fields inherited from class org.apache.poi.poifs.crypt.dsig.facets.SignatureFacet
MS_DIGSIG_NS, OO_DIGSIG_NS, signatureConfig, XADES_132_NS, XADES_141_NS, XML_DIGSIG_NS, XML_NS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidaddManifestReferences(List<Reference> manifestReferences) protected voidprotected voidaddSignatureTime(Document document, List<XMLStructure> objectContent) protected static StringgetRelationshipReferenceURI(String zipEntryName) protected static StringgetResourceReferenceURI(String resourceName, String contentType) protected static booleanisSignedRelationship(String relationshipType) voidThis method is being invoked by the XML signature service engine during pre-sign phase.Methods inherited from class org.apache.poi.poifs.crypt.dsig.facets.SignatureFacet
getSignatureFactory, newReference, newReference, newTransform, newTransform, postSign, setSignatureConfig
-
Constructor Details
-
OOXMLSignatureFacet
public OOXMLSignatureFacet()
-
-
Method Details
-
preSign
public void preSign(Document document, List<Reference> references, List<XMLObject> objects) throws XMLSignatureException Description copied from class:SignatureFacetThis 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.- Overrides:
preSignin classSignatureFacet- Parameters:
document- the signature document to be used for importsreferences- list of reference definitionsobjects- objects to be signed/included in the signature document- Throws:
XMLSignatureException
-
addManifestObject
protected void addManifestObject(Document document, List<Reference> references, List<XMLObject> objects) throws XMLSignatureException - Throws:
XMLSignatureException
-
addManifestReferences
protected void addManifestReferences(List<Reference> manifestReferences) throws XMLSignatureException - Throws:
XMLSignatureException
-
addSignatureTime
-
addSignatureInfo
protected void addSignatureInfo(Document document, List<Reference> references, List<XMLObject> objects) throws XMLSignatureException - Throws:
XMLSignatureException
-
getRelationshipReferenceURI
-
getResourceReferenceURI
-
isSignedRelationship
-