|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.crypt.AbstractCli
edu.vt.middleware.crypt.digest.DigestCli
public class DigestCli
Command line interface for digest operations.
| Field Summary | |
|---|---|
protected static String |
OPT_ALG
Digest algorithm option. |
protected static String |
OPT_ENCODING
Output encoding format. |
protected static String |
OPT_SALT
Salt for digest initialization. |
| Fields inherited from class edu.vt.middleware.crypt.AbstractCli |
|---|
BASE_64_ENCODING, HEX_ENCODING, OPT_EXAMPLE, OPT_INFILE, options, PEM_SUFFIX |
| Constructor Summary | |
|---|---|
DigestCli()
|
|
| Method Summary | |
|---|---|
protected void |
digest(org.apache.commons.cli.CommandLine line)
Compute a digest of a data stream from options defined on command line. |
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 void |
initOptions()
Initialize CLI options. |
static void |
main(String[] args)
CLI entry point method. |
| Methods inherited from class edu.vt.middleware.crypt.AbstractCli |
|---|
closeStream, closeStream, getInputStream, getInputStream, performAction, printExamples, printHelp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String OPT_ALG
protected static final String OPT_SALT
protected static final String OPT_ENCODING
| Constructor Detail |
|---|
public DigestCli()
| Method Detail |
|---|
public static void main(String[] args)
args - Command line arguments.protected void initOptions()
initOptions in class AbstractCli
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 digest(org.apache.commons.cli.CommandLine line)
throws Exception
line - Command line argument container.
Exception - On digest errors.protected String getCommandName()
getCommandName in class AbstractCli
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||