FileDocCategorySizeDatePackage
UnixSystem.javaAPI DocJava SE 5 API1756Fri Aug 26 14:56:16 BST 2005com.sun.security.auth.module

UnixSystem

public class UnixSystem extends Object

This class implementation retrieves and makes available Unix UID/GID/groups information for the current user.

version
1.5, 12/19/03

Fields Summary
private static boolean
loadedLibrary
protected String
username
protected long
uid
protected long
gid
protected long[]
groups
Constructors Summary
public UnixSystem()
Instantiate a UnixSystem and load the native library to access the underlying system information.


                       
      
	if (loadedLibrary == false) {
	    System.loadLibrary("jaas_unix");
	    loadedLibrary = true;
	}
	getUnixInfo();
    
Methods Summary
public longgetGid()
Get the GID for the current Unix user.

return
the GID for the current Unix user.

	return gid;
    
public long[]getGroups()
Get the supplementary groups for the current Unix user.

return
the supplementary groups for the current Unix user.

	return groups;
    
public longgetUid()
Get the UID for the current Unix user.

return
the UID for the current Unix user.

	return uid;
    
private native voidgetUnixInfo()

public java.lang.StringgetUsername()
Get the username for the current Unix user.

return
the username for the current Unix user.

	return username;