public class EnvelopedSignatureFacet extends Object implements SignatureFacet
Constructor and Description |
---|
EnvelopedSignatureFacet()
Default constructor.
|
EnvelopedSignatureFacet(DigestAlgo digestAlgorithm)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
postSign(Element signatureElement,
List<X509Certificate> signingCertificateChain)
This method is being invoked by the XML signature service engine during
the post-sign phase.
|
void |
preSign(XMLSignatureFactory signatureFactory,
Document document,
String signatureId,
List<X509Certificate> signingCertificateChain,
List<Reference> references,
List<XMLObject> objects)
This method is being invoked by the XML signature service engine during
pre-sign phase.
|
public EnvelopedSignatureFacet()
public EnvelopedSignatureFacet(DigestAlgo digestAlgorithm)
digestAlgorithm
- the digest algorithm to be used within the ds:Reference
element. Possible values: "SHA-1", "SHA-256, or "SHA-512".public void postSign(Element signatureElement, List<X509Certificate> signingCertificateChain)
SignatureFacet
postSign
in interface SignatureFacet
public void preSign(XMLSignatureFactory signatureFactory, Document document, String signatureId, List<X509Certificate> signingCertificateChain, List<Reference> references, List<XMLObject> objects) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException
SignatureFacet
preSign
in interface SignatureFacet
signingCertificateChain
- the optional signing certificate chainNoSuchAlgorithmException
InvalidAlgorithmParameterException
Copyright © 2008-2016 FedICT. All Rights Reserved.