Package org.apache.activemq.shiro.authc

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


        assertTrue(plugin.isAuthenticationEnabled());
    }

    public void testSetAuthenticationPolicy() {
        ShiroPlugin plugin = new ShiroPlugin();
        DefaultAuthenticationPolicy policy = new DefaultAuthenticationPolicy();
        plugin.setAuthenticationPolicy(policy);
        assertSame(policy, plugin.getAuthenticationPolicy());
        assertSame(policy, plugin.getAuthenticationFilter().getAuthenticationPolicy());
        assertSame(policy, ((DefaultConnectionSubjectFactory) plugin.getSubjectFilter().getConnectionSubjectFactory()).getAuthenticationPolicy());
    }
View Full Code Here


        authorizationFilter = new AuthorizationFilter();

        // 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);
View Full Code Here

public class DefaultConnectionSubjectFactory implements ConnectionSubjectFactory {

    private AuthenticationPolicy authenticationPolicy;

    public DefaultConnectionSubjectFactory() {
        this.authenticationPolicy = new DefaultAuthenticationPolicy();
    }
View Full Code Here

TOP

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

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.