Add UsernameNotFoundException to default exception to event mappings list.

This commit is contained in:
Ben Alex 2005-11-05 09:20:14 +00:00
parent bdd0f3d055
commit 5a51f391a4
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,7 @@ import net.sf.acegisecurity.event.authentication.AuthenticationFailureProxyUntru
import net.sf.acegisecurity.event.authentication.AuthenticationFailureServiceExceptionEvent;
import net.sf.acegisecurity.event.authentication.AuthenticationSuccessEvent;
import net.sf.acegisecurity.providers.cas.ProxyUntrustedException;
import net.sf.acegisecurity.providers.dao.UsernameNotFoundException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@ -198,6 +199,8 @@ public class ProviderManager extends AbstractAuthenticationManager
AuthenticationFailureDisabledEvent.class.getName());
exceptionMappings.put(BadCredentialsException.class.getName(),
AuthenticationFailureBadCredentialsEvent.class.getName());
exceptionMappings.put(UsernameNotFoundException.class.getName(),
AuthenticationFailureBadCredentialsEvent.class.getName());
exceptionMappings.put(ConcurrentLoginException.class.getName(),
AuthenticationFailureConcurrentLoginEvent.class.getName());
exceptionMappings.put(ProviderNotFoundException.class.getName(),