|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.admin.client.cli.SecureConnectionCliArgs
public final class SecureConnectionCliArgs
This is a commodity class that can be used to check the arguments required to establish a secure connection in the command line. It can be used to generate an ApplicationTrustManager object based on the options provided by the user in the command line.
Field Summary | |
---|---|
StringArgument |
adminUidArg
The 'adminUID' global argument. |
StringArgument |
bindDnArg
The 'bindDN' global argument. |
StringArgument |
bindPasswordArg
The 'bindPassword' global argument. |
FileBasedArgument |
bindPasswordFileArg
The 'bindPasswordFile' global argument. |
StringArgument |
certNicknameArg
The 'certNicknameArg' global argument. |
static java.lang.String |
EOL
End Of Line. |
StringArgument |
hostNameArg
The 'hostName' global argument. |
StringArgument |
keyStorePasswordArg
The 'keyStorePassword' global argument. |
FileBasedArgument |
keyStorePasswordFileArg
The 'keyStorePasswordFile' global argument. |
StringArgument |
keyStorePathArg
The 'keyStore' global argument. |
IntegerArgument |
portArg
The 'port' global argument. |
StringArgument |
saslOptionArg
Argument indicating a SASL option. |
BooleanArgument |
trustAllArg
The 'trustAllArg' global argument. |
StringArgument |
trustStorePasswordArg
The 'trustStorePassword' global argument. |
FileBasedArgument |
trustStorePasswordFileArg
The 'trustStorePasswordFile' global argument. |
StringArgument |
trustStorePathArg
The 'trustStore' global argument. |
BooleanArgument |
useSSLArg
The 'useSSLArg' global argument. |
BooleanArgument |
useStartTLSArg
The 'useStartTLSArg' global argument. |
Constructor Summary | |
---|---|
SecureConnectionCliArgs()
Creates a new instance of secure arguments. |
Method Summary | |
---|---|
boolean |
argumentsPresent()
Indicates whether or not any of the arguments are present. |
java.util.LinkedHashSet<Argument> |
createGlobalArguments()
Initialize Global option. |
java.lang.String |
getAdministratorUID()
Get the admin UID which has to be used for the command. |
java.lang.String |
getBindDN()
Get the bindDN which has to be used for the command. |
java.lang.String |
getBindPassword()
Get the password which has to be used for the command without prompting the user. |
java.lang.String |
getBindPassword(StringArgument clearArg,
FileBasedArgument fileArg)
Get the password which has to be used for the command without prompting the user. |
java.lang.String |
getBindPassword(java.lang.String dn,
java.io.OutputStream out,
java.io.OutputStream err)
Get the password which has to be used for the command. |
java.lang.String |
getBindPassword(java.lang.String dn,
java.io.OutputStream out,
java.io.OutputStream err,
StringArgument clearArg,
FileBasedArgument fileArg)
Get the password which has to be used for the command. |
java.lang.String |
getHostName()
Get the host name which has to be used for the command. |
javax.net.ssl.KeyManager |
getKeyManager()
Handle KeyStore. |
java.lang.String |
getPort()
Get the port which has to be used for the command. |
ApplicationTrustManager |
getTrustManager()
Handle TrustStore. |
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(MessageBuilder buf)
Indication if provided global options are validate. |
int |
validateGlobalOptions(java.io.PrintStream err)
Indication if provided global options are validate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public StringArgument hostNameArg
public IntegerArgument portArg
public StringArgument bindDnArg
public StringArgument adminUidArg
public FileBasedArgument bindPasswordFileArg
public StringArgument bindPasswordArg
public BooleanArgument trustAllArg
public StringArgument trustStorePathArg
public StringArgument trustStorePasswordArg
public FileBasedArgument trustStorePasswordFileArg
public StringArgument keyStorePathArg
public StringArgument keyStorePasswordArg
public FileBasedArgument keyStorePasswordFileArg
public StringArgument certNicknameArg
public BooleanArgument useSSLArg
public BooleanArgument useStartTLSArg
public StringArgument saslOptionArg
public static java.lang.String EOL
Constructor Detail |
---|
public SecureConnectionCliArgs()
Method Detail |
---|
public boolean argumentsPresent()
public java.lang.String getAdministratorUID()
public boolean useAdminUID()
true
if this parser uses the Administrator UID and
false
otherwise.public java.lang.String getBindDN()
public java.lang.String getBindPassword(java.lang.String dn, java.io.OutputStream out, java.io.OutputStream err, StringArgument clearArg, FileBasedArgument fileArg)
dn
- The user DN for which to password could be asked.out
- The input stream to used if we have to prompt to the
user.err
- The error stream to used if we have to prompt to the
user.clearArg
- The password StringArgument argument.fileArg
- The password FileBased argument.
public java.lang.String getBindPassword(java.lang.String dn, java.io.OutputStream out, java.io.OutputStream err)
dn
- The user DN for which to password could be asked.out
- The input stream to used if we have to prompt to the
user.err
- The error stream to used if we have to prompt to the
user.
public java.lang.String getBindPassword(StringArgument clearArg, FileBasedArgument fileArg)
clearArg
- The password StringArgument argument.fileArg
- The password FileBased argument.
public java.lang.String getBindPassword()
public java.util.LinkedHashSet<Argument> createGlobalArguments() throws ArgumentException
ArgumentException
- If there is a problem with any of the parameters used
to create this argument.public java.lang.String getHostName()
public java.lang.String getPort()
public int validateGlobalOptions(MessageBuilder buf)
buf
- the MessageBuilder to write the error messages.
public int validateGlobalOptions(java.io.PrintStream err)
err
- the stream to be used to print error message.
public boolean useSSL()
public boolean useStartTLS()
public ApplicationTrustManager getTrustManager()
public javax.net.ssl.KeyManager getKeyManager()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |