|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.security.DigestUtil
public class DigestUtil
Computes and verifies digests of files and strings
| Method Summary | |
|---|---|
static void |
digestFile(java.lang.String filename,
java.lang.String algorithm)
Calculate digest of given file with given algorithm. |
static java.lang.String |
digestString(java.lang.String pass,
java.lang.String algorithm)
Calculate digest of given String using given algorithm. |
static void |
main(java.lang.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(java.lang.String[] args)
args - the arguments passed in on the command linepublic static void printUsage()
public static void digestFile(java.lang.String filename,
java.lang.String algorithm)
filename - the String name of the file to be hashedalgorithm - the algorithm to be used to compute the digest
public static java.lang.String digestString(java.lang.String pass,
java.lang.String algorithm)
throws java.security.NoSuchAlgorithmException
pass - the String to be hashedalgorithm - the algorithm to be used
java.security.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 | |||||||||