Class PlatformUser

java.lang.Object
com.ibm.os390.security.PlatformUser

public final class PlatformUser extends Object
Class to query OS/390 User information.
  • Method Details

    • authenticate

      public static PlatformReturned authenticate(String userid, String password)
      Method to authenticate user. Function provided by OE Service __passwd().
      Parameters:
      userid - , a String containing a RACF user name.
      password - , a String containing a RACF password.
      Returns:
      If successful, a null object is returned. If NOT successful, an instance of the PlatformReturned class is returned with the class variables errno, errno2 and errnoMsg set from the values returned by the OS/390 services __passwd, strerror(errno), and __errno2().
    • changePassword

      public static PlatformReturned changePassword(String userid, String password, String newPassword)
      Method to change a user's password. Function provided by OE Service __passwd().
      Parameters:
      userid - , a String containing a RACF user name.
      password - , a String containing the user's current RACF password.
      newPassword - , a String containing the new RACF password.
      Returns:
      If successful, a null object is returned. If NOT successful, an instance of the PlatformReturned class is returned with the class variables errno, errno2 and errnoMsg set from the values returned by the OS/390 services __passwd, strerror(errno), and __errno2().
    • authenticateApplid

      public static PlatformReturned authenticateApplid(String userid, String password, String applid)
      Method to authenticate user with application identifier(APPLID) supplied. Function provided by OE Service __passwd_applid().
      Parameters:
      userid - , a String containing a RACF user name.
      password - , a String containing a RACF password.
      applid - , a String containing an application identifier.
      Returns:
      If successful, a null object is returned. If NOT successful, an instance of the PlatformReturned class is returned with the class variables errno, errno2 and errnoMsg set from the values returned by the OS/390 services __passwd_applid, strerror(errno), and __errno2().
    • changePasswordApplid

      public static PlatformReturned changePasswordApplid(String userid, String password, String newPassword, String applid)
      Method to change a user's password with an application identifier(APPLID) supplied. Function provided by OE Service __passwd_applid().
      Parameters:
      userid - , a String containing a RACF user name.
      password - , a String containing the user's current RACF password.
      newPassword - , a String containing the new RACF password.
      applid - , a String containing an application identifier.
      Returns:
      If successful, a null object is returned. If NOT successful, an instance of the PlatformReturned class is returned with the class variables errno, errno2 and errnoMsg set from the values returned by the OS/390 services __passwd_applid, strerror(errno), and __errno2().
    • isUserInGroup

      public static boolean isUserInGroup(String userid, String groupName)
      Method to check if user is member of a group. Function provided by OE Service getgrnam().
      Parameters:
      userid - , a String containing a RACF user name.
      group - , a String containing a RACF group name.
      Returns:
      boolean true or false.