RFR 7191662: JCE providers should be located via ServiceLoader
Alan Bateman
Alan.Bateman at oracle.com
Wed Jun 17 08:34:12 UTC 2015
On 16/06/2015 00:58, Valerie Peng wrote:
>
> It seems that the jimage refresh change may still take some time, so
> we will end up removing the makefile related changes and then
> deferring the ServiceLoader related changes to Jake workspace.
>
> Here is the latest webrev (Security source/test changes only, no more
> makefile changes)
> http://cr.openjdk.java.net/~valeriep/7191662/webrev.04/
>
> Summary of changes from webrev.03:
> 1) switch back to provider class names for java.security file
> 2) separated out the java.policy change into its own as SQE has filed
> a bug for it
> 3) updated sun.security.jca.Providers class due to 1)
> 4) fixed sun.security.tools.jarsigner.Main to use the new
> Provider.configure() api
> 5) fixed a bug in sun.security.pkcs11.PKCS11Test regarding searching
> and configuring PKCS11 provider
I'm also happy with dropping the make file changes and the
META-INF/services files from this patch.
Not for this patch but at some point I think we should re-examine the
javadoc in Provider to make it clearer how it can be deployed as a
service provider. Specifically the wording "A provider normally
identifies itself with a file named java.security.Provider in the
resource directory META-INF/services" could be re-examined.
-Alan.
More information about the build-dev
mailing list