-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
1.4.0
-
generic
-
generic
JDK Version:
JDK1.4 b53
JDK1.3 FCS
JCE Version:
Merlin version
How to reproduce:
1. get the testing code from this attachment
2. jar xvf test.jar
3. cd bundle
4. set JAVA_HOME
5. sh Run.sh
6. Here is the result
JDK1.4b53 JDK1.3FCS
jce1.2 PASS PASS
jce1.2.1 FAILED FAILED(will pass if given
java.lang.RuntimePermission getProtectionDomain)
++++++++++++++++++++++ The Exception for JDK1.4 b53 ++++++++++++++++++++++
=== This test will PASS if using jce1_2-do.jar ==========
Status: PASS -- I got a cipher instance
=== This test will FAIL if using sunjce_provider.jar ==========
Status: FAIL -- I can not get a cipher instance java.security.NoSuchAlgorithmException: Class com.sun.crypto.provider.DESCipher configured for Cipher cannot be instantiated: null
++++++++++++++++++++++ The Exception for JDK1.3 ++++++++++++++++++++++
=== This test will PASS if using jce1_2-do.jar ==========
Status: PASS -- I got a cipher instance
=== This test will FAIL if using sunjce_provider.jar ==========
Status: FAIL -- I can not get a cipher instance java.security.AccessControlException: access denied (java.lang.RuntimePermission getProtectionDomain)
But after I give java.lang.RuntimePermission getProtectionDomain as it required,
it will pass nicely
JDK1.4 b53
JDK1.3 FCS
JCE Version:
Merlin version
How to reproduce:
1. get the testing code from this attachment
2. jar xvf test.jar
3. cd bundle
4. set JAVA_HOME
5. sh Run.sh
6. Here is the result
JDK1.4b53 JDK1.3FCS
jce1.2 PASS PASS
jce1.2.1 FAILED FAILED(will pass if given
java.lang.RuntimePermission getProtectionDomain)
++++++++++++++++++++++ The Exception for JDK1.4 b53 ++++++++++++++++++++++
=== This test will PASS if using jce1_2-do.jar ==========
Status: PASS -- I got a cipher instance
=== This test will FAIL if using sunjce_provider.jar ==========
Status: FAIL -- I can not get a cipher instance java.security.NoSuchAlgorithmException: Class com.sun.crypto.provider.DESCipher configured for Cipher cannot be instantiated: null
++++++++++++++++++++++ The Exception for JDK1.3 ++++++++++++++++++++++
=== This test will PASS if using jce1_2-do.jar ==========
Status: PASS -- I got a cipher instance
=== This test will FAIL if using sunjce_provider.jar ==========
Status: FAIL -- I can not get a cipher instance java.security.AccessControlException: access denied (java.lang.RuntimePermission getProtectionDomain)
But after I give java.lang.RuntimePermission getProtectionDomain as it required,
it will pass nicely