edu.vt.middleware.ldap.auth
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,
java.lang.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 java.lang.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(java.lang.String[] args)
CLI entry point method.
|
getArgs, initLdapProperties, initOptions, performAction, printExamples, printHelppublic static void main(java.lang.String[] args)
args - Command line arguments.protected void initOptions()
initOptions in class AbstractCliprotected AuthenticatorConfig initAuthenticatorConfig(org.apache.commons.cli.CommandLine line) throws java.lang.Exception
line - Parsed command line arguments container.AuthenticatorConfig that has been initializedjava.lang.Exception - On errors thrown by handler.protected void dispatch(org.apache.commons.cli.CommandLine line)
throws java.lang.Exception
dispatch in class AbstractCliline - Parsed command line arguments container.java.lang.Exception - On errors thrown by handler.protected void authenticate(AuthenticatorConfig config, java.lang.String[] attrs) throws java.lang.Exception
config - Authenticator configuration.attrs - Ldap attributes to returnjava.lang.Exception - On errors.protected java.lang.String getCommandName()
getCommandName in class AbstractCliCopyright © 2014. All Rights Reserved.