|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.index.packer.DigesterUtils
public class DigesterUtils
A util class to calculate various digests on Strings. Useful for some simple password management.
Constructor Summary | |
---|---|
DigesterUtils()
|
Method Summary | |
---|---|
static char[] |
encodeHex(byte[] data)
Blatantly copied from commons-codec version 1.3 |
static String |
getMd5Digest(File file)
Calculates a SHA1 digest for a file. |
static String |
getMd5Digest(InputStream is)
Calculates a SHA1 digest for a stream. |
static String |
getMd5Digest(String content)
Calculates a SHA1 digest for a string. |
static String |
getSha1Digest(File file)
Calculates a SHA1 digest for a file. |
static String |
getSha1Digest(InputStream is)
Calculates a SHA1 digest for a stream. |
static String |
getSha1Digest(String content)
Calculates a SHA1 digest for a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DigesterUtils()
Method Detail |
---|
public static String getSha1Digest(String content)
content
-
public static String getSha1Digest(InputStream is)
content
-
public static String getSha1Digest(File file)
content
-
public static String getMd5Digest(String content)
content
-
public static String getMd5Digest(InputStream is)
content
-
public static String getMd5Digest(File file)
content
-
public static char[] encodeHex(byte[] data)
data
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |