« Back to Unified Contact Center Express CTI (UCCXCTI)

issues of Java implementation in UCCX editor

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
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.

RE: issues of Java implementation in UCCX editor
uccx java array of byte java.security.messagedigest
Answer
11/2/10 1:19 PM as a reply to Supapong Putthayangkura.
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.

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); }