|
TrueUpdate Core 0.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.java.trueupdate.core.io.MessageDigests
@Immutable public class MessageDigests
Provides message digest functions.
| Method Summary | |
|---|---|
static MessageDigest |
create(String algorithm)
Returns a new message digest for the given algorithm name. |
static MessageDigest |
sha1()
Returns a new SHA-1 message digest. |
static void |
updateDigestFrom(MessageDigest digest,
Source source)
Updates the given message digest with the binary data from the given source. |
static String |
valueOf(MessageDigest digest)
Returns a positive, big-endian integer in hexadecimal string notation representing the value of the given message digest. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MessageDigest create(String algorithm)
algorithm - the algorithm name.
IllegalArgumentException - if no implementation of the algorithm
is found.public static MessageDigest sha1()
public static void updateDigestFrom(MessageDigest digest,
Source source)
throws IOException
digest - the message digest to update.source - the source for reading the binary data.
IOExceptionpublic static String valueOf(MessageDigest digest)
digest - a message digest.
|
TrueUpdate Core 0.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||