|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.user.lib.util.DigestUtil
public class DigestUtil
Computes and verifies digests of files and strings
| Method Summary | |
|---|---|
static void |
digestFile(String filename,
String algorithm)
Calculate digest of given file with given algorithm. |
static String |
digestString(String pass,
String algorithm)
Calculate digest of given String using given algorithm. |
static void |
main(String[] args)
Command line interface. |
static void |
printUsage()
Print the command line usage string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void main(String[] args)
args - the arguments passed in on the command linepublic static void printUsage()
public static void digestFile(String filename,
String algorithm)
filename - the String name of the file to be hashedalgorithm - the algorithm to be used to compute the digest
public static String digestString(String pass,
String algorithm)
throws NoSuchAlgorithmException
pass - the String to be hashedalgorithm - the algorithm to be used
NoSuchAlgorithmException - if the algorithm passed in cannot be found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||