Class REQUESTHASHGenerator
- java.lang.Object
-
- org.wso2.carbon.mediator.cache.digest.DOMHASHGenerator
-
- org.wso2.carbon.mediator.cache.digest.REQUESTHASHGenerator
-
- All Implemented Interfaces:
Serializable
,DigestGenerator
@Deprecated public class REQUESTHASHGenerator extends DOMHASHGenerator
Deprecated.This is the extended implementation of DOMHASH algorithm over a HTTP request and Payload (XML Node) for retrieving a unique key for the request.- See Also:
DigestGenerator
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
MD5_DIGEST_ALGORITHM
Deprecated.String representing the MD5 digest algorithm.-
Fields inherited from class org.wso2.carbon.mediator.cache.digest.DOMHASHGenerator
SHA_DIGEST_ALGORITHM, SHA1_DIGEST_ALGORITHM
-
-
Constructor Summary
Constructors Constructor Description REQUESTHASHGenerator()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byte[]
getDigest(String key, String value, String digestAlgorithm)
Deprecated.This is an overloaded method for the digest generation for HTTP header propery.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.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.-
Methods inherited from class org.wso2.carbon.mediator.cache.digest.DOMHASHGenerator
compareOMAttribute, compareOMDocument, compareOMNode, getAttributesWithoutNS, getDigest, getDigest, getDigest, getDigest, getDigest, getDigest, getExpandedName, getExpandedName, getStringRepresentation, getValidElements, init
-
-
-
-
Field Detail
-
MD5_DIGEST_ALGORITHM
public static final String MD5_DIGEST_ALGORITHM
Deprecated.String representing the MD5 digest algorithm.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDigest
public String getDigest(org.apache.axis2.context.MessageContext msgContext) throws CachingException
Deprecated.This is the implementation of the getDigest method and will implement the Extended DOMHASH algorithm based HTTP request identifications. This will consider To address of the request, HTTP headers and XML Payload in generating the digets. So, in effect this will uniquely identify the HTTP request with the same To address, Headers and Payload.- Specified by:
getDigest
in interfaceDigestGenerator
- Overrides:
getDigest
in classDOMHASHGenerator
- Parameters:
msgContext
- - MessageContext on which the XML node identifier will be generated- Returns:
- Object representing the DOMHASH value of the normalized XML node
- Throws:
CachingException
- if there is an error in generating the digest key- See Also:
#getDigest(org.apache.axis2.context.MessageContext)
-
getDigest
public byte[] getDigest(org.apache.axiom.om.OMNode node, String toAddress, Map<String,String> headers, String digestAlgorithm) throws CachingException
Deprecated.This is an overloaded method for the digest generation for OMNode and request.- Parameters:
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 String- Returns:
- byte[] representing the calculated digest over the provided node
- Throws:
CachingException
- if there is an error in generating the digest
-
getDigest
public byte[] getDigest(org.apache.axiom.om.OMElement element, String toAddress, Map<String,String> headers, String digestAlgorithm) throws CachingException
Deprecated.This is an overloaded method for the digest generation for OMElement and request.- Parameters:
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 String- Returns:
- byte[] representing the calculated digest over the provided element
- Throws:
CachingException
- if there is an io error or the specified algorithm is incorrect
-
getDigest
public byte[] getDigest(String key, String value, String digestAlgorithm) throws CachingException
Deprecated.This is an overloaded method for the digest generation for HTTP header propery.- Parameters:
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 String- Returns:
- byte[] representing the calculated digest over the provided attribute
- Throws:
CachingException
- if the specified algorithm is incorrect or the encoding is not supported by the processor
-
-