Class REQUESTHASHGenerator

    • Field Detail

      • MD5_DIGEST_ALGORITHM

        public static final String MD5_DIGEST_ALGORITHM
        Deprecated.
        String representing the MD5 digest algorithm.
        See Also:
        Constant Field Values
    • Constructor Detail

      • REQUESTHASHGenerator

        public REQUESTHASHGenerator()
        Deprecated.
    • 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 interface DigestGenerator
        Overrides:
        getDigest in class DOMHASHGenerator
        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 generation
        toAddress - - Request To address to be subjected to the key generation
        headers - - Header parameters to be subjected to the key generation
        digestAlgorithm - - 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 generation
        toAddress - - Request To address to be subjected to the key generation
        headers - - Header parameters to be subjected to the key generation
        digestAlgorithm - - 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 generation
        value - - Value of the header property subjected to the key generation
        digestAlgorithm - - 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