public class User extends Object
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
static long |
gid(String groupname,
long p)
Get the groupid for a specified group name
This function is available only if APR_HAS_USER is defined.
|
static int |
gidcompare(long left,
long right)
Compare two group identifiers for equality.
|
static long |
gidCurrent(long p)
Get the groupid of the calling process
This function is available only if APR_HAS_USER is defined.
|
static String |
groupname(long groupid,
long p)
Get the group name for a specified groupid
This function is available only if APR_HAS_USER is defined.
|
static String |
homepath(String username,
long p)
Get the home directory for the named user
This function is available only if APR_HAS_USER is defined.
|
static long |
uid(String username,
long p)
Get the userid for the specified username
This function is available only if APR_HAS_USER is defined.
|
static int |
uidcompare(long left,
long right)
Compare two user identifiers for equality.
|
static long |
uidCurrent(long p)
Get the userid (and groupid) of the calling process
This function is available only if APR_HAS_USER is defined.
|
static long |
usergid(String username,
long p)
Get the groupid for the specified username
This function is available only if APR_HAS_USER is defined.
|
static String |
username(long userid,
long p)
Get the user name for a specified userid
This function is available only if APR_HAS_USER is defined.
|
public static long uidCurrent(long p) throws Error
p
- The pool from which to allocate working spaceError
public static long gidCurrent(long p) throws Error
p
- The pool from which to allocate working spaceError
public static long uid(String username, long p) throws Error
username
- The username to lookupp
- The pool from which to allocate working spaceError
public static long usergid(String username, long p) throws Error
username
- The username to lookupp
- The pool from which to allocate working spaceError
public static long gid(String groupname, long p) throws Error
groupname
- The group name to look upp
- The pool from which to allocate working spaceError
public static String username(long userid, long p) throws Error
userid
- The useridp
- The pool from which to allocate the stringError
public static String groupname(long groupid, long p) throws Error
groupid
- The groupidp
- The pool from which to allocate the stringError
public static int uidcompare(long left, long right)
left
- One uid to testright
- Another uid to testpublic static int gidcompare(long left, long right)
left
- One gid to testright
- Another gid to testpublic static String homepath(String username, long p) throws Error
username
- The named userp
- The pool from which to allocate the stringError
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.