public class Checksum
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Checksum.Kind
Kinds of checksum
|
Modifier and Type | Field and Description |
---|---|
private byte[] |
digest
Digest of the checksum
|
private Checksum.Kind |
kind
Kind of the Checksum
|
private static long |
serialVersionUID |
Constructor and Description |
---|
Checksum(byte[] digest,
Checksum.Kind kind)
Constructor to be called from the native code
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getDigest()
Retrieve the digest
|
Checksum.Kind |
getKind()
Retrieve the kind
|
private static final long serialVersionUID
private byte[] digest
private Checksum.Kind kind
public Checksum(byte[] digest, Checksum.Kind kind)
digest
- bytes of the digestkind
- kind of checksumpublic byte[] getDigest()
public Checksum.Kind getKind()