Class XAdESSignatureFacet
- java.lang.Object
-
- org.apache.poi.poifs.crypt.dsig.facets.SignatureFacet
-
- org.apache.poi.poifs.crypt.dsig.facets.XAdESSignatureFacet
-
- All Implemented Interfaces:
SignatureConfig.SignatureConfigurable
public class XAdESSignatureFacet extends SignatureFacet
XAdES Signature Facet. Implements XAdES v1.4.1 which is compatible with XAdES v1.3.2. The implemented XAdES format is XAdES-BES/EPES. It's up to another part of the signature service to upgrade the XAdES-BES to a XAdES-X-L. This implementation has been tested against an implementation that participated multiple ETSI XAdES plugtests.- See Also:
- XAdES
-
-
Field Summary
-
Fields inherited from class 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 XAdESSignatureFacet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMimeType(String dsReferenceUri, String mimetype)
Adds a mime-type for the given ds:Reference (referred via its @URI).void
preSign(Document document, List<Reference> references, List<XMLObject> objects)
This 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
newReference, postSign, setSignatureConfig
-
-
-
-
Method Detail
-
preSign
public void preSign(Document document, List<Reference> references, List<XMLObject> objects) throws XMLSignatureException
Description copied from class: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.- Overrides:
preSign
in 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
-
-