public class XAdESSignatureFacet extends 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(String dsReferenceUri,
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,
Document document,
List<Reference> references,
List<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,
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, waitpostSignpublic void preSign(SignatureInfo signatureInfo, Document document, List<Reference> references, List<XMLObject> objects) throws XMLSignatureException
SignatureFacetpreSign in interface SignatureFacetsignatureInfo - 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 documentXMLSignatureExceptionprotected 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,
X509Certificate certificate)
public void addMimeType(String dsReferenceUri, String mimetype)
dsReferenceUri - the reference urimimetype - the mimetypeprotected static void insertXChild(org.apache.xmlbeans.XmlObject root,
org.apache.xmlbeans.XmlObject child)