Package org.apache.activemq.shiro.authc

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


        this.factory = new DefaultConnectionSubjectFactory();
    }

    @Test
    public void testSetAuthenticationPolicy() {
        AuthenticationPolicy policy = new AuthenticationPolicy() {
            @Override
            public void customizeSubject(Subject.Builder subjectBuilder, ConnectionReference ref) {
                //To change body of implemented methods use File | Settings | File Templates.
            }
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

TOP

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

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.