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

name attribute of pkcs11 configuration file cannot contain space

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 5.0u1
    • security-libs
    • None

      If the name attribute of pkcs11 configuration have space, for instance, "Sun Hardware Accelerator",
      then we get the following exception:
      Exception in thread "main" java.security.ProviderException: Error parsing configuration
              at sun.security.pkcs11.Config.getConfig(Config.java:54)
              at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:78)
              at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:74)
              at TigerTest.main(TigerTest.java:10)
      Caused by: sun.security.pkcs11.ConfigurationException: Unknown keyword 'test', line 1
              at sun.security.pkcs11.Config.parse(Config.java:297)
              at sun.security.pkcs11.Config.<init>(Config.java:134)
              at sun.security.pkcs11.Config.getConfig(Config.java:50)

      ###@###.### 2004-09-03
      ###@###.### 2004-09-03

            Unassigned Unassigned
            shichan Shing Wai Chan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: