public final class ChecksumLookup extends Object
MessageDigest
with the given algorithm name because CRC32 and
Adler32 are not cryptographic digests (and therefore not available via
MessageDigest.getInstance(String)
but sufficient for checksum generation.MessageDigest
Modifier and Type | Method and Description |
---|---|
static MessageDigest |
getInstance(String algorithm)
Retrieve a
MessageDigest that implements the given algorithm name. |
public static MessageDigest getInstance(String algorithm) throws NoSuchAlgorithmException
Retrieve a MessageDigest
that implements the given algorithm name. In addition to
MessageDigest
the following values are allowed:
CRC32
CRC32Adapter
.Adler32
Adler32Adapter
.algorithm
- the name of the algorithm requestedNoSuchAlgorithmException
- if the algorithm is not available in the caller's environment.MessageDigest.getInstance(String)
Copyright © 2017 levigo holding gmbh. All rights reserved.