Package org.geoserver.security

Examples of org.geoserver.security.AuthenticationKeyMapper


                try {                   
                    //AuthenticationKeyFilterPanel.this.updateModel();
                    AuthenticationKeyFilterConfig config = AuthenticationKeyFilterPanel.this.model.getObject();
                   
                    getSecurityManager().saveFilter(config);
                    AuthenticationKeyMapper mapper = (AuthenticationKeyMapper) GeoServerExtensions.bean(config.getAuthKeyMapperName());
                    mapper.setSecurityManager(getSecurityManager());
                    mapper.setUserGroupServiceName(config.getUserGroupServiceName());
                    int numberOfNewKeys=mapper.synchronize();
                    info(new StringResourceModel("synchronizeSuccessful",AuthenticationKeyFilterPanel.this, null,new Object[] {numberOfNewKeys}).getObject());
                }
                catch(Exception e) {
                    error(e);                   
                    LOGGER.log(Level.WARNING, "Authentication key  error ", e);
View Full Code Here


    }


    private Map<String, String> getMapperParameters(String authKeyMapperName) {
        if(authKeyMapperName != null) {
            AuthenticationKeyMapper mapper = (AuthenticationKeyMapper)GeoServerExtensions.bean(authKeyMapperName);
            if(mapper != null) {
                return mapper.getMapperConfiguration();
            }
        }
        return new HashMap<String, String>();
    }
View Full Code Here

TOP

Related Classes of org.geoserver.security.AuthenticationKeyMapper

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.