net.i2p.data
public class SigningPublicKey extends SimpleDataStructure
Modifier and Type | Field and Description |
---|---|
static int |
KEYSIZE_BYTES |
_data, _length
Constructor and Description |
---|
SigningPublicKey() |
SigningPublicKey(byte[] data) |
SigningPublicKey(String base64Data)
constructs from base64
|
Modifier and Type | Method and Description |
---|---|
static SigningPublicKey |
create(byte[] data,
int off)
Pull from cache or return new
|
static SigningPublicKey |
create(InputStream in)
Pull from cache or return new
|
int |
length()
The legal length of the byte array in this data structure
|
calculateHash, equals, fromBase64, fromByteArray, getData, hashCode, readBytes, setData, toBase64, toByteArray, toString, writeBytes
read
public static final int KEYSIZE_BYTES
public SigningPublicKey()
public SigningPublicKey(byte[] data)
public SigningPublicKey(String base64Data) throws DataFormatException
base64Data
- a string of base64 data (the output of .toBase64() called
on a prior instance of SigningPublicKeyDataFormatException
public static SigningPublicKey create(byte[] data, int off)
AIOOBE
- if not enough bytespublic static SigningPublicKey create(InputStream in) throws IOException
IOException
public int length()
SimpleDataStructure
length
in class SimpleDataStructure