RFR 8047789: auth.login.LoginContext needs to be updated to work with modules

Alan Bateman Alan.Bateman at oracle.com
Fri Mar 20 15:38:35 UTC 2015


On 20/03/2015 14:39, Wang Weijun wrote:
> Please review the code changes at
>
>     http://cr.openjdk.java.net/~weijun/8047789/webrev.03/
>
> LoginContext is updated to use ServiceLoader to load configured LoginModules, and fallback to reflection if it cannot find one. Please notice that the fix does not include configuration of existing LoginModules since the current jdk9/dev module system does not support multiple modules implementing the same interface. Suppose it does, these 2 extra files will do the configuration:
>
>
Just to clarify this, there isn't a module system in JDK 9 yet. The 
issue here is just having several resources named 
META-INF/services/javax.security.auth.spi.LoginModule as the build needs 
to concatenate the entries to create one services configuration file. 
This is a temporary issue of course and same named resources won't be an 
issue once all resources in the jimage container are keyed on module. 
Also as you said, we don't expect services configuration files will be 
needed anyway.

-Alan.


More information about the jigsaw-dev mailing list