public class CanonicalizationAlgorithmImplExclusiveCanonicalXML extends CanonicalizationAlgorithm
| 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_| Constructor and Description |
|---|
CanonicalizationAlgorithmImplExclusiveCanonicalXML()
Standard constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
canonicalize()
Creates a canonical physical representation of the specified XPath node set input according to the
standard mentioned in the description of this class.
|
java.lang.String |
getInclusiveNamespacePrefixes()
Gets 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 algorithmElement)
This algorithm 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 algorithm.
|
setInputprotected 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 CanonicalizationAlgorithmImplExclusiveCanonicalXML()
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()
public void setParameters(org.w3c.dom.Element algorithmElement)
InclusiveNamespaces is an empty element
with a required PrefixList attribute. This attribute contains the prefixes as a whitespace
seperated list.setParameters in class AlgorithmalgorithmElement - The DOM element representation of the algorithm, 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 algorithm.public java.io.InputStream canonicalize()
throws AlgorithmException
canonicalize in class CanonicalizationAlgorithmAlgorithmException - if no input has been set previously, or if computing the canonical
physical representation fails for any reason.