public final class SecureConnectionCliArgs extends Object
Constructor and Description |
---|
SecureConnectionCliArgs(boolean alwaysUseSSL)
Creates a new instance of secure arguments.
|
Modifier and Type | Method and Description |
---|---|
boolean |
alwaysUseSsl()
Indicate if the SSL mode is always used.
|
boolean |
argumentsPresent()
Indicates whether any of the arguments are present.
|
Set<com.forgerock.opendj.cli.Argument> |
createGlobalArguments()
Initialize Global option.
|
void |
createVisibleAdminUidArgument(LocalizableMessage description)
Replace the admin UID argument by a non hidden one.
|
String |
getAdministratorUID()
Get the admin UID which has to be used for the command.
|
com.forgerock.opendj.cli.StringArgument |
getAdminUidArg()
Return the 'adminUID' global argument.
|
String |
getBindDN()
Get the bindDN which has to be used for the command.
|
com.forgerock.opendj.cli.StringArgument |
getBindDnArg()
Return the 'bindDN' global argument.
|
com.forgerock.opendj.cli.StringArgument |
getBindPasswordArg()
Return the 'bindPassword' global argument.
|
com.forgerock.opendj.cli.FileBasedArgument |
getBindPasswordFileArg()
Return the 'bindPasswordFile' global argument.
|
com.forgerock.opendj.cli.StringArgument |
getCertNicknameArg()
Return the 'certNicknameArg' global argument.
|
com.forgerock.opendj.cli.IntegerArgument |
getConnectTimeoutArg()
Return the 'connectTimeout' argument.
|
String |
getDefaultHostName()
Returns the current hostname.
|
String |
getHostName()
Get the host name which has to be used for the command.
|
com.forgerock.opendj.cli.StringArgument |
getHostNameArg()
Return the 'hostName' global argument.
|
com.forgerock.opendj.cli.StringArgument |
getKeyStorePasswordArg()
Return the 'keyStorePassword' global argument.
|
com.forgerock.opendj.cli.FileBasedArgument |
getKeyStorePasswordFileArg()
Return the 'keyStorePasswordFile' global argument.
|
com.forgerock.opendj.cli.StringArgument |
getKeyStorePathArg()
Return the 'keyStore' global argument.
|
String |
getPort()
Get the port which has to be used for the command.
|
com.forgerock.opendj.cli.IntegerArgument |
getPortArg()
Return the 'port' global argument.
|
com.forgerock.opendj.cli.StringArgument |
getSaslOptionArg()
Return the 'saslOption' argument.
|
com.forgerock.opendj.cli.BooleanArgument |
getTrustAllArg()
Return the 'trustAllArg' global argument.
|
ApplicationTrustManager |
getTrustManager()
Handle TrustStore.
|
com.forgerock.opendj.cli.StringArgument |
getTrustStorePasswordArg()
Return the 'trustStorePassword' global argument.
|
com.forgerock.opendj.cli.FileBasedArgument |
getTrustStorePasswordFileArg()
Return the 'trustStorePasswordFile' global argument.
|
com.forgerock.opendj.cli.StringArgument |
getTrustStorePathArg()
Return the 'trustStore' global argument.
|
com.forgerock.opendj.cli.BooleanArgument |
getUseSSLArg()
Return the 'useSSLArg' global argument.
|
com.forgerock.opendj.cli.BooleanArgument |
getUseStartTLSArg()
Return the 'useStartTLSArg' global argument.
|
void |
setBindDnArgDescription(LocalizableMessage description)
Set the bind DN argument with the provided description.
|
void |
setBindPasswordArgument(com.forgerock.opendj.cli.StringArgument bindPasswordArg)
Set the bind password argument.
|
void |
setBindPasswordFileArgument(com.forgerock.opendj.cli.FileBasedArgument bindPasswordFileArg)
Set the bind password file argument.
|
public SecureConnectionCliArgs(boolean alwaysUseSSL)
alwaysUseSSL
- Whether to always use the SSL connection type. In this case, the arguments useSSL and startTLS are not
present.public boolean argumentsPresent()
public String getAdministratorUID()
public String getBindDN()
public Set<com.forgerock.opendj.cli.Argument> createGlobalArguments()
public String getHostName()
public String getDefaultHostName()
public String getPort()
public boolean alwaysUseSsl()
public ApplicationTrustManager getTrustManager()
public void createVisibleAdminUidArgument(LocalizableMessage description)
description
- The localized description for the non hidden admin UID argument.public com.forgerock.opendj.cli.StringArgument getKeyStorePathArg()
public com.forgerock.opendj.cli.StringArgument getHostNameArg()
public com.forgerock.opendj.cli.IntegerArgument getPortArg()
public com.forgerock.opendj.cli.StringArgument getBindDnArg()
public com.forgerock.opendj.cli.StringArgument getAdminUidArg()
public com.forgerock.opendj.cli.FileBasedArgument getBindPasswordFileArg()
public com.forgerock.opendj.cli.StringArgument getBindPasswordArg()
public com.forgerock.opendj.cli.BooleanArgument getTrustAllArg()
public com.forgerock.opendj.cli.StringArgument getTrustStorePathArg()
public com.forgerock.opendj.cli.StringArgument getTrustStorePasswordArg()
public com.forgerock.opendj.cli.FileBasedArgument getTrustStorePasswordFileArg()
public com.forgerock.opendj.cli.StringArgument getKeyStorePasswordArg()
public com.forgerock.opendj.cli.FileBasedArgument getKeyStorePasswordFileArg()
public com.forgerock.opendj.cli.StringArgument getCertNicknameArg()
public com.forgerock.opendj.cli.BooleanArgument getUseSSLArg()
public com.forgerock.opendj.cli.BooleanArgument getUseStartTLSArg()
public com.forgerock.opendj.cli.StringArgument getSaslOptionArg()
public com.forgerock.opendj.cli.IntegerArgument getConnectTimeoutArg()
public void setBindDnArgDescription(LocalizableMessage description)
Argument
instance replacing the current one.description
- The localized description which will be used in help messages.public void setBindPasswordArgument(com.forgerock.opendj.cli.StringArgument bindPasswordArg)
bindPasswordArg
- The argument which will replace the current one.public void setBindPasswordFileArgument(com.forgerock.opendj.cli.FileBasedArgument bindPasswordFileArg)
bindPasswordFileArg
- The argument which will replace the current one.Copyright 2010-2020 ForgeRock AS.