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

SolarisSystem

public class SolarisSystem extends Object

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

version
1.8, 01/11/00

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


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

return
the GID for the current Solaris user.

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

return
the supplementary groups for the current Solaris user.

	return groups;
    
private native voidgetSolarisInfo()

public longgetUid()
Get the UID for the current Solaris user.

return
the UID for the current Solaris user.

	return uid;
    
public java.lang.StringgetUsername()
Get the username for the current Solaris user.

return
the username for the current Solaris user.

	return username;