com.ibm.security.auth.module
Class LinuxSystem

java.lang.Object
  |
  +--com.ibm.security.auth.module.LinuxSystem

public class LinuxSystem
extends java.lang.Object

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

Author:
D. Kent Soper

Constructor Summary
LinuxSystem()
          Instantiate a LinuxSystem and load the native library to access the underlying system information.
 
Method Summary
 long getGid()
          Get the GID for the current Linux user.
 long[] getGroups()
          Get the groups for the current Linux user.
 long getUid()
          Get the UID for the current Linux user.
 java.lang.String getUsername()
          Get the username for the current Linux user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinuxSystem

public LinuxSystem()
Instantiate a LinuxSystem and load the native library to access the underlying system information.
Method Detail

getUsername

public java.lang.String getUsername()
Get the username for the current Linux user.

Returns:
the username for the current Linux user.

getUid

public long getUid()
Get the UID for the current Linux user.

Returns:
the UID for the current Linux user.

getGid

public long getGid()
Get the GID for the current Linux user.

Returns:
the GID for the current Linux user.

getGroups

public long[] getGroups()
Get the groups for the current Linux user.

Returns:
the groups for the current Linux user.