|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.AbstractCli
edu.vt.middleware.ldap.auth.AuthenticatorCli
public class AuthenticatorCli
Command line interface for authenticator operations.
| Field Summary |
|---|
| Fields inherited from class edu.vt.middleware.ldap.AbstractCli |
|---|
logger, OPT_DSMLV1, OPT_DSMLV2, OPT_HELP, OPT_TRACE, OPT_USE_PROPERTIES, options, opts, outputDsmlv1, outputDsmlv2 |
| Constructor Summary | |
|---|---|
AuthenticatorCli()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class edu.vt.middleware.ldap.AbstractCli |
|---|
getArgs, initLdapProperties, initOptions, performAction, printExamples, printHelp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticatorCli()
| Method Detail |
|---|
public static void main(String[] args)
args - Command line arguments.protected void initOptions()
initOptions in class AbstractCli
protected AuthenticatorConfig initAuthenticatorConfig(org.apache.commons.cli.CommandLine line)
throws Exception
line - Parsed command line arguments container.
AuthenticatorConfig that has been initialized
Exception - 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 return
Exception - On errors.protected String getCommandName()
getCommandName in class AbstractCli
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||