Z
Zheng Da
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.
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.