@Service(name="_change-master-password-node") @PerLookup public class ChangeNodeMasterPasswordCommand extends LocalInstanceCommand
| Modifier and Type | Field and Description |
|---|---|
protected String |
node0 |
protected String |
nodeDir0 |
protected boolean |
savemp |
checkOneAndOnly, domainName, instanceDir, instanceName, isCreateInstanceFilesystem, node, nodeDir, nodeDirChild, nodeDirRootargv, commandModel, CONNECTION_ERROR, env, ERROR, INVALID_COMMAND_ERROR, logger, metadataErrors, name, operands, options, passwords, programOpts, SUCCESS, WARNING| Constructor and Description |
|---|
ChangeNodeMasterPasswordCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createMasterPasswordFile()
Create the master password keystore.
|
void |
encryptKeystore(String f) |
int |
execute(String... argv)
Execute this command with the given arguemnts.
|
protected int |
executeCommand()
Execute the command using the options in options and the
operands in operands.
|
getDasProperties, getInstallRootPath, getInstanceDirs, getInstanceName, getMasterPasswordFile, getNodeInstallDir, getProductRootPath, initInstance, isDirectory, mkdirs, setDasDefaults, setInstanceName, setServerDirs, validate, validateDasOptions, whackFilesystemcheckForSpecialFiles, getAdminAddress, getAdminAddress, getDomainXml, getMasterPassword, getPrevPid, getServerDirs, getServerPid, getUptime, isLocal, isRemote, isRestartable, isRunning, isRunning, isThisServer, loadAndVerifyKeystore, readFromMasterPasswordFile, resetServerDirs, setLocalPassword, setServerDirs, unsetLocalPassword, verifyMasterPassword, waitForRestartcheckHelp, expandManPage, getBooleanOption, getBriefCommandUsage, getCommand, getCommand, getCommandScope, getCommandUsage, getManPage, getName, getOperandModel, getOption, getOptions, getPassword, getPassword, getProgramOptions, getSystemProperties, getSystemProperty, getUsage, initializeLogger, initializePasswords, inject, ok, parse, postConstruct, prepare, prevalidate, printExceptionStackTrace, processProgramOptions, quote, readPassword, setCommandScope, toString, usageOptionsprotected String nodeDir0
protected String node0
protected boolean savemp
protected int executeCommand()
throws CommandException
CLICommandexecuteCommand in class CLICommandCommandException - if execution of the command failsCommandValidationException - if there's something wrong
with the options or argumentspublic int execute(String... argv) throws CommandException
CLICommandexecute in class CLICommandCommandException - if execution of the command failsCommandValidationException - if there's something wrong
with the options or argumentsprotected void createMasterPasswordFile()
throws CommandException
CommandExceptionpublic void encryptKeystore(String f) throws CommandException
CommandExceptionCopyright © 2017. All rights reserved.