Security, SATSA and J2ME

Hi,
i must develop a MIDlet using SATSA api.
So i have downloaded and installed J2ME and SATSA api.
I saw an example that use SATSA ( http://java.sun.com/j2me/docs/satsa-dg/AppD.html)
so i made a copy of the source code and pasted it in a .java file.
When i am using the SATSA emulator it wroks very nice. But when i try to use it
with the J2ME emulator a message appeared in the ktoolbar:
"Uncaught exception java/lang/NoClassDefFoundError: java/security/spec/KeySpec: Cannot create class in system package ."
And when i download the file into the Nokia the download is aborted.
I think the reason is that SATSA defines classes in java and javax packages and this
is forbidden in MIDP 2.0.
Am i right?
If the answer is yes has someone any idea to solve this problem?
Thanks.
Firejoke

Hi techybrainz,
The main problem with this API is that she has just begun to be
implemented in the new generation smartphones so if you have
an old smartphone read what i am saying down else i don't know
how to help you.
I am working with eclipse IDE and a solution if you just need
the crypto API of SATSA is to use BoucyCastle library.
You can download it at http://w ww.boucycastle.org
To use it you must also donwload a code obfuscator (I have choosen the Proguard
obfuscator).
Once you made this you only have to configure Eclipse to use Proguard (they explain
how to configure it on the proguard website).
After you just have to include the BoucyCastle API.zip in the library when you choose
Java setting (use "Add external JARs" button).
I hope this will help you.
(Sorry for the english i am bad in english).

Similar Messages

Maybe you are looking for