com.ibm.eserver.zos.racf.userregistry
Class RACF_User

java.lang.Object
  extended bycom.ibm.eserver.zos.racf.userregistry.RACF_User
All Implemented Interfaces:
Principal, User

public class RACF_User
extends Object
implements User

Implements User interface for RACF users. Additionally provides attributesInfo and attributesHTML utility methods.

No public constructors are provided for RACF_User. RACF_User objects are created through either RACF_SecAdmin.createUser(userid,attributes) or RACF_SecAdmin.getUser(existing_userid) or from RACF_Group.members() enumeration.


Field Summary
static String COPYRIGHT
           
static String sccsid
           
 
Method Summary
static String attributesHTML()
          Returns an HTML table of user attributes and their properties.
static BasicAttributes attributesInfo()
          Returns user attributes and their properties.
 BasicAttributes getAttributes()
          Returns user attributes for this user from security repository
 Enumeration getGroups()
          Returns Enumeration of UserGroups which user is a member of
 String getName()
          Returns the name of this user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Field Detail

COPYRIGHT

public static final String COPYRIGHT
See Also:
Constant Field Values

sccsid

public static final String sccsid
See Also:
Constant Field Values
Method Detail

attributesHTML

public static String attributesHTML()
Returns an HTML table of user attributes and their properties. Includes whether attributes are modifiable, brief description etc. The brief description returned by attributesHTML is meant to serve as reminder of meaning of attribute. For full description and additional usage information, one should refer to corresponding section of ADDUSER or ALTUSER documentation in RACF Command Language Reference.

Returns:
String containing HTML table

attributesInfo

public static BasicAttributes attributesInfo()
Returns user attributes and their properties. attributesInfo returns each attribute that could be returned by getAttributes. The values of each attribute are properties or characteristics of the attribute, such as description, whether attribute is modifiable, is attribute multi-value, etc

Returns:
BasicAttributes with same names as BasicAttributes returned by getAttributes but values are characteristics of the attribute, not specific user data

getAttributes

public BasicAttributes getAttributes()
                              throws SecAdminException
Description copied from interface: User
Returns user attributes for this user from security repository

Specified by:
getAttributes in interface User
Throws:
SecAdminException

getGroups

public Enumeration getGroups()
Description copied from interface: User
Returns Enumeration of UserGroups which user is a member of

Specified by:
getGroups in interface User

getName

public String getName()
Description copied from interface: User
Returns the name of this user. Value returned by getName would equal the username used on SecAdmin.getUser(username)

Specified by:
getName in interface User
See Also:
Principal.getName()