public class AuthenticatorCli extends AbstractCli
logger, OPT_DSMLV1, OPT_DSMLV2, OPT_HELP, OPT_TRACE, OPT_USE_PROPERTIES, options, opts, outputDsmlv1, outputDsmlv2| Constructor and Description |
|---|
AuthenticatorCli() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
authenticate(AuthenticatorConfig config,
String[] attrs)
Executes the authenticate operation.
|
protected void |
dispatch(org.apache.commons.cli.CommandLine line)
Dispatch command line data to the handler that can perform the operation
requested on the command line.
|
protected String |
getCommandName()
Gets the name of the command for which this class provides a CLI interface.
|
protected AuthenticatorConfig |
initAuthenticatorConfig(org.apache.commons.cli.CommandLine line)
Initialize an AuthenticatorConfig with command line options.
|
protected void |
initOptions()
Initialize CLI options.
|
static void |
main(String[] args)
CLI entry point method.
|
getArgs, initLdapProperties, initOptions, performAction, printExamples, printHelppublic static void main(String[] args)
args - Command line arguments.protected void initOptions()
initOptions in class AbstractCliprotected AuthenticatorConfig initAuthenticatorConfig(org.apache.commons.cli.CommandLine line) throws Exception
line - Parsed command line arguments container.AuthenticatorConfig that has been initializedException - On errors thrown by handler.protected void dispatch(org.apache.commons.cli.CommandLine line)
throws Exception
dispatch in class AbstractCliline - Parsed command line arguments container.Exception - On errors thrown by handler.protected void authenticate(AuthenticatorConfig config, String[] attrs) throws Exception
config - Authenticator configuration.attrs - Ldap attributes to returnException - On errors.protected String getCommandName()
getCommandName in class AbstractCliCopyright © 2014. All rights reserved.