Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4422008

SunJCE provider has not be invoked properly if it is at the bundled extension

XMLWordPrintable

      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

            shihliu Sharon Liu (Inactive)
            skesunw Stuart Ke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: