|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axiom.om.util.DigestGenerator
public class DigestGenerator
Helper class to provide the functionality of the digest value generation. This is an implementation of the DOMHASH algorithm on OM.
| 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 |
compareOMAttribute(OMAttribute attribute,
OMAttribute comparingAttribute,
String digestAlgorithm)
Compares two OMAttributes for the XML equality |
boolean |
compareOMDocument(OMDocument document,
OMDocument comparingDocument,
String digestAlgorithm)
Compares two OMDocuments for the XML equality |
boolean |
compareOMNode(OMNode node,
OMNode comparingNode,
String digestAlgorithm)
Compares two OMNodes for the XML equality |
Collection |
getAttributesWithoutNS(OMElement element)
Gets the collection of attributes which are none namespace declarations for an OMElement |
byte[] |
getDigest(OMAttribute attribute,
String digestAlgorithm)
This method is an overloaded method for the digest generation for OMAttribute |
byte[] |
getDigest(OMDocument document,
String digestAlgorithm)
This method is an overloaded method for the digest generation for OMDocument |
byte[] |
getDigest(OMElement element,
String digestAlgorithm)
This method is an overloaded method for the digest generation for OMElement |
byte[] |
getDigest(OMNode node,
String digestAlgorithm)
This method is an overloaded method for the digest generation for OMNode |
byte[] |
getDigest(OMProcessingInstruction pi,
String digestAlgorithm)
This method is an overloaded method for the digest generation for OMProcessingInstruction |
byte[] |
getDigest(OMText text,
String digestAlgorithm)
This method is an overloaded method for the digest generation for OMText |
String |
getExpandedName(OMAttribute attribute)
This method is an overloaded method for getting the expanded name namespaceURI followed by the local name for OMAttribute |
String |
getExpandedName(OMElement element)
This method is an overloaded method for getting the expanded name namespaceURI followed by the local name for OMElement |
String |
getStringRepresentation(byte[] array)
Gets the String representation of the byte array |
Collection |
getValidElements(OMDocument document)
Gets the valid element collection of an OMDocument. |
| 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(OMDocument document,
String digestAlgorithm)
throws OMException
document - digestAlgorithm -
OMException
public byte[] getDigest(OMNode node,
String digestAlgorithm)
node - digestAlgorithm -
public byte[] getDigest(OMElement element,
String digestAlgorithm)
throws OMException
element - digestAlgorithm -
OMException
public byte[] getDigest(OMProcessingInstruction pi,
String digestAlgorithm)
throws OMException
pi - digestAlgorithm -
OMException
public byte[] getDigest(OMAttribute attribute,
String digestAlgorithm)
throws OMException
attribute - digestAlgorithm -
OMException
public byte[] getDigest(OMText text,
String digestAlgorithm)
throws OMException
text - digestAlgorithm -
OMExceptionpublic String getExpandedName(OMElement element)
element -
public String getExpandedName(OMAttribute attribute)
attribute -
public Collection getAttributesWithoutNS(OMElement element)
element -
public Collection getValidElements(OMDocument document)
document -
public String getStringRepresentation(byte[] array)
array -
public boolean compareOMNode(OMNode node,
OMNode comparingNode,
String digestAlgorithm)
node - comparingNode - digestAlgorithm -
public boolean compareOMDocument(OMDocument document,
OMDocument comparingDocument,
String digestAlgorithm)
document - comparingDocument - digestAlgorithm -
public boolean compareOMAttribute(OMAttribute attribute,
OMAttribute comparingAttribute,
String digestAlgorithm)
attribute - comparingAttribute - digestAlgorithm -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||