public class XAdESSignatureFacet extends SignatureFacet
MS_DIGSIG_NS, OO_DIGSIG_NS, signatureConfig, 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(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.
|
getSignatureFactory, newReference, newReference, newTransform, newTransform, postSign, setSignatureConfig
public void preSign(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 class SignatureFacet
document
- 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 2020 The Apache Software Foundation or its licensors, as applicable.