Examples of applicableForHtml()


Examples of org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.applicableForHtml()

        expect(secMgr.loadFilterConfig(
            GeoServerSecurityFilterChain.FILTER_SECURITY_INTERCEPTOR)).andReturn(filterConfig).anyTimes();
       
        GeoServerAnonymousAuthenticationFilter authFilter = createNiceMock(GeoServerAnonymousAuthenticationFilter.class);
        expect(authFilter.applicableForServices()).andReturn(true).anyTimes();
        expect(authFilter.applicableForHtml()).andReturn(true).anyTimes();
        expect(secMgr.loadFilter(
                GeoServerSecurityFilterChain.ANONYMOUS_FILTER)).andReturn(authFilter).anyTimes();
       
        GeoServerRoleFilter roleFilter = createNiceMock(GeoServerRoleFilter.class);
        expect(secMgr.loadFilter(
View Full Code Here

Examples of org.geoserver.security.filter.GeoServerAuthenticationFilter.applicableForHtml()

    public SortedSet<String> listFilterCandidates(GeoServerSecurityManager m) throws IOException {
        SortedSet<String> result = new TreeSet<String>();
        for (String filterName : m.listFilters(GeoServerAuthenticationFilter.class)) {
            GeoServerAuthenticationFilter filter = (GeoServerAuthenticationFilter)m.loadFilter(filterName);
            if (filter.applicableForHtml())
                result.add(filterName);           
        }
        return result;
    }
View Full Code Here

Examples of org.geoserver.security.filter.GeoServerAuthenticationFilter.applicableForHtml()

                        throw createSecurityException(SecurityConfigException.UNKNOWN_FILTER_$2,requestChain.getName(),filterName);
                    if (filter instanceof GeoServerAuthenticationFilter == false)
                        throw createSecurityException(SecurityConfigException.NOT_AN_AUTHENTICATION_FILTER_$2,requestChain.getName(),filterName);
                    GeoServerAuthenticationFilter authFilter = (GeoServerAuthenticationFilter) filter;
                   
                    if (requestChain instanceof HtmlLoginFilterChain && authFilter.applicableForHtml()==false) {       
                        throw createSecurityException(SecurityConfigException.NOT_A_HTML_AUTHENTICATION_FILTER_$2,requestChain.getName(),filterName);
                    }
                    if (requestChain instanceof ServiceLoginFilterChain && authFilter.applicableForServices()==false) {       
                        throw createSecurityException(SecurityConfigException.NOT_A_SERVICE_AUTHENTICATION_FILTER_$2,requestChain.getName(),filterName);
                    }
View Full Code Here

Examples of org.geoserver.security.filter.GeoServerUserNamePasswordAuthenticationFilter.applicableForHtml()

        GeoServerRoleFilter roleFilter = createNiceMock(GeoServerRoleFilter.class);
        expect(secMgr.loadFilter(
                GeoServerSecurityFilterChain.ROLE_FILTER)).andReturn(roleFilter).anyTimes();

        GeoServerUserNamePasswordAuthenticationFilter formFilter = createNiceMock(GeoServerUserNamePasswordAuthenticationFilter.class);
        expect(formFilter.applicableForHtml()).andReturn(true).anyTimes();
        expect(secMgr.loadFilter(
                GeoServerSecurityFilterChain.FORM_LOGIN_FILTER)).andReturn(formFilter).anyTimes();

        GeoServerBasicAuthenticationFilter basicFilter = createNiceMock(GeoServerBasicAuthenticationFilter.class);
        expect(basicFilter.applicableForServices()).andReturn(true).anyTimes();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.