Package org.geoserver.security.filter

Examples of org.geoserver.security.filter.GeoServerAuthenticationFilter


    }

    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.applicableForServices())
                result.add(filterName);           
        }
        return result;
    }
View Full Code Here


    }

    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

                    }
                    if (filter==null)
                        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

TOP

Related Classes of org.geoserver.security.filter.GeoServerAuthenticationFilter

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.