Hi list,
i'm having problems to generate a simple MD5.
if I serve an XSP with just this line in <xsp:logic>
java.security.MessageDigest md =
java.security.MessageDigest.getInstance("MD5");
I get a "NoSuchAlgorithmException".
The first option in my java.security (1.5) is
sun.security.provider.Sun and this I can instantiate without any
problem. If I try:
java.security.Provider p = new sun.security.provider.Sun();
java.util.Set servicios = p.getServices();
Object[] serviciosarray = servicios.toArray();
java.security.Provider.Service md5service =
(java.security.Provider.Service) serviciosarray[6];
...
<xsp:expr>md5service.toString()</xsp:expr>
Shows:
SUN: MessageDigest.MD5 -> sun.security.provider.MD5 attributes:
{ImplementedIn=Software}
Is it related to Cocoon? (sorry if it isn't)
Thanks in advance for any help,
--
Carlos Palol
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]