net.i2p.data
public class SigningPrivateKey extends SimpleDataStructure
Modifier and Type | Field and Description |
---|---|
static int |
KEYSIZE_BYTES |
_data, _length
Constructor and Description |
---|
SigningPrivateKey() |
SigningPrivateKey(byte[] data) |
SigningPrivateKey(String base64Data)
constructs from base64
|
Modifier and Type | Method and Description |
---|---|
int |
length()
The legal length of the byte array in this data structure
|
SigningPublicKey |
toPublic()
converts this signing private key to its public equivalent
|
calculateHash, equals, fromBase64, fromByteArray, getData, hashCode, readBytes, setData, toBase64, toByteArray, toString, writeBytes
read
public static final int KEYSIZE_BYTES
public SigningPrivateKey()
public SigningPrivateKey(byte[] data)
public SigningPrivateKey(String base64Data) throws DataFormatException
base64Data
- a string of base64 data (the output of .toBase64() called
on a prior instance of SigningPrivateKeyDataFormatException
public int length()
SimpleDataStructure
length
in class SimpleDataStructure
public SigningPublicKey toPublic()