Package org.geoserver.security.config

Examples of org.geoserver.security.config.SecurityFilterConfig


                });
            }
   
        };
        for (String fName : listFilters()) {
            SecurityFilterConfig fConfig = loadFilterConfig(fName, mh);
            if (fConfig != null) {
                if (fConfig instanceof J2eeAuthenticationBaseFilterConfig) {
                    J2eeAuthenticationBaseFilterConfig j2eeConfig = (J2eeAuthenticationBaseFilterConfig) fConfig;
                    // add default J2EE RoleSource that was the only one possible
                    // before 2.5
View Full Code Here


     * is an instance of the specified class.
     */
    public SortedSet<String> listFilters(Class<?> type) throws IOException {
        SortedSet<String> configs = new TreeSet<String>();
        for (String name : listFilters()) {
            SecurityFilterConfig config = (SecurityFilterConfig) loadFilterConfig(name);
            if (config.getClassName() == null) {
                continue;
            }

            try {
                if (type.isAssignableFrom(Class.forName(config.getClassName()))) {
                    configs.add(config.getName());
                }
            } catch (ClassNotFoundException e) {
                //ignore and continue
                LOGGER.log(Level.WARNING, e.getMessage(), e);
            }
View Full Code Here

        // load and store all filter configuration
        // some filter configurations may have their class name as top level xml element in config.xml,
        // the alias should be used instead, this was bug fixed during GSIP 82
        if (migratedFrom21== false) {
            for (String fName : listFilters()) {
                SecurityFilterConfig fConfig = loadFilterConfig(fName );
                if (fConfig!=null)
                    saveFilter(fConfig);
            }
        }
       
View Full Code Here

    @Before
    public void revertFilters() throws Exception {
        GeoServerSecurityManager secMgr = getSecurityManager();
        if (secMgr.listFilters().contains(testFilterName2)) {
            SecurityFilterConfig config = secMgr.loadFilterConfig(testFilterName2);
            secMgr.removeFilter(config);
        }
    }
View Full Code Here

TOP

Related Classes of org.geoserver.security.config.SecurityFilterConfig

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.