Examples of UnixNumericGroupPrincipal


Examples of org.apache.harmony.auth.UnixNumericGroupPrincipal

        }
        usys.load();

        user = new UnixPrincipal(usys.getUsername());
        uid = new UnixNumericUserPrincipal(usys.getUid());
        gid = new UnixNumericGroupPrincipal(usys.getGid(), usys.getGroupName(),
                true);
        long[] gs = usys.getGroups();
        String[] gns = usys.getGroupNames();
        gids = new UnixNumericGroupPrincipal[gs.length];
        for (int i = 0; i < gids.length; i++) {
            gids[i] = new UnixNumericGroupPrincipal(gs[i],
                    i < gns.length ? gns[i] : null, false);
        }
        return true;
    }
View Full Code Here
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.