| | |
| | | */ |
| | | package org.opends.server.admin.client.cli; |
| | | |
| | | import static com.forgerock.opendj.cli.CommonArguments.*; |
| | | import static com.forgerock.opendj.cli.ReturnCode.*; |
| | | import static com.forgerock.opendj.cli.Utils.*; |
| | | import static com.forgerock.opendj.cli.CommonArguments.*; |
| | | import static org.opends.messages.ToolMessages.*; |
| | | |
| | | import static org.opends.messages.AdminToolMessages.*; |
| | | import static org.opends.messages.ToolMessages.*; |
| | | |
| | | import java.io.File; |
| | | import java.io.FileInputStream; |
| | |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | | import com.forgerock.opendj.cli.ArgumentParser; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.LocalizableMessageBuilder; |
| | | import org.forgerock.i18n.LocalizableMessageDescriptor.Arg1; |
| | |
| | | |
| | | import com.forgerock.opendj.cli.Argument; |
| | | import com.forgerock.opendj.cli.ArgumentException; |
| | | import com.forgerock.opendj.cli.ArgumentParser; |
| | | import com.forgerock.opendj.cli.BooleanArgument; |
| | | import com.forgerock.opendj.cli.CliConstants; |
| | | import com.forgerock.opendj.cli.FileBasedArgument; |
| | |
| | | private boolean configurationInitialized; |
| | | |
| | | /** Defines if the CLI always use the SSL connection type. */ |
| | | private boolean alwaysSSL; |
| | | private final boolean alwaysSSL; |
| | | |
| | | /** |
| | | * Creates a new instance of secure arguments. |
| | |
| | | * the LocalizableMessageBuilder to write the error messages. |
| | | * @return return code. |
| | | */ |
| | | public int validateGlobalOptions(LocalizableMessageBuilder buf) |
| | | int validateGlobalOptions(LocalizableMessageBuilder buf) |
| | | { |
| | | final List<LocalizableMessage> errors = new ArrayList<>(); |
| | | addErrorMessageIfArgumentsConflict(errors, bindPasswordArg, bindPasswordFileArg); |