Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

Does anyone install JCE 1.2.2 in J2ME

Thread view: 
Zheng Da - 01 May 2006 09:09 GMT
Can JCE 1.2.2 be installed in J2ME?
The J2ME I use is CrEme.
I want to encrypt and decrypt data, so I tried to install JCE 1.2.2 in
it.
I set the class path to include the directory containing the JCE 1.2.2
framework and "SunJCE" provider JAR files.
The policy file I use is:
grant{
    permission java.security.AllPermission;
};
That is, all permission is granted.
Then, I register the SunJCE provider by adding the following lines at
the beginning of my program:
Security.addProvider(new com.sun.crypto.provider.SunJCE());

However, I still get the
java.lang.ExceptionInInitializerError.
java.lang.SecurityException:Cannot set up certs for trusted
CAs:java.security.privilegedActionException

So what should I do to install the JCE?
Thank you.
Darryl L. Pierce - 01 May 2006 11:28 GMT
> Can JCE 1.2.2 be installed in J2ME?

No, JCE is for JavaSE.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: <http://mcpierce.multiply.com>
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard

Zheng Da - 01 May 2006 17:17 GMT
<Using JCE in a J2ME environment> in the developerWorks of IBM
describes how to implement JCE in J2ME, though I don't quite understand
the article.
Then if JCE cannot be installed in J2ME, is there other packages for
J2ME to encrypt and decrypt the data?

> > Can JCE 1.2.2 be installed in J2ME?
>
[quoted text clipped - 5 lines]
> "By doubting we come to inquiry, through inquiry truth." - Peter Abelard
> *** Posted via a free Usenet account from http://www.teranews.com ***
Darryl L. Pierce - 01 May 2006 18:27 GMT
> Then if JCE cannot be installed in J2ME, is there other packages for
> J2ME to encrypt and decrypt the data?

Take a look at the Bouncy Castle libraries. That's what I use.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
http://mcpierce.multiply.com/
"What do you care what people think, Mr. Feynman?"



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.