toolbox.oracle.xpath.ext
Class DigestXPathImpl

java.lang.Object
  extended by toolbox.oracle.xpath.ext.DigestXPathImpl
All Implemented Interfaces:
oracle.fabric.common.xml.xpath.IXPathFunction

public class DigestXPathImpl
extends java.lang.Object
implements oracle.fabric.common.xml.xpath.IXPathFunction

XPath function implementation to perform a one-way hash on the given string and return either a hexadecimal or base64 representation of the hash.

The function accepts 3 arguments:


Constructor Summary
DigestXPathImpl()
          Default constructor.
 
Method Summary
 java.lang.Object call(oracle.fabric.common.xml.xpath.IXPathContext context, java.util.List args)
          Perform a one-way hash.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigestXPathImpl

public DigestXPathImpl()
Default constructor.

Method Detail

call

public java.lang.Object call(oracle.fabric.common.xml.xpath.IXPathContext context,
                             java.util.List args)
                      throws oracle.fabric.common.xml.xpath.XPathFunctionException
Perform a one-way hash.

Specified by:
call in interface oracle.fabric.common.xml.xpath.IXPathFunction
Parameters:
context - The context at the point in the expression when the function is called.
args - The list of arguments.
Returns:
Object containing the concatenated string.
Throws:
oracle.fabric.common.xml.xpath.XPathFunctionException