public class IdentitySignatureFacet extends Object implements SignatureFacet
Modifier and Type | Field and Description |
---|---|
static String |
NAMESPACE_URI |
static String |
REFERENCE_TYPE |
Constructor and Description |
---|
IdentitySignatureFacet(IdentityDTO identity,
byte[] photo,
DigestAlgo digestAlgo) |
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 static final String REFERENCE_TYPE
public static final String NAMESPACE_URI
public IdentitySignatureFacet(IdentityDTO identity, byte[] photo, DigestAlgo digestAlgo)
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-2018 FedICT. All Rights Reserved.