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
CHKVerifyExceptionpublic CHKBlock(byte[] data2,
byte[] header2,
NodeCHK key,
byte cryptoAlgorithm)
throws CHKVerifyException
CHKVerifyExceptionpublic CHKBlock(byte[] data2,
byte[] header2,
NodeCHK key,
boolean verify,
byte cryptoAlgorithm)
throws CHKVerifyException
CHKVerifyExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic byte[] getHeaders()
public byte[] getData()
public static CHKBlock construct(byte[] data, byte[] header, byte cryptoAlgorithm) throws CHKVerifyException
CHKVerifyExceptionpublic byte[] getRawHeaders()
getRawHeaders in interface KeyBlockpublic byte[] getRawData()
getRawData in interface KeyBlockpublic byte[] getPubkeyBytes()
getPubkeyBytes in interface KeyBlockpublic byte[] getFullKey()
getFullKey in interface StorableBlockpublic byte[] getRoutingKey()
getRoutingKey in interface StorableBlockpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object