Package org.apache.activemq.shiro.authc

Examples of org.apache.activemq.shiro.authc.AuthenticationFilter


        assertSame(plugin.getAuthenticationFilter(), filter.getNext());
    }

    public void testSetAuthenticationFilter() {
        ShiroPlugin plugin = new ShiroPlugin();
        AuthenticationFilter filter = new AuthenticationFilter();
        plugin.setAuthenticationFilter(filter);
        assertSame(filter, plugin.getAuthenticationFilter());
        //assert that the AuthenticationFilter is always the next filter in the chain after the SubjectFilter:
        assertSame(plugin.getSubjectFilter().getNext(), filter);
    }
View Full Code Here


        // we want to share one AuthenticationPolicy instance across both the AuthenticationFilter and the
        // ConnectionSubjectFactory:
        AuthenticationPolicy authcPolicy = new DefaultAuthenticationPolicy();

        authenticationFilter = new AuthenticationFilter();
        authenticationFilter.setAuthenticationPolicy(authcPolicy);
        authenticationFilter.setNext(authorizationFilter);

        subjectFilter = new SubjectFilter();
        DefaultConnectionSubjectFactory subjectFactory = new DefaultConnectionSubjectFactory();
View Full Code Here

TOP

Related Classes of org.apache.activemq.shiro.authc.AuthenticationFilter

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.