| | |
| | | import java.util.LinkedHashSet; |
| | | import javax.net.ssl.SSLException; |
| | | import javax.net.ssl.SSLHandshakeException; |
| | | import org.opends.server.tools.ToolConstants; |
| | | |
| | | |
| | | /** |
| | |
| | | // This CLI is always using the administration connector with SSL |
| | | private boolean alwaysSSL = false; |
| | | |
| | | // Raw arguments |
| | | private String[] rawArgs = null; |
| | | |
| | | /** |
| | | * Creates a new LDAP management context factory. |
| | | * |
| | |
| | | return context; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public void setRawArguments(String[] args) { |
| | | this.rawArgs = args; |
| | | |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | |
| | | |
| | | try |
| | | { |
| | | if (rawArgs != null) { |
| | | for (String rawArg : rawArgs) { |
| | | if (rawArg.contains(ToolConstants.OPTION_LONG_HELP) || |
| | | (rawArg.charAt(1) == ToolConstants.OPTION_SHORT_HELP) || (rawArg. |
| | | charAt(1) == '?')) { |
| | | // used for usage default values only |
| | | secureArgsList.initArgumentsWithConfiguration(); |
| | | } |
| | | } |
| | | } |
| | | secureArgsList.initArgumentsWithConfiguration(); |
| | | } |
| | | catch (ConfigException ce) |
| | | { |