@Deprecated public class REQUESTHASHGenerator extends DOMHASHGenerator
org.wso2.caching.digest.DigestGenerator
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
MD5_DIGEST_ALGORITHM
Deprecated.
String representing the MD5 digest algorithm.
|
SHA_DIGEST_ALGORITHM, SHA1_DIGEST_ALGORITHM
Constructor and Description |
---|
REQUESTHASHGenerator()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getDigest(org.apache.axis2.context.MessageContext msgContext)
Deprecated.
This is the implementation of the getDigest method and will implement the Extended DOMHASH algorithm based HTTP
request identifications.
|
byte[] |
getDigest(org.apache.axiom.om.OMElement element,
String toAddress,
Map<String,String> headers,
String digestAlgorithm)
Deprecated.
This is an overloaded method for the digest generation for OMElement and request.
|
byte[] |
getDigest(org.apache.axiom.om.OMNode node,
String toAddress,
Map<String,String> headers,
String digestAlgorithm)
Deprecated.
This is an overloaded method for the digest generation for OMNode and request.
|
byte[] |
getDigest(String key,
String value,
String digestAlgorithm)
Deprecated.
This is an overloaded method for the digest generation for HTTP header propery.
|
compareOMAttribute, compareOMDocument, compareOMNode, getAttributesWithoutNS, getDigest, getDigest, getDigest, getDigest, getDigest, getDigest, getExpandedName, getExpandedName, getStringRepresentation, getValidElements, init
public static final String MD5_DIGEST_ALGORITHM
public String getDigest(org.apache.axis2.context.MessageContext msgContext) throws CachingException
getDigest
in interface DigestGenerator
getDigest
in class DOMHASHGenerator
msgContext
- - MessageContext on which the XML node identifier will be generatedCachingException
- if there is an error in generating the digest key#getDigest(org.apache.axis2.context.MessageContext)
public byte[] getDigest(org.apache.axiom.om.OMNode node, String toAddress, Map<String,String> headers, String digestAlgorithm) throws CachingException
node
- - OMNode to be subjected to the key generationtoAddress
- - Request To address to be subjected to the key generationheaders
- - Header parameters to be subjected to the key generationdigestAlgorithm
- - digest algorithm as a StringCachingException
- if there is an error in generating the digestpublic byte[] getDigest(org.apache.axiom.om.OMElement element, String toAddress, Map<String,String> headers, String digestAlgorithm) throws CachingException
element
- - OMElement to be subjected to the key generationtoAddress
- - Request To address to be subjected to the key generationheaders
- - Header parameters to be subjected to the key generationdigestAlgorithm
- - digest algorithm as a StringCachingException
- if there is an io error or the specified algorithm is incorrectpublic byte[] getDigest(String key, String value, String digestAlgorithm) throws CachingException
key
- - Key of the header property subjected to the key generationvalue
- - Value of the header property subjected to the key generationdigestAlgorithm
- - digest algorithm as a StringCachingException
- if the specified algorithm is incorrect or the encoding is not supported by the
processorCopyright © 2022 WSO2. All rights reserved.