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

Services should be registered in each Cryptographic Service Provider

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8u60
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:
    • Subcomponent:
    • Introduced In Build:
      b20
    • Introduced In Version:
    • CPU:
      sparc
    • OS:
      solaris_11

      Description

      In the current implementation, only provider PKCS11 register the services in the constructor. For other providers, they do not register the services in advance.

      Thus, when getting a service from a particular provider, inside the getService() method in java.security.Provider.java, it looks up the serviceMap. As the services are not loaded before, the serviceMap is always null and the putService is never called.

      As this getService() is a synchronized method, which causes performance regression when multiple threads are trying to get service.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ascarpino Anthony Scarpino
                Reporter:
                lwang Luyang Wang (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: