Package org.apache.harmony.auth

Examples of org.apache.harmony.auth.UnixNumericGroupPrincipal


    private void getPrinclpalsFromJndi() {
        unixPrincipal = new UnixPrincipal(userID);
        unixNumericUserPrincipal = new UnixNumericUserPrincipal(uidNumber);
        unixNumericGroupPrincipals = new HashSet<UnixNumericGroupPrincipal>();
        unixNumericGroupPrincipals.add(new UnixNumericGroupPrincipal(gidNumber,
                true));
    }
View Full Code Here


    private void getPrinclpalsFromJndi() {
        unixPrincipal = new UnixPrincipal(userID);
        unixNumericUserPrincipal = new UnixNumericUserPrincipal(uidNumber);
        unixNumericGroupPrincipals = new HashSet<UnixNumericGroupPrincipal>();
        unixNumericGroupPrincipals.add(new UnixNumericGroupPrincipal(gidNumber,
                true));
    }
View Full Code Here

        }
        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

Related Classes of org.apache.harmony.auth.UnixNumericGroupPrincipal

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.