One concrete subclass of Resource is com.ibm.as400.resource.RUser, which represents an iSeries user. RUser supports many attribute IDs, each of which you can use to get attribute values.
This example retrieves an attribute value from an RUser:
// Create an RUser object to refer to a specific user. AS400 system = new AS400("MYSYSTEM", "MYUSERID", "MYPASSWORD"); RUser user = new RUser(system, "AUSERID"); // Get the text description attribute value. String textDescription = (String)user.getAttributeValue(RUser.TEXT_DESCRIPTION);