Spring Security Framework

org.springframework.security.providers.jaas
Interface LoginExceptionResolver

All Known Implementing Classes:
DefaultLoginExceptionResolver

public interface LoginExceptionResolver

The JaasAuthenticationProvider takes an instance of LoginExceptionResolver to resolve LoginModule specific exceptions to Spring Security exceptions. For instance, a configured login module could throw a ScrewedUpPasswordException that extends LoginException, in this instance the LoginExceptionResolver implementation would return a BadCredentialsException.

Version:
$Revision: 2176 $
Author:
Ray Krueger

Method Summary
 SpringSecurityException resolveException(LoginException e)
          Translates a Jaas LoginException to an SpringSecurityException.
 

Method Detail

resolveException

SpringSecurityException resolveException(LoginException e)
Translates a Jaas LoginException to an SpringSecurityException.

Parameters:
e - The LoginException thrown by the configured LoginModule.
Returns:
The SpringSecurityException that the JaasAuthenticationProvider should throw.

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.