issues of Java implementation in UCCX editor

Version 1
    This document was generated from CDN thread

    Created by: Suapong Putthayangkura on 01-06-2010 04:10:19 AM
    I cannot use 'java.security.MessageDigest' in UCCX editor.
    When I use "java.security.MessageDigest" in SET value of a variable and then apply the script, SET disappear immediately from the script.
    *My project requires hashing function: SHA-1 and MD5.

    Subject: RE: issues of Java implementation in UCCX editor
    Replied by: Supapong Putthayangkura on 02-11-2010 08:19:06 AM
    I cannot use 'java.security.MessageDigest' in UCCX editor.
    When I use "java.security.MessageDigest" in SET value of a variable and then apply the script, SET disappear immediately from the script.
    *My project requires hashing function: SHA-1 and MD5.


    Additional information:
    As I known, an array of byte, Byte[], is not supported in UCCX editor. Bug will be occured when I use this datatype.

    Subject: RE: issues of Java implementation in UCCX editor
    Replied by: Matthew Gibson on 20-11-2012 01:11:06 PM
    Download the Java Commons Codec library from: http://commons.apache.org/codec/
    Upload it into UCCX Administration > Applications > Document Management > default > classpath
    In UCCX Administration go to System > Custom File Configuration and move the commons codec jar file from available classpath entries to selected classpath entries.
    Within the script editor you can use the following:
    { return org.apache.commons.codec.digest.DigestUtils.md5Hex(password); }
    { return org.apache.commons.codec.digest.DigestUtils.sha256(password); }