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
SSKVerifyExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic byte[] getRawHeaders()
getRawHeaders in interface KeyBlockpublic byte[] getRawData()
getRawData in interface KeyBlockpublic DSAPublicKey getPubKey()
public byte[] getPubkeyBytes()
getPubkeyBytes in interface KeyBlockpublic byte[] getFullKey()
getFullKey in interface StorableBlockpublic byte[] getRoutingKey()
getRoutingKey in interface StorableBlock