public final class SecureConnectionCliArgs extends Object
Modifier and Type | Field and Description |
---|---|
com.forgerock.opendj.cli.StringArgument |
adminUidArg
The 'adminUID' global argument.
|
com.forgerock.opendj.cli.StringArgument |
bindDnArg
The 'bindDN' global argument.
|
com.forgerock.opendj.cli.StringArgument |
bindPasswordArg
The 'bindPassword' global argument.
|
com.forgerock.opendj.cli.FileBasedArgument |
bindPasswordFileArg
The 'bindPasswordFile' global argument.
|
com.forgerock.opendj.cli.StringArgument |
certNicknameArg
The 'certNicknameArg' global argument.
|
com.forgerock.opendj.cli.IntegerArgument |
connectTimeoutArg
Argument to specify the connection timeout.
|
com.forgerock.opendj.cli.StringArgument |
hostNameArg
The 'hostName' global argument.
|
com.forgerock.opendj.cli.StringArgument |
keyStorePasswordArg
The 'keyStorePassword' global argument.
|
com.forgerock.opendj.cli.FileBasedArgument |
keyStorePasswordFileArg
The 'keyStorePasswordFile' global argument.
|
com.forgerock.opendj.cli.StringArgument |
keyStorePathArg
The 'keyStore' global argument.
|
com.forgerock.opendj.cli.IntegerArgument |
portArg
The 'port' global argument.
|
com.forgerock.opendj.cli.StringArgument |
saslOptionArg
Argument indicating a SASL option.
|
com.forgerock.opendj.cli.BooleanArgument |
trustAllArg
The 'trustAllArg' global argument.
|
com.forgerock.opendj.cli.StringArgument |
trustStorePasswordArg
The 'trustStorePassword' global argument.
|
com.forgerock.opendj.cli.FileBasedArgument |
trustStorePasswordFileArg
The 'trustStorePasswordFile' global argument.
|
com.forgerock.opendj.cli.StringArgument |
trustStorePathArg
The 'trustStore' global argument.
|
com.forgerock.opendj.cli.BooleanArgument |
useSSLArg
The 'useSSLArg' global argument.
|
com.forgerock.opendj.cli.BooleanArgument |
useStartTLSArg
The 'useStartTLSArg' global argument.
|
Constructor and Description |
---|
SecureConnectionCliArgs(boolean alwaysSSL)
Creates a new instance of secure arguments.
|
Modifier and Type | Method and Description |
---|---|
boolean |
alwaysSSL()
Indicate if the SSL mode is always used.
|
boolean |
argumentsPresent()
Indicates whether or not any of the arguments are present.
|
Set<com.forgerock.opendj.cli.Argument> |
createGlobalArguments()
Initialize Global option.
|
String |
getAdministratorUID()
Get the admin UID which has to be used for the command.
|
int |
getAdminPortFromConfig()
Returns the admin port from the configuration.
|
String |
getBindDN()
Get the bindDN which has to be used for the command.
|
String |
getHostName()
Get the host name which has to be used for the command.
|
String |
getPort()
Get the port which has to be used for the command.
|
int |
getPortFromConfig()
Returns the port to be used according to the configuration and the
arguments provided by the user.
|
ApplicationTrustManager |
getTrustManager()
Handle TrustStore.
|
String |
getTruststoreFileFromConfig()
Returns the absolute path of the trust store file that appears on the
config.
|
void |
initArgumentsWithConfiguration()
Updates the default values of the port and the trust store with what is
read in the configuration.
|
boolean |
useAdminUID()
Tells whether this parser uses the Administrator UID (instead of the bind
DN) or not.
|
boolean |
useSSL()
Indicate if the SSL mode is required.
|
boolean |
useStartTLS()
Indicate if the startTLS mode is required.
|
int |
validateGlobalOptions(LocalizableMessageBuilder buf)
Indication if provided global options are validate.
|
public com.forgerock.opendj.cli.StringArgument hostNameArg
public com.forgerock.opendj.cli.IntegerArgument portArg
public com.forgerock.opendj.cli.StringArgument bindDnArg
public com.forgerock.opendj.cli.StringArgument adminUidArg
public com.forgerock.opendj.cli.FileBasedArgument bindPasswordFileArg
public com.forgerock.opendj.cli.StringArgument bindPasswordArg
public com.forgerock.opendj.cli.BooleanArgument trustAllArg
public com.forgerock.opendj.cli.StringArgument trustStorePathArg
public com.forgerock.opendj.cli.StringArgument trustStorePasswordArg
public com.forgerock.opendj.cli.FileBasedArgument trustStorePasswordFileArg
public com.forgerock.opendj.cli.StringArgument keyStorePathArg
public com.forgerock.opendj.cli.StringArgument keyStorePasswordArg
public com.forgerock.opendj.cli.FileBasedArgument keyStorePasswordFileArg
public com.forgerock.opendj.cli.StringArgument certNicknameArg
public com.forgerock.opendj.cli.BooleanArgument useSSLArg
public com.forgerock.opendj.cli.BooleanArgument useStartTLSArg
public com.forgerock.opendj.cli.StringArgument saslOptionArg
public com.forgerock.opendj.cli.IntegerArgument connectTimeoutArg
public SecureConnectionCliArgs(boolean alwaysSSL)
alwaysSSL
- If true, always use the SSL connection type. In this case, the
arguments useSSL and startTLS are not present.public boolean argumentsPresent()
public String getAdministratorUID()
public boolean useAdminUID()
true
if this parser uses the Administrator UID and
false
otherwise.public String getBindDN()
public Set<com.forgerock.opendj.cli.Argument> createGlobalArguments() throws com.forgerock.opendj.cli.ArgumentException
com.forgerock.opendj.cli.ArgumentException
- If there is a problem with any of the parameters used to create
this argument.public String getHostName()
public String getPort()
public int validateGlobalOptions(LocalizableMessageBuilder buf)
buf
- the LocalizableMessageBuilder to write the error messages.public boolean useSSL()
public boolean useStartTLS()
public boolean alwaysSSL()
public ApplicationTrustManager getTrustManager()
public String getTruststoreFileFromConfig() throws org.forgerock.opendj.config.server.ConfigException
null
if the trust store is not defined or it does
not exist.org.forgerock.opendj.config.server.ConfigException
- if there is an error reading the configuration.public int getAdminPortFromConfig() throws org.forgerock.opendj.config.server.ConfigException
org.forgerock.opendj.config.server.ConfigException
- if an error occurs reading the configuration.public int getPortFromConfig()
public void initArgumentsWithConfiguration() throws org.forgerock.opendj.config.server.ConfigException
org.forgerock.opendj.config.server.ConfigException
- if there is an error reading the configuration.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.