Package org.geoserver.xacml.security

Source Code of org.geoserver.xacml.security.XACMLGeoserverUserDao

/* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
* This code is licensed under the GPL 2.0 license, availible at the root
* application directory.
*/

package org.geoserver.xacml.security;

import org.springframework.security.GrantedAuthority;
import org.springframework.security.userdetails.User;
import org.geoserver.security.GeoserverUserDao;
import org.geoserver.xacml.geoxacml.GeoXACMLConfig;

public class XACMLGeoserverUserDao extends GeoserverUserDao {

    @Override
    protected User createUserObject(String username, String password, boolean isEnabled,
            GrantedAuthority[] authorities) {
        User user = super.createUserObject(username, password, isEnabled, authorities);
        GeoXACMLConfig.getXACMLRoleAuthority().transformUserDetails(user);
        return user;
    }

}
TOP

Related Classes of org.geoserver.xacml.security.XACMLGeoserverUserDao

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.