- java.lang.Object
-
- com.ibm.os390.security.PlatformUser
-
public final class PlatformUser extends java.lang.Object
Class to query OS/390 User information.
-
-
Constructor Summary
Constructors Constructor Description PlatformUser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PlatformReturned
authenticate(java.lang.String userid, java.lang.String password)
Method to authenticate user.static PlatformReturned
authenticateApplid(java.lang.String userid, java.lang.String password, java.lang.String applid)
Method to authenticate user with application identifier(APPLID) supplied.static PlatformReturned
changePassword(java.lang.String userid, java.lang.String password, java.lang.String newPassword)
Method to change a user's password.static PlatformReturned
changePasswordApplid(java.lang.String userid, java.lang.String password, java.lang.String newPassword, java.lang.String applid)
Method to change a user's password with an application identifier(APPLID) supplied.static boolean
isUserInGroup(java.lang.String userid, java.lang.String groupName)
Method to check if user is member of a group.
-
-
-
Method Detail
-
authenticate
public static PlatformReturned authenticate(java.lang.String userid, java.lang.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(java.lang.String userid, java.lang.String password, java.lang.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(java.lang.String userid, java.lang.String password, java.lang.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(java.lang.String userid, java.lang.String password, java.lang.String newPassword, java.lang.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(java.lang.String userid, java.lang.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.
-
-