public class SSKBlock extends java.lang.Object implements KeyBlock
Modifier and Type | Field and Description |
---|---|
static short |
DATA_LENGTH |
static int |
MAX_COMPRESSED_DATA_LENGTH |
static short |
TOTAL_HEADERS_LENGTH |
HASH_SHA256
Constructor and Description |
---|
SSKBlock(byte[] data,
byte[] headers,
NodeSSK nodeKey,
boolean dontVerify)
Initialize, and verify data, headers against key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
byte[] |
getFullKey() |
NodeSSK |
getKey() |
DSAPublicKey |
getPubKey() |
byte[] |
getPubkeyBytes() |
byte[] |
getRawData() |
byte[] |
getRawHeaders() |
byte[] |
getRoutingKey() |
int |
hashCode() |
public static final short DATA_LENGTH
public static final int MAX_COMPRESSED_DATA_LENGTH
public static final short TOTAL_HEADERS_LENGTH
public SSKBlock(byte[] data, byte[] headers, NodeSSK nodeKey, boolean dontVerify) throws SSKVerifyException
SSKVerifyException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public byte[] getRawHeaders()
getRawHeaders
in interface KeyBlock
public byte[] getRawData()
getRawData
in interface KeyBlock
public DSAPublicKey getPubKey()
public byte[] getPubkeyBytes()
getPubkeyBytes
in interface KeyBlock
public byte[] getFullKey()
getFullKey
in interface StorableBlock
public byte[] getRoutingKey()
getRoutingKey
in interface StorableBlock