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