@Command(name="add", description="Add a new user") public class AddUser extends PasswordAction
context, verbose
Constructor and Description |
---|
AddUser() |
Modifier and Type | Method and Description |
---|---|
protected void |
add(String hash,
String... role)
Adding a new user
|
Object |
execute(ActionContext context) |
checkInputPassword, setPassword
checkInputRole, checkInputUser, getConfiguration, setRole, setUsername
input, inputPassword, isSilentInput, setSilentInput
getBrokerHome, getBrokerInstance, getBrokerURIInstance, isVerbose, setHomeValues
public Object execute(ActionContext context) throws Exception
execute
in interface Action
execute
in class InputAbstract
Exception
protected void add(String hash, String... role) throws Exception
hash
- the passwordrole
- the roleIllegalArgumentException
- if user existsException
Copyright © 2018 The Apache Software Foundation. All Rights Reserved.