Package org.apache.activemq.shiro.subject

Examples of org.apache.activemq.shiro.subject.SubjectFilter


        assertEquals(ini, realm.getIni());
    }

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


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

        subjectFilter = new SubjectFilter();
        DefaultConnectionSubjectFactory subjectFactory = new DefaultConnectionSubjectFactory();
        subjectFactory.setAuthenticationPolicy(authcPolicy);
        subjectFilter.setConnectionSubjectFactory(subjectFactory);
        subjectFilter.setNext(authenticationFilter);
    }
View Full Code Here

TOP

Related Classes of org.apache.activemq.shiro.subject.SubjectFilter

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.