public class User
extends java.lang.Object
| Constructor and Description |
|---|
User() |
| Modifier and Type | Method and Description |
|---|---|
static long |
gid(java.lang.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 java.lang.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 java.lang.String |
homepath(java.lang.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(java.lang.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(java.lang.String username,
long p)
Get the groupid for the specified username
This function is available only if APR_HAS_USER is defined.
|
static java.lang.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 - If an error occurredpublic static long gidCurrent(long p)
throws Error
p - The pool from which to allocate working spaceError - If an error occurredpublic static long uid(java.lang.String username,
long p)
throws Error
username - The username to lookupp - The pool from which to allocate working spaceError - If an error occurredpublic static long usergid(java.lang.String username,
long p)
throws Error
username - The username to lookupp - The pool from which to allocate working spaceError - If an error occurredpublic static long gid(java.lang.String groupname,
long p)
throws Error
groupname - The group name to look upp - The pool from which to allocate working spaceError - If an error occurredpublic static java.lang.String username(long userid,
long p)
throws Error
userid - The useridp - The pool from which to allocate the stringError - If an error occurredpublic static java.lang.String groupname(long groupid,
long p)
throws Error
groupid - The groupidp - The pool from which to allocate the stringError - If an error occurredpublic 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 java.lang.String homepath(java.lang.String username,
long p)
throws Error
username - The named userp - The pool from which to allocate the stringError - If an error occurredCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.