public abstract class SignatureFacet extends java.lang.Object implements SignatureConfig.SignatureConfigurable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MS_DIGSIG_NS |
static java.lang.String |
OO_DIGSIG_NS |
protected SignatureConfig |
signatureConfig |
static java.lang.String |
XADES_132_NS |
static java.lang.String |
XADES_141_NS |
static java.lang.String |
XML_DIGSIG_NS |
static java.lang.String |
XML_NS |
Constructor and Description |
---|
SignatureFacet() |
Modifier and Type | Method and Description |
---|---|
protected javax.xml.crypto.dsig.XMLSignatureFactory |
getSignatureFactory() |
protected javax.xml.crypto.dsig.Reference |
newReference(java.lang.String uri,
java.util.List<javax.xml.crypto.dsig.Transform> transforms,
java.lang.String type,
java.lang.String id,
byte[] digestValue) |
static javax.xml.crypto.dsig.Reference |
newReference(java.lang.String uri,
java.util.List<javax.xml.crypto.dsig.Transform> transforms,
java.lang.String type,
java.lang.String id,
byte[] digestValue,
SignatureConfig signatureConfig) |
protected javax.xml.crypto.dsig.Transform |
newTransform(java.lang.String canonicalizationMethod) |
protected javax.xml.crypto.dsig.Transform |
newTransform(java.lang.String canonicalizationMethod,
javax.xml.crypto.dsig.spec.TransformParameterSpec paramSpec) |
void |
postSign(org.w3c.dom.Document document)
This method is being invoked by the XML signature service engine during
the post-sign phase.
|
void |
preSign(org.w3c.dom.Document document,
java.util.List<javax.xml.crypto.dsig.Reference> references,
java.util.List<javax.xml.crypto.dsig.XMLObject> objects)
This method is being invoked by the XML signature service engine during
pre-sign phase.
|
void |
setSignatureConfig(SignatureConfig signatureConfig) |
public static final java.lang.String XML_NS
public static final java.lang.String XML_DIGSIG_NS
public static final java.lang.String OO_DIGSIG_NS
public static final java.lang.String MS_DIGSIG_NS
public static final java.lang.String XADES_132_NS
public static final java.lang.String XADES_141_NS
protected SignatureConfig signatureConfig
public void setSignatureConfig(SignatureConfig signatureConfig)
setSignatureConfig
in interface SignatureConfig.SignatureConfigurable
public void preSign(org.w3c.dom.Document document, java.util.List<javax.xml.crypto.dsig.Reference> references, java.util.List<javax.xml.crypto.dsig.XMLObject> objects) throws javax.xml.crypto.dsig.XMLSignatureException
document
- the signature document to be used for importsreferences
- list of reference definitionsobjects
- objects to be signed/included in the signature documentjavax.xml.crypto.dsig.XMLSignatureException
public void postSign(org.w3c.dom.Document document) throws javax.xml.crypto.MarshalException
document
- the signature document to be modifiedjavax.xml.crypto.MarshalException
protected javax.xml.crypto.dsig.XMLSignatureFactory getSignatureFactory()
protected javax.xml.crypto.dsig.Transform newTransform(java.lang.String canonicalizationMethod) throws javax.xml.crypto.dsig.XMLSignatureException
javax.xml.crypto.dsig.XMLSignatureException
protected javax.xml.crypto.dsig.Transform newTransform(java.lang.String canonicalizationMethod, javax.xml.crypto.dsig.spec.TransformParameterSpec paramSpec) throws javax.xml.crypto.dsig.XMLSignatureException
javax.xml.crypto.dsig.XMLSignatureException
protected javax.xml.crypto.dsig.Reference newReference(java.lang.String uri, java.util.List<javax.xml.crypto.dsig.Transform> transforms, java.lang.String type, java.lang.String id, byte[] digestValue) throws javax.xml.crypto.dsig.XMLSignatureException
javax.xml.crypto.dsig.XMLSignatureException
public static javax.xml.crypto.dsig.Reference newReference(java.lang.String uri, java.util.List<javax.xml.crypto.dsig.Transform> transforms, java.lang.String type, java.lang.String id, byte[] digestValue, SignatureConfig signatureConfig) throws javax.xml.crypto.dsig.XMLSignatureException
javax.xml.crypto.dsig.XMLSignatureException
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.