Class DefaultLoginExceptionResolver

  • All Implemented Interfaces:
    LoginExceptionResolver

    public class DefaultLoginExceptionResolver
    extends java.lang.Object
    implements LoginExceptionResolver
    This LoginExceptionResolver simply wraps the LoginException with an AuthenticationServiceException.
    • Constructor Detail

      • DefaultLoginExceptionResolver

        public DefaultLoginExceptionResolver()
    • Method Detail

      • resolveException

        public AuthenticationException resolveException​(javax.security.auth.login.LoginException ex)
        Description copied from interface: LoginExceptionResolver
        Translates a Jaas LoginException to an SpringSecurityException.
        Specified by:
        resolveException in interface LoginExceptionResolver
        Parameters:
        ex - The LoginException thrown by the configured LoginModule.
        Returns:
        The AuthenticationException that the JaasAuthenticationProvider should throw.