Class AddUser
- java.lang.Object
-
- org.jboss.as.domain.management.security.adduser.AddUser
-
public class AddUser extends Object
A command line utility to add new users to the mgmt-users.properties files.- Author:
- Darran Lofthouse, Guillaume Grossetie
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAddUser.CommandLineArgumentstatic classAddUser.FileModestatic classAddUser.Interactivenessstatic classAddUser.RealmMode
-
Field Summary
Fields Modifier and Type Field Description static StringAPPLICATION_ROLES_PROPERTIESstatic StringAPPLICATION_USERS_PROPERTIESstatic StringCONFIG_FILEstatic StringDEFAULT_APPLICATION_REALMstatic StringDEFAULT_MANAGEMENT_REALMstatic StringDOMAIN_BASE_DIRstatic StringDOMAIN_CONFIG_DIRstatic StringDOMAIN_CONFIG_USER_DIRstatic StringMGMT_GROUPS_PROPERTIESstatic StringMGMT_USERS_PROPERTIESstatic StringNEW_LINEprotected StatenextStatestatic StringSERVER_BASE_DIRstatic StringSERVER_CONFIG_DIRstatic StringSERVER_CONFIG_USER_DIRstatic StringSPACE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)protected voidrun()
-
-
-
Field Detail
-
SERVER_BASE_DIR
public static final String SERVER_BASE_DIR
- See Also:
- Constant Field Values
-
SERVER_CONFIG_DIR
public static final String SERVER_CONFIG_DIR
- See Also:
- Constant Field Values
-
SERVER_CONFIG_USER_DIR
public static final String SERVER_CONFIG_USER_DIR
- See Also:
- Constant Field Values
-
DOMAIN_BASE_DIR
public static final String DOMAIN_BASE_DIR
- See Also:
- Constant Field Values
-
DOMAIN_CONFIG_DIR
public static final String DOMAIN_CONFIG_DIR
- See Also:
- Constant Field Values
-
DOMAIN_CONFIG_USER_DIR
public static final String DOMAIN_CONFIG_USER_DIR
- See Also:
- Constant Field Values
-
CONFIG_FILE
public static final String CONFIG_FILE
- See Also:
- Constant Field Values
-
DEFAULT_MANAGEMENT_REALM
public static final String DEFAULT_MANAGEMENT_REALM
- See Also:
- Constant Field Values
-
DEFAULT_APPLICATION_REALM
public static final String DEFAULT_APPLICATION_REALM
- See Also:
- Constant Field Values
-
MGMT_USERS_PROPERTIES
public static final String MGMT_USERS_PROPERTIES
- See Also:
- Constant Field Values
-
MGMT_GROUPS_PROPERTIES
public static final String MGMT_GROUPS_PROPERTIES
- See Also:
- Constant Field Values
-
APPLICATION_USERS_PROPERTIES
public static final String APPLICATION_USERS_PROPERTIES
- See Also:
- Constant Field Values
-
APPLICATION_ROLES_PROPERTIES
public static final String APPLICATION_ROLES_PROPERTIES
- See Also:
- Constant Field Values
-
NEW_LINE
public static final String NEW_LINE
-
SPACE
public static final String SPACE
- See Also:
- Constant Field Values
-
nextState
protected State nextState
-
-
Constructor Detail
-
AddUser
protected AddUser(org.jboss.as.domain.management.security.adduser.RuntimeOptions options, String realm)
-
-
Method Detail
-
run
protected void run()
-
main
public static void main(String[] args)
- Parameters:
args-
-
-