public class CoSignatureFacet extends Object implements SignatureFacet
Constructor and Description |
---|
CoSignatureFacet()
Default constructor.
|
CoSignatureFacet(DigestAlgo digestAlgorithm)
Main constructor.
|
CoSignatureFacet(DigestAlgo digestAlgorithm,
String dsReferenceId)
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 CoSignatureFacet()
public CoSignatureFacet(DigestAlgo digestAlgorithm)
digestAlgorithm
- the digest algorithm to be used within the ds:Reference
element. Possible values: "SHA-1", "SHA-256, or "SHA-512".public CoSignatureFacet(DigestAlgo digestAlgorithm, String dsReferenceId)
digestAlgorithm
- the digest algorithm to be used within the ds:Reference
element. Possible values: "SHA-1", "SHA-256, or "SHA-512".dsReferenceId
- the optional Id to be used on the ds:Reference element.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
public void postSign(Element signatureElement, List<X509Certificate> signingCertificateChain)
SignatureFacet
postSign
in interface SignatureFacet
Copyright © 2008-2016 FedICT. All Rights Reserved.