|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.eserver.zos.racf.userregistry.RACF_SecAdmin
Implements SecAdmin interface to RACF and provides additional utility methods (including cloning a userid, ability to display attributes in alphabetical order). RACF_SecAdmin can be used to administer user and group security to RACF.
Attributes are named with the following convention:
segmentname_keyword
or
segmentname
where segmentname and keyword are the segment name and keyword used on the corresponding RACF command.
Examples: BASE_SPECIAL gives a user or group the SPECIAL attribute. CICS gives a user a CICS segment. OMVS_HOME specifies the home directory in the OMVS segment. Attributes are case-insensitive.
Field Summary | |
---|---|
static String |
COPYRIGHT
|
static String |
sccsid
|
Constructor Summary | |
---|---|
RACF_SecAdmin()
Constructs RACF_SecAdmin for a local RACF database. |
|
RACF_SecAdmin(RACF_remote r)
Constructs RACF_SecAdmin for a remote RACF accessed using LDAP/SDBM. |
Method Summary | |
---|---|
static TreeMap |
BasicAttributestoTreeMap(BasicAttributes ba)
Takes attributes in BasicAttributes object and places in TreeMap, thereby sorting attributes alphabetically. |
void |
clone_user(String orig_user,
String copy_user)
Creates a new user with same attributes as an existing user. |
UserGroup |
createGroup(String groupname,
BasicAttributes input_at)
Creates a new group in security repository with specified attributes |
User |
createUser(String username,
BasicAttributes input_at)
Creates a new user in security repository with specified attributes |
void |
deleteGroup(String groupname)
Deletes existing group from security repository |
void |
deleteUser(String username)
Deletes existing user from security repository |
static void |
displayAttributes(BasicAttributes ba)
Displays attributes, one on each line, in alphabetical order to standard out. |
static void |
displayAttributes(BasicAttributes ba,
PrintStream ps)
Displays attributes, one on each line, in alphabetical order to input PrintStream. |
UserGroup |
getGroup(String groupname)
Gets UserGroup object for an existing group |
User |
getUser(String username)
Gets User object for an existing user |
void |
modifyGroup(String groupname,
ModificationItem[] mod)
changes, adds or deletes attributes of an existing group |
void |
modifyUser(String username,
ModificationItem[] mod)
changes, adds or deletes attributes of an existing user |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String COPYRIGHT
public static final String sccsid
Constructor Detail |
public RACF_SecAdmin() throws SecAdminException
SecAdminException
public RACF_SecAdmin(RACF_remote r) throws SecAdminException
SecAdminException
Method Detail |
public static TreeMap BasicAttributestoTreeMap(BasicAttributes ba) throws SecAdminException
ba
- BasicAttributes
SecAdminException
public void clone_user(String orig_user, String copy_user) throws SecAdminException
orig_user
- Userid of existing RACF usercopy_user
- Userid for new user to be created
SecAdminException
public UserGroup createGroup(String groupname, BasicAttributes input_at) throws SecAdminException
SecAdmin
createGroup
in interface SecAdmin
groupname
- Identifier for group, such as: name, dn, group idinput_at
- Attributes of group, such as: owner, gid
SecAdminException
public User createUser(String username, BasicAttributes input_at) throws SecAdminException
SecAdmin
createUser
in interface SecAdmin
username
- String to represent user, such as: userid, dninput_at
- Attributes of user, such as: email address, full name, account number. Can be null.
SecAdminException
public void deleteGroup(String groupname) throws SecAdminException
SecAdmin
deleteGroup
in interface SecAdmin
groupname
- Identifier for group, such as: name, dn, group id
SecAdminException
public void deleteUser(String username) throws SecAdminException
SecAdmin
deleteUser
in interface SecAdmin
username
- String to represent user, such as: userid, dn
SecAdminException
public static void displayAttributes(BasicAttributes ba) throws SecAdminException
ba
- BasicAttributes
SecAdminException
public static void displayAttributes(BasicAttributes ba, PrintStream ps) throws SecAdminException
ba
- BasicAttributesps
- PrintStream
SecAdminException
public UserGroup getGroup(String groupname) throws SecAdminException
SecAdmin
getGroup
in interface SecAdmin
groupname
- String to represent group, such as: name of group, dn
SecAdminException
public User getUser(String username) throws SecAdminException
SecAdmin
getUser
in interface SecAdmin
username
- String to represent user, such as: userid, dn
SecAdminException
public void modifyGroup(String groupname, ModificationItem[] mod) throws SecAdminException
SecAdmin
modifyGroup
in interface SecAdmin
groupname
- Identifier for group, such as: name, dn, group idmod
- Array of modifications (each modification could be
deleting, changing the value of, or adding an attribute)
SecAdminException
public void modifyUser(String username, ModificationItem[] mod) throws SecAdminException
SecAdmin
modifyUser
in interface SecAdmin
username
- String to represent user, such as: userid, dnmod
- Array of modifications (each modification could be
deleting, changing the value of, or adding an attribute)
SecAdminException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |