public class Fingerprint
extends java.lang.Object
| Constructor and Description |
|---|
Fingerprint(byte[] source)
Base constructor (160 bits).
|
Fingerprint(byte[] source,
int bitLength)
Constructor with length - produces bitLength bits.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
calculateFingerprint(byte[] input)
Return a byte array containing a calculated fingerprint for the passed in input data.
|
static byte[] |
calculateFingerprint(byte[] input,
int bitLength)
Return a byte array containing a calculated fingerprint for the passed in input data.
|
boolean |
equals(java.lang.Object o) |
byte[] |
getFingerprint() |
int |
hashCode() |
java.lang.String |
toString() |
public Fingerprint(byte[] source)
source - original data to calculate the fingerprint from.public Fingerprint(byte[] source,
int bitLength)
source - original data to calculate the fingerprint from.public byte[] getFingerprint()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static byte[] calculateFingerprint(byte[] input)
input - data to base the fingerprint on.public static byte[] calculateFingerprint(byte[] input,
int bitLength)
input - data to base the fingerprint on.bitLength - bit length of finger print to be produced.