Package org.springframework.security.authentication

Examples of org.springframework.security.authentication.InternalAuthenticationServiceException


                String presentedPassword = authentication.getCredentials().toString();
                passwordEncoder.isPasswordValid(userNotFoundEncodedPassword, presentedPassword, null);
            }
            throw notFound;
        } catch (Exception repositoryProblem) {
            throw new InternalAuthenticationServiceException(repositoryProblem.getMessage(), repositoryProblem);
        }

        if (loadedUser == null) {
            throw new InternalAuthenticationServiceException(
                    "UserDetailsService returned null, which is an interface contract violation");
        }
        return loadedUser;
    }
View Full Code Here


        MockHttpServletResponse response = new MockHttpServletResponse();

        Log logger = mock(Log.class);
        MockAuthenticationFilter filter = new MockAuthenticationFilter(false);
        ReflectionTestUtils.setField(filter, "logger", logger);
        filter.exceptionToThrow = new InternalAuthenticationServiceException("Mock requested to do so");
        successHandler.setDefaultTargetUrl("http://monkeymachine.co.uk/");
        filter.setAuthenticationSuccessHandler(successHandler);

        filter.doFilter(request, response, chain);
View Full Code Here

                        "LdapAuthenticationProvider.badCredentials", "Bad credentials"));
            } else {
                throw notFound;
            }
        } catch (NamingException ldapAccessFailure) {
            throw new InternalAuthenticationServiceException(ldapAccessFailure.getMessage(), ldapAccessFailure);
        }
    }
View Full Code Here

TOP

Related Classes of org.springframework.security.authentication.InternalAuthenticationServiceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.