FileDocCategorySizeDatePackage
UnixSystem.javaAPI DocJava SE 6 API1640Tue Jun 10 00:23:22 BST 2008com.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.7, 06/08/06

Fields Summary
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.

	System.loadLibrary("jaas_unix");
	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;