}
Slot(long _seqnum, long _machineid, byte[] _prevhmac) {
- this(_seqnum, _machineid, _prevhmac, new byte[HMAC_SIZE]);
+ this(_seqnum, _machineid, _prevhmac, null);
}
Slot(long _seqnum, long _machineid) {
- this(_seqnum, _machineid, new byte[HMAC_SIZE], new byte[HMAC_SIZE]);
+ this(_seqnum, _machineid, new byte[HMAC_SIZE], null);
}
byte[] getHMAC() {
//Compute our HMAC
mac.update(array, HMAC_SIZE, array.length-HMAC_SIZE);
byte[] realmac=mac.doFinal();
+ hmac = realmac;
bb.position(0);
bb.put(realmac);
return array;
return machineid;
}
- byte[] getBytes() {
- return null;
- }
-
void setDead() {
decrementLiveCount();
seqnumlive=false;
}
public String toString() {
- return "<"+getSequenceNumber()+", "+new String(getBytes())+">";
+ return "<"+getSequenceNumber()+">";
}
}