be.fedict.eid.applet.service.signer.facets
Class IdentitySignatureFacet
java.lang.Object
be.fedict.eid.applet.service.signer.facets.IdentitySignatureFacet
- All Implemented Interfaces:
- SignatureFacet
public class IdentitySignatureFacet
- extends Object
- implements SignatureFacet
Signature Facet implementation doing an eID identity ds:Object.
- Author:
- Frank Cornelis
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REFERENCE_TYPE
public static final String REFERENCE_TYPE
- See Also:
- Constant Field Values
NAMESPACE_URI
public static final String NAMESPACE_URI
- See Also:
- Constant Field Values
IdentitySignatureFacet
public IdentitySignatureFacet(IdentityDTO identity,
byte[] photo,
DigestAlgo digestAlgo)
preSign
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
- Description copied from interface:
SignatureFacet
- This method is being invoked by the XML signature service engine during
pre-sign phase. Via this method a signature facet implementation can add
signature facets to an XML signature.
- Specified by:
preSign
in interface SignatureFacet
signingCertificateChain
- the optional signing certificate chain
- Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException
postSign
public void postSign(Element signatureElement,
List<X509Certificate> signingCertificateChain)
- Description copied from interface:
SignatureFacet
- This method is being invoked by the XML signature service engine during
the post-sign phase. Via this method a signature facet can extend the XML
signatures with for example key information.
- Specified by:
postSign
in interface SignatureFacet
Copyright © 2008-2012 FedICT. All Rights Reserved.