|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fulcrum.jce.crypto.Main
public class Main
Command line tool for encrypting/decrypting files file [enc|dec] passwd [file]* string [enc|dec] passwd plaintext
Constructor Summary | |
---|---|
Main()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Allows testing on the command lnie |
static void |
printHelp()
Prints usage information. |
static void |
processFile(java.lang.String cipherMode,
char[] password,
java.io.File sourceFile,
java.io.File targetFile)
Decrypt/encrypt a single file |
static void |
processFiles(java.lang.String[] args)
Decrypt/encrypt a list of files |
static void |
processString(java.lang.String[] args)
Decrypt/encrypt a string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Main()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- the command line parameterspublic static void printHelp()
public static void processFiles(java.lang.String[] args) throws java.lang.Exception
args
- the command line
java.lang.Exception
- the operation failedpublic static void processFile(java.lang.String cipherMode, char[] password, java.io.File sourceFile, java.io.File targetFile) throws java.lang.Exception
cipherMode
- the modepassword
- the passworssourceFile
- the file to processtargetFile
- the targetf file
java.lang.Exception
- the operation failedpublic static void processString(java.lang.String[] args) throws java.lang.Exception
args
- the command line
java.lang.Exception
- the operation failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |