This class implementation retrieves and makes available Unix UID/GID/groups information for the current user.
Instantiate a UnixSystem and load the native library to access the underlying system information. if (loadedLibrary == false) { System.loadLibrary("jaas_unix"); loadedLibrary = true; } getUnixInfo();
UnixSystem
if (loadedLibrary == false) { System.loadLibrary("jaas_unix"); loadedLibrary = true; } getUnixInfo();
Get the GID for the current Unix user. returnthe GID for the current Unix user. return gid;
return gid;
Get the supplementary groups for the current Unix user. returnthe supplementary groups for the current Unix user. return groups;
return groups;
Get the UID for the current Unix user. returnthe UID for the current Unix user. return uid;
return uid;
Get the username for the current Unix user. returnthe username for the current Unix user. return username;
return username;