|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.xml.Canonicalizer
This class defines the methods to canonicalize an XPath node-set,
Node
, and Attr
objects.
Field Summary |
|
static String |
S_XMLNS
Default namespace name. |
static String |
XML_NAMESPACE
Namespace URI for the prefix xml. |
Constructor Summary |
|
Canonicalizer()
|
Method Summary |
|
static byte[] |
canonicalizeNodeset(org.w3c.dom.Node node,
boolean withComments)
Canonicalizes the |
static byte[] |
canonicalizeNodeset(org.w3c.dom.NodeList nodeList,
boolean withComments)
Canonicalizes each node stored in the |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String XML_NAMESPACE
public static final String S_XMLNS
Constructor Detail |
public Canonicalizer()
Method Detail |
public static byte[] canonicalizeNodeset(org.w3c.dom.Node node, boolean withComments) throws XMLException
Node
object and all its descendants
and produces an octet
stream.
Parameters
node | The | ||
withComments | A |
Returns
byte
array containing the canonicalized result.
If the input node is null
,
this method returns null
.Throws
XMLException
- If an error occurs while canonicalizing the input.public static byte[] canonicalizeNodeset(org.w3c.dom.NodeList nodeList, boolean withComments) throws XMLException
NodeList
object
and produces an octet
stream.
Parameters
nodeList | The | ||
withComments | A |
Returns
byte
array containing the canonicalized result.
If the input node is null
,
this method returns null
.Throws
XMLException
- If an error occurs while canonicalizing the
input.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |