|
||||||||||
| 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 String |
md5DigestAlgorithm
String representing the MD5 digest algorithm |
static String |
sha1DigestAlgorithm
String representing the SHA1 digest algorithm |
static String |
shaDigestAlgorithm
String representing the SHA digest algorithm |
| Constructor Summary | |
|---|---|
DigestGenerator()
|
|
| Method Summary | |
|---|---|
boolean |
compareAttribute(Attr attribute,
Attr comparingAttribute,
String digestAlgorithm)
Compares two Attributes for the XML equality |
boolean |
compareDocument(Document document,
Document comparingDocument,
String digestAlgorithm)
Compares two Documents for the XML equality |
boolean |
compareNode(Node node,
Node comparingNode,
String digestAlgorithm)
Compares two Nodes for the XML equality |
Collection |
getAttributesWithoutNS(Element element)
Gets the collection of attributes which are none namespace declarations for an Element |
byte[] |
getDigest(Attr attribute,
String digestAlgorithm)
This method is an overloaded method for the digest generation for Attr |
byte[] |
getDigest(Document document,
String digestAlgorithm)
This method is an overloaded method for the digest generation for Document |
byte[] |
getDigest(Element element,
String digestAlgorithm)
This method is an overloaded method for the digest generation for Element |
byte[] |
getDigest(Node node,
String digestAlgorithm)
This method is an overloaded method for the digest generation for Node |
byte[] |
getDigest(ProcessingInstruction pi,
String digestAlgorithm)
This method is an overloaded method for the digest generation for ProcessingInstruction |
byte[] |
getDigest(Text text,
String digestAlgorithm)
This method is an overloaded method for the digest generation for Text |
String |
getExpandedName(Attr attribute)
This method is an overloaded method for getting the expanded name namespaceURI followed by the local name for Attr |
String |
getExpandedName(Element element)
This method is an overloaded method for getting the expanded name namespaceURI followed by the local name for Element |
String |
getStringRepresentation(byte[] array)
Gets the String representation of the byte array |
Collection |
getValidElements(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 String md5DigestAlgorithm
public static final String shaDigestAlgorithm
public static final String sha1DigestAlgorithm
| Constructor Detail |
|---|
public DigestGenerator()
| Method Detail |
|---|
public byte[] getDigest(Document document,
String digestAlgorithm)
throws Exception
document - digestAlgorithm -
Exception
public byte[] getDigest(Node node,
String digestAlgorithm)
throws Exception
node - digestAlgorithm -
Exception
public byte[] getDigest(Element element,
String digestAlgorithm)
throws Exception
element - digestAlgorithm -
Exception
public byte[] getDigest(ProcessingInstruction pi,
String digestAlgorithm)
throws Exception
pi - digestAlgorithm -
Exception
public byte[] getDigest(Attr attribute,
String digestAlgorithm)
throws Exception
attribute - digestAlgorithm -
Exception
public byte[] getDigest(Text text,
String digestAlgorithm)
throws Exception
text - digestAlgorithm -
Exceptionpublic String getExpandedName(Element element)
element -
public String getExpandedName(Attr attribute)
attribute -
public Collection getAttributesWithoutNS(Element element)
element -
public Collection getValidElements(Document document)
document -
public String getStringRepresentation(byte[] array)
array -
public boolean compareNode(Node node,
Node comparingNode,
String digestAlgorithm)
throws Exception
node - comparingNode - digestAlgorithm -
Exception
public boolean compareDocument(Document document,
Document comparingDocument,
String digestAlgorithm)
throws Exception
document - comparingDocument - digestAlgorithm -
Exception
public boolean compareAttribute(Attr attribute,
Attr comparingAttribute,
String digestAlgorithm)
throws Exception
attribute - comparingAttribute - digestAlgorithm -
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||