public final class StructPasswd extends Object
Os.getpwnam(java.lang.String) and Os.getpwuid(int). Corresponds to C's
struct passwd from <pwd.h>.| Modifier and Type | Field and Description |
|---|---|
String |
pw_dir |
int |
pw_gid |
String |
pw_name |
String |
pw_shell |
int |
pw_uid |
| Constructor and Description |
|---|
StructPasswd(String pw_name,
int pw_uid,
int pw_gid,
String pw_dir,
String pw_shell)
Constructs an instance with the given field values.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
Returns a string containing a concise, human-readable description of this
object.
|
public final String pw_name
public final int pw_uid
public final int pw_gid
public final String pw_dir
public final String pw_shell
public String toString()
ObjectgetClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString method
if you intend implementing your own toString method.