Package org.springframework.security.providers.jaas

Examples of org.springframework.security.providers.jaas.JaasAuthenticationProvider


     * Test constructor rejects null UserDetailsService.
     */
    @Test(expected = IllegalArgumentException.class)
    public void testConstructorNullUserDetailsService()
    {          
        final JaasAuthenticationProvider provider = context.mock(JaasAuthenticationProvider.class);
        new JaasAuthenticationProviderWrapper(provider, null);             
    }
View Full Code Here


     * and return null also.
     */
    @Test
    public void testAuthenticateParentAuthenticateReturnsNull()
    {
        final JaasAuthenticationProvider provider = context.mock(JaasAuthenticationProvider.class);
        final UsernamePasswordAuthenticationToken auth = context.mock(UsernamePasswordAuthenticationToken.class);
        final UserDetailsService uds = context.mock(UserDetailsService.class);
       
        context.checking(new Expectations()
        {
View Full Code Here

     * contains the userDetails object loaded from the passed in UserDetailsService.
     */
    @Test
    public void testAuthenticate()
    {
        final JaasAuthenticationProvider provider = context.mock(JaasAuthenticationProvider.class);
        final JaasAuthenticationToken token = context.mock(JaasAuthenticationToken.class);
        final UsernamePasswordAuthenticationToken auth = context.mock(UsernamePasswordAuthenticationToken.class);
        final UserDetailsService uds = context.mock(UserDetailsService.class);
        final UserDetails ud = context.mock(UserDetails.class);
       
View Full Code Here

     * Test that the supports method is just a pass-through.
     */
    @Test
    public void testSupports()
    {
        final JaasAuthenticationProvider provider = context.mock(JaasAuthenticationProvider.class);       
        final UserDetailsService uds = context.mock(UserDetailsService.class);
        final Sequence executeSequence = context.sequence("executeSequence");
       
        context.checking(new Expectations()
        {
View Full Code Here

TOP

Related Classes of org.springframework.security.providers.jaas.JaasAuthenticationProvider

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.