public class DigestGenerator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
DigestGenerator() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
private java.lang.String |
internalGetExpandedName(OMNamedInformationItem informationItem) |
public static final java.lang.String md5DigestAlgorithm
public static final java.lang.String shaDigestAlgorithm
public static final java.lang.String sha1DigestAlgorithm
public byte[] getDigest(OMDocument document, java.lang.String digestAlgorithm) throws OMException
document - digestAlgorithm - OMExceptionpublic byte[] getDigest(OMNode node, java.lang.String digestAlgorithm)
node - digestAlgorithm - public byte[] getDigest(OMElement element, java.lang.String digestAlgorithm) throws OMException
element - digestAlgorithm - OMExceptionpublic byte[] getDigest(OMProcessingInstruction pi, java.lang.String digestAlgorithm) throws OMException
pi - digestAlgorithm - OMExceptionpublic byte[] getDigest(OMAttribute attribute, java.lang.String digestAlgorithm) throws OMException
attribute - digestAlgorithm - OMExceptionpublic byte[] getDigest(OMText text, java.lang.String digestAlgorithm) throws OMException
text - digestAlgorithm - OMExceptionpublic java.lang.String getExpandedName(OMElement element)
element - public java.lang.String getExpandedName(OMAttribute attribute)
attribute - private java.lang.String internalGetExpandedName(OMNamedInformationItem informationItem)
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 -