|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.cli.AbstractCli
org.ldaptive.cli.AuthenticatorCli
public class AuthenticatorCli
Command line interface for Authenticator.
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.cli.AbstractCli |
|---|
OPT_HELP, OPT_PROVIDER_PROPERTIES, options, outputDsmlv1 |
| Constructor Summary | |
|---|---|
AuthenticatorCli()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.ldaptive.cli.AbstractCli |
|---|
getArgDesc, getPropertiesFromOptions, initConnectionFactory, 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 AbstractCliprotected Authenticator initAuthenticator(org.apache.commons.cli.CommandLine line)
line - parsed command line arguments
protected AuthenticationRequest initAuthenticationRequest(org.apache.commons.cli.CommandLine line)
line - parsed command line arguments
protected int dispatch(org.apache.commons.cli.CommandLine line)
throws Exception
dispatch in class AbstractCliline - parsed command line arguments
Exception - on errors thrown by action
protected int authenticate(Authenticator auth,
AuthenticationRequest request)
throws Exception
auth - authenticatorrequest - authentication request
Exception - on any LDAP errorprotected String getCommandName()
getCommandName in class AbstractCli
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||