com.ibm.security.auth.module

Class LinuxSystem

  1. java.lang.Object
  2. extended bycom.ibm.security.auth.module.LinuxSystem

  1. public class LinuxSystem
  2. extends java.lang.Object

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


Constructor Summary

Constructor and Description
LinuxSystem()
Instantiate a LinuxSystem and load the native library to access the underlying system information.

Method Summary

Modifier and Type Method and Description
  1. long
getGid()
Get the GID for the current Linux user.
  1. long[]
getGroups()
Get the groups for the current Linux user.
  1. long
getUid()
Get the UID for the current Linux user.
  1. 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

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

Method Detail

getUsername

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

Returns:
the username for the current Linux user.

getUid

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

Returns:
the UID for the current Linux user.

getGid

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

Returns:
the GID for the current Linux user.

getGroups

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

Returns:
the groups for the current Linux user.