public class CLI extends Object
| Constructor and Description |
|---|
CLI() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Allows testing on the command line.
|
static void |
printHelp()
Prints usage information.
|
static void |
processFile(String cipherMode,
char[] password,
File sourceFile,
File targetFile)
Decrypt and encrypt a single file
|
static void |
processFiles(String[] args)
Decrypt/encrypt a list of files
|
static void |
processString(String[] args)
Decrypt/encrypt a string.
|
public static void main(String[] args)
args - the command line parameterspublic static void printHelp()
public static void processFiles(String[] args) throws Exception
args - the command lineException - the operation failedpublic static void processFile(String cipherMode, char[] password, File sourceFile, File targetFile) throws Exception
cipherMode - the modepassword - the passwordsourceFile - the file to processtargetFile - the target fileException - the operation failedCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.