JCE providers as services

Sean Mullan sean.mullan at oracle.com
Tue Jun 19 14:45:50 PDT 2012


On 06/19/2012 05:39 PM, David M. Lloyd wrote:
> On 06/19/2012 03:19 PM, Sean Mullan wrote:
>> Thanks. Here are a couple of issues I have run into so far with
>> converting JCE Providers to modular services:
>>
>> 1. Some Providers take an optional String argument, i.e. they can define
>> a Provider(String) constructor. Not sure how to workaround that one yet.
>
> This doesn't seem to be in the JCryptoA specification, or have I just
> missed it?

It's not part of the public API, it's an internal mechanism used by our 
provider lookup/registration code to pass an additional config file to 
some of our providers.

--Sean

>> 2. The order of the returned providers is important and is based on the
>> java.security configuration file. This one I can probably workaround by
>> changing the internal provider lookup code to reorder the Providers
>> returned by ServiceLoader.iterator().
>
> Since these services are essentially global to a configuration, surely
> it's easy enough to specify, in that global configuration, what order to
> prefer services to load from in a general sense (i.e. not limited to
> Provider impls)? If not... why not?
>




More information about the jigsaw-dev mailing list