public class UnixUser extends Object
Modifier | Constructor and Description |
---|---|
|
UnixUser(String userName) |
protected |
UnixUser(String userName,
String gecos,
String dir,
String shell,
int uid,
int gid,
Set<String> groups)
Copy constructor for mocking.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
exists(String name) |
String |
getDir()
Gets the home directory of this user.
|
String |
getGecos()
Gets the gecos (the real name) of this user.
|
int |
getGID()
Gets the GID of this user.
|
Set<String> |
getGroups()
Gets the groups that this user belongs to.
|
String |
getShell()
Gets the shell of this user.
|
int |
getUID()
Gets the UID of this user.
|
String |
getUserName()
Gets the unix account name.
|
public UnixUser(String userName) throws PAMException
PAMException
public String getUserName()
public int getUID()
public int getGID()
public String getGecos()
public String getDir()
public String getShell()
public Set<String> getGroups()
public static boolean exists(String name)
Copyright © 2018. All rights reserved.