Package org.globus.security.gridmap

Examples of org.globus.security.gridmap.GridMap


                    new ResourceSecurityConfig(this.secDescPath);
        securityConfig.init();
       
        this.securityDescriptor = securityConfig.getSecurityDescriptor();
        this.securityDescriptor.setInitialized(false);
        final GridMap map = new GridMap();

        final Caller[] callers =
                this.manager.getAuthorizedManagers(this.id, this.type);
        if (callers != null) {
            for (int i = 0; i < callers.length; i++) {
                final Caller caller = callers[i];
                if (caller != null && !caller.isSuperUser()) {
                    map.map(caller.getIdentity(), "fakeuserid");
                }
            }
        }
        this.securityDescriptor.setGridMap(map);
    }
View Full Code Here


            securityConfig.init();
            this.securityDescriptor = securityConfig.getSecurityDescriptor();
        }

        this.securityDescriptor.setInitialized(false);
        final GridMap map = new GridMap();
        if (this.creatorDN != null) {
            map.map(this.creatorDN, "fakeuserid");
        }
        if (this.bootstrapDN != null) {
            map.map(this.bootstrapDN, "fakeuserid");
        }
        this.securityDescriptor.setGridMap(map);
    }
View Full Code Here

        System.out.println("Adding DN '" + dn + "'");
        System.out.println(" ... with user mapping '" + userMapping + "'");
        System.out.println(" ... to grid-mapfile '" + path + "'");

        final GridMap gridmap = new GridMap();
        gridmap.load(path);

        boolean foundOne = false;
        final String[] userids = gridmap.getUserIDs(dn);
        if (userids != null && userids.length > 0) {
            for (int i = 0; i < userids.length; i++) {
                String userid = userids[i];
                if (userid == null) {
                    throw new Exception("invalid grid-mapfile, user mapping " +
View Full Code Here

TOP

Related Classes of org.globus.security.gridmap.GridMap

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.