public class CHKBlock extends java.lang.Object implements KeyBlock
Modifier and Type | Field and Description |
---|---|
static int |
DATA_LENGTH |
static int |
MAX_COMPRESSED_DATA_LENGTH |
static int |
MAX_LENGTH_BEFORE_COMPRESSION |
static int |
TOTAL_HEADERS_LENGTH |
HASH_SHA256
Constructor and Description |
---|
CHKBlock(byte[] data2,
byte[] header2,
NodeCHK key) |
CHKBlock(byte[] data2,
byte[] header2,
NodeCHK key,
boolean verify,
byte cryptoAlgorithm) |
CHKBlock(byte[] data2,
byte[] header2,
NodeCHK key,
byte cryptoAlgorithm) |
Modifier and Type | Method and Description |
---|---|
static CHKBlock |
construct(byte[] data,
byte[] header,
byte cryptoAlgorithm) |
boolean |
equals(java.lang.Object o) |
byte[] |
getData() |
byte[] |
getFullKey() |
byte[] |
getHeaders() |
NodeCHK |
getKey() |
byte[] |
getPubkeyBytes() |
byte[] |
getRawData() |
byte[] |
getRawHeaders() |
byte[] |
getRoutingKey() |
int |
hashCode() |
java.lang.String |
toString() |
public static final int MAX_LENGTH_BEFORE_COMPRESSION
public static final int TOTAL_HEADERS_LENGTH
public static final int DATA_LENGTH
public static final int MAX_COMPRESSED_DATA_LENGTH
public CHKBlock(byte[] data2, byte[] header2, NodeCHK key) throws CHKVerifyException
CHKVerifyException
public CHKBlock(byte[] data2, byte[] header2, NodeCHK key, byte cryptoAlgorithm) throws CHKVerifyException
CHKVerifyException
public CHKBlock(byte[] data2, byte[] header2, NodeCHK key, boolean verify, byte cryptoAlgorithm) throws CHKVerifyException
CHKVerifyException
public java.lang.String toString()
toString
in class java.lang.Object
public byte[] getHeaders()
public byte[] getData()
public static CHKBlock construct(byte[] data, byte[] header, byte cryptoAlgorithm) throws CHKVerifyException
CHKVerifyException
public byte[] getRawHeaders()
getRawHeaders
in interface KeyBlock
public byte[] getRawData()
getRawData
in interface KeyBlock
public byte[] getPubkeyBytes()
getPubkeyBytes
in interface KeyBlock
public byte[] getFullKey()
getFullKey
in interface StorableBlock
public byte[] getRoutingKey()
getRoutingKey
in interface StorableBlock
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object