The JaasAuthenticationProvider takes an instance of LoginExceptionResolver
to resolve LoginModule specific exceptions to Spring Security AuthenticationExceptions.
The SecurityContextLoginModule allows a Jaas based application to authenticate against Spring Security.
If there is no Authentication in the
SecurityContextHolder the login() method will throw a LoginException
by default.