public class XAdESSignatureFacet extends java.lang.Object implements SignatureFacet
MS_DIGSIG_NS, OO_DIGSIG_NS, XADES_132_NS, XADES_141_NS, XML_DIGSIG_NS, XML_NS
Constructor and Description |
---|
XAdESSignatureFacet() |
Modifier and Type | Method and Description |
---|---|
void |
addMimeType(java.lang.String dsReferenceUri,
java.lang.String mimetype)
Adds a mime-type for the given ds:Reference (referred via its @URI).
|
protected static void |
insertXChild(org.apache.xmlbeans.XmlObject root,
org.apache.xmlbeans.XmlObject child) |
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.
|
protected static void |
setCertID(org.etsi.uri.x01903.v13.CertIDType certId,
SignatureConfig signatureConfig,
boolean issuerNameNoReverseOrder,
java.security.cert.X509Certificate certificate)
Gives back the JAXB CertID data structure.
|
protected static void |
setDigestAlgAndValue(org.etsi.uri.x01903.v13.DigestAlgAndValueType digestAlgAndValue,
byte[] data,
HashAlgorithm digestAlgo)
Gives back the JAXB DigestAlgAndValue data structure.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postSign
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
SignatureFacet
preSign
in interface SignatureFacet
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 documentjavax.xml.crypto.dsig.XMLSignatureException
protected static void setDigestAlgAndValue(org.etsi.uri.x01903.v13.DigestAlgAndValueType digestAlgAndValue, byte[] data, HashAlgorithm digestAlgo)
digestAlgAndValue
- the parent for the new digest elementdata
- the data to be digesteddigestAlgo
- the digest algorithmprotected static void setCertID(org.etsi.uri.x01903.v13.CertIDType certId, SignatureConfig signatureConfig, boolean issuerNameNoReverseOrder, java.security.cert.X509Certificate certificate)
public void addMimeType(java.lang.String dsReferenceUri, java.lang.String mimetype)
dsReferenceUri
- mimetype
- protected static void insertXChild(org.apache.xmlbeans.XmlObject root, org.apache.xmlbeans.XmlObject child)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.