public class TransformImplExclusiveCanonicalXML extends Transform
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_ALGORITHM_URI_
The default algorithm URI for this algorithm implementation.
|
protected java.lang.String |
inclusiveNamespacePrefixes_
Contains the list of namespace prefixes to be handled as per Canonical XML.
|
protected static java.lang.String |
INCLUSIVENAMESPACES_ATTR_PREFIXLIST_
Name of the PrefixList attribute of the InclusiveNamespaces XML element.
|
protected static java.lang.String |
INCLUSIVENAMESPACES_TAG_
Name of the InclusiveNamespaces XML element (parameter element of CanonicalizationMethod).
|
protected static java.lang.String |
NAMESPACE_PREFIX_EC14N_
The namespace prefix to be used for the InclusiveNamespaces XML element.
|
protected boolean |
omitComments_
Contains the information whether to omit comments or not.
|
inputNodeSet_, inputOctetStream_, inputURI_| Constructor and Description |
|---|
TransformImplExclusiveCanonicalXML()
Standard constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getInclusiveNamespacePrefixes()
Get the list of namespace prefixes to be handled as per Canonical XML.
|
void |
setInclusiveNamespacePrefixes(java.lang.String prefixes)
Sets the list of namespace prefixes to be handled as per Canonical XML.
|
void |
setParameters(org.w3c.dom.Element transformEl)
This transform optionally takes the list of namespace prefixes to be handled as per Canonical XML as a
parameter.
|
org.w3c.dom.Element |
toElement(org.w3c.dom.Document signatureDOMDoc)
Returns the DOM element representation of the transform.
|
java.lang.Object |
transform()
Creates a canonical physical representation of the specified input according to the standard mentioned
in the description of this class.
|
distributeNSDeclarations, setInput, setInput, skipStylesheetElem, withdrawDistributedNSDeclarationsprotected static final java.lang.String DEFAULT_ALGORITHM_URI_
protected static final java.lang.String INCLUSIVENAMESPACES_TAG_
protected static final java.lang.String INCLUSIVENAMESPACES_ATTR_PREFIXLIST_
protected static final java.lang.String NAMESPACE_PREFIX_EC14N_
protected boolean omitComments_
true for this
class, but can be changed by superclasses.protected java.lang.String inclusiveNamespacePrefixes_
public TransformImplExclusiveCanonicalXML()
http://www.w3.org/2001/10/xml-exc-c14n#.public void setInclusiveNamespacePrefixes(java.lang.String prefixes)
prefixes - The prefixes as a whitespace separated list. May be null or an empty
string.public java.lang.String getInclusiveNamespacePrefixes()
null or an empty
string.public void setParameters(org.w3c.dom.Element transformEl)
InclusiveNamespaces is an empty element
with a required PrefixList attribute. This attribute contains the prefixes as a whitespace
seperated list.setParameters in class AlgorithmtransformEl - The DOM element representation of the transform, as it will be found by IXSIL
in the XML signature. Must not be null.public org.w3c.dom.Element toElement(org.w3c.dom.Document signatureDOMDoc)
throws AlgorithmException
toElement in class AlgorithmsignatureDOMDoc - The DOM document which should be used to create necessary DOM nodes.AlgorithmException - if no identifying URI has been specified for this transform.public java.lang.Object transform()
throws AlgorithmException
If the input has been specified as an octet stream with method Transform.setInput(InputStream, URI),
this octet stream is treated as the physical representation of a well-formed XML document. The octet
stream will be parsed, and a XPath node set will be produced containing all nodes of the XML document.
Alternatively, the input can be specified directly as XPath node set with method Transform.setInput(NodeList, URI).
In any case, the XPath node set is converted to the canonical physical representation as definied in the standard mentioned in the description of this class.
transform in class TransformAlgorithmException - if no input has been set previously, if converting a XPath node set input
into a octet stream input fails, or if computing the canonical physical
representation fails for any reason.