public class AuthenticatorCli extends AbstractCli
Authenticator.| Modifier and Type | Field and Description |
|---|---|
private static String |
COMMAND_NAME
name of operation provided by this class.
|
private static String |
OPT_DSMLV1
option for dsmlv1 output.
|
OPT_HELP, OPT_PROVIDER_PROPERTIES, options, outputDsmlv1| Constructor and Description |
|---|
AuthenticatorCli() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
authenticate(Authenticator auth,
AuthenticationRequest request)
Executes the authentication operation.
|
protected int |
dispatch(org.apache.commons.cli.CommandLine line)
Dispatch command line data to the active that can perform the operation requested on the command line.
|
protected String |
getCommandName()
Returns the name of the command for which this class provides a CLI interface.
|
protected AuthenticationRequest |
initAuthenticationRequest(org.apache.commons.cli.CommandLine line)
Initialize an authentication request with command line options.
|
protected Authenticator |
initAuthenticator(org.apache.commons.cli.CommandLine line)
Initialize an Authenticator with command line options.
|
protected void |
initOptions()
Initialize CLI options.
|
static void |
main(String[] args)
CLI entry point method.
|
getArgDesc, getPropertiesFromOptions, initConnectionFactory, performAction, printExamples, printHelpprivate static final String OPT_DSMLV1
private static final String COMMAND_NAME
public static void main(String[] args)
args - command line arguments.protected void initOptions()
AbstractCliinitOptions in class AbstractCliprotected Authenticator initAuthenticator(org.apache.commons.cli.CommandLine line)
line - parsed command line argumentsprotected AuthenticationRequest initAuthenticationRequest(org.apache.commons.cli.CommandLine line)
line - parsed command line argumentsprotected int dispatch(org.apache.commons.cli.CommandLine line)
throws Exception
AbstractClidispatch in class AbstractCliline - parsed command line argumentsException - on errors thrown by actionprotected int authenticate(Authenticator auth, AuthenticationRequest request) throws Exception
auth - authenticatorrequest - authentication requestException - on any LDAP errorprotected String getCommandName()
AbstractCligetCommandName in class AbstractCliCopyright © 2003-2019 Virginia Tech. All Rights Reserved.