|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.fedict.eid.applet.service.signer.facets.CoSignatureFacet
public class CoSignatureFacet
Signature facet to create multiple independent signatures, a.k.a co-signatures.
Constructor Summary | |
---|---|
CoSignatureFacet()
Default constructor. |
|
CoSignatureFacet(DigestAlgo digestAlgorithm)
Main constructor. |
|
CoSignatureFacet(DigestAlgo digestAlgorithm,
String dsReferenceId)
Main constructor. |
Method Summary | |
---|---|
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(javax.xml.crypto.dsig.XMLSignatureFactory signatureFactory,
Document document,
String signatureId,
List<X509Certificate> signingCertificateChain,
List<javax.xml.crypto.dsig.Reference> references,
List<javax.xml.crypto.dsig.XMLObject> objects)
This method is being invoked by the XML signature service engine during pre-sign phase. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public void preSign(javax.xml.crypto.dsig.XMLSignatureFactory signatureFactory, Document document, String signatureId, List<X509Certificate> signingCertificateChain, List<javax.xml.crypto.dsig.Reference> references, List<javax.xml.crypto.dsig.XMLObject> objects) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException
SignatureFacet
preSign
in interface SignatureFacet
signingCertificateChain
- the optional signing certificate chain
NoSuchAlgorithmException
InvalidAlgorithmParameterException
public void postSign(Element signatureElement, List<X509Certificate> signingCertificateChain)
SignatureFacet
postSign
in interface SignatureFacet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |