public class DigestGenerator extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
DigestGenerator() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String md5DigestAlgorithm
public static final String shaDigestAlgorithm
public static final String sha1DigestAlgorithm
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
- OMException
public 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
- Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.