|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.util.DigestGenerator
public class DigestGenerator
Helper class to provide the functionality of the digest value generation. This is an implementation of the DHASH algorithm on .
| Field Summary | |
|---|---|
static java.lang.String |
md5DigestAlgorithm
String representing the MD5 digest algorithm |
static java.lang.String |
sha1DigestAlgorithm
String representing the SHA1 digest algorithm |
static java.lang.String |
shaDigestAlgorithm
String representing the SHA digest algorithm |
| Constructor Summary | |
|---|---|
DigestGenerator()
|
|
| Method Summary | |
|---|---|
boolean |
compareAttribute(org.w3c.dom.Attr attribute,
org.w3c.dom.Attr comparingAttribute,
java.lang.String digestAlgorithm)
Compares two Attributes for the XML equality |
boolean |
compareDocument(org.w3c.dom.Document document,
org.w3c.dom.Document comparingDocument,
java.lang.String digestAlgorithm)
Compares two Documents for the XML equality |
boolean |
compareNode(org.w3c.dom.Node node,
org.w3c.dom.Node comparingNode,
java.lang.String digestAlgorithm)
Compares two Nodes for the XML equality |
java.util.Collection |
getAttributesWithoutNS(org.w3c.dom.Element element)
Gets the collection of attributes which are none namespace declarations for an Element |
byte[] |
getDigest(org.w3c.dom.Attr attribute,
java.lang.String digestAlgorithm)
This method is an overloaded method for the digest generation for Attr |
byte[] |
getDigest(org.w3c.dom.Document document,
java.lang.String digestAlgorithm)
This method is an overloaded method for the digest generation for Document |
byte[] |
getDigest(org.w3c.dom.Element element,
java.lang.String digestAlgorithm)
This method is an overloaded method for the digest generation for Element |
byte[] |
getDigest(org.w3c.dom.Node node,
java.lang.String digestAlgorithm)
This method is an overloaded method for the digest generation for Node |
byte[] |
getDigest(org.w3c.dom.ProcessingInstruction pi,
java.lang.String digestAlgorithm)
This method is an overloaded method for the digest generation for ProcessingInstruction |
byte[] |
getDigest(org.w3c.dom.Text text,
java.lang.String digestAlgorithm)
This method is an overloaded method for the digest generation for Text |
java.lang.String |
getExpandedName(org.w3c.dom.Attr attribute)
This method is an overloaded method for getting the expanded name namespaceURI followed by the local name for Attr |
java.lang.String |
getExpandedName(org.w3c.dom.Element element)
This method is an overloaded method for getting the expanded name namespaceURI followed by the local name for Element |
java.lang.String |
getStringRepresentation(byte[] array)
Gets the String representation of the byte array |
java.util.Collection |
getValidElements(org.w3c.dom.Document document)
Gets the valid element collection of an Document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String md5DigestAlgorithm
public static final java.lang.String shaDigestAlgorithm
public static final java.lang.String sha1DigestAlgorithm
| Constructor Detail |
|---|
public DigestGenerator()
| Method Detail |
|---|
public byte[] getDigest(org.w3c.dom.Document document,
java.lang.String digestAlgorithm)
throws java.lang.Exception
document - digestAlgorithm -
java.lang.Exception
public byte[] getDigest(org.w3c.dom.Node node,
java.lang.String digestAlgorithm)
throws java.lang.Exception
node - digestAlgorithm -
java.lang.Exception
public byte[] getDigest(org.w3c.dom.Element element,
java.lang.String digestAlgorithm)
throws java.lang.Exception
element - digestAlgorithm -
java.lang.Exception
public byte[] getDigest(org.w3c.dom.ProcessingInstruction pi,
java.lang.String digestAlgorithm)
throws java.lang.Exception
pi - digestAlgorithm -
java.lang.Exception
public byte[] getDigest(org.w3c.dom.Attr attribute,
java.lang.String digestAlgorithm)
throws java.lang.Exception
attribute - digestAlgorithm -
java.lang.Exception
public byte[] getDigest(org.w3c.dom.Text text,
java.lang.String digestAlgorithm)
throws java.lang.Exception
text - digestAlgorithm -
java.lang.Exceptionpublic java.lang.String getExpandedName(org.w3c.dom.Element element)
element -
public java.lang.String getExpandedName(org.w3c.dom.Attr attribute)
attribute -
public java.util.Collection getAttributesWithoutNS(org.w3c.dom.Element element)
element -
public java.util.Collection getValidElements(org.w3c.dom.Document document)
document -
public java.lang.String getStringRepresentation(byte[] array)
array -
public boolean compareNode(org.w3c.dom.Node node,
org.w3c.dom.Node comparingNode,
java.lang.String digestAlgorithm)
throws java.lang.Exception
node - comparingNode - digestAlgorithm -
java.lang.Exception
public boolean compareDocument(org.w3c.dom.Document document,
org.w3c.dom.Document comparingDocument,
java.lang.String digestAlgorithm)
throws java.lang.Exception
document - comparingDocument - digestAlgorithm -
java.lang.Exception
public boolean compareAttribute(org.w3c.dom.Attr attribute,
org.w3c.dom.Attr comparingAttribute,
java.lang.String digestAlgorithm)
throws java.lang.Exception
attribute - comparingAttribute - digestAlgorithm -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||