Serializable, DataStructurepublic class PublicKey extends SimpleDataStructure
| Modifier and Type | Field | Description |
|---|---|---|
static int |
KEYSIZE_BYTES |
_data| Constructor | Description |
|---|---|
PublicKey() |
|
PublicKey(byte[] data) |
|
PublicKey(String base64Data) |
constructs from base64
|
| Modifier and Type | Method | Description |
|---|---|---|
static void |
clearCache() |
|
static PublicKey |
create(byte[] data,
int off) |
Pull from cache or return new.
|
static PublicKey |
create(InputStream in) |
Pull from cache or return new
|
int |
length() |
The legal length of the byte array in this data structure
|
readclone, finalize, getClass, notify, notifyAll, wait, wait, waitcalculateHash, equals, fromBase64, fromByteArray, getData, hashCode, readBytes, setData, toBase64, toByteArray, toString, writeBytespublic static final int KEYSIZE_BYTES
public PublicKey()
public PublicKey(byte[] data)
data - must be non-nullpublic PublicKey(String base64Data) throws DataFormatException
base64Data - a string of base64 data (the output of .toBase64() called
on a prior instance of PublicKeyDataFormatExceptionpublic static PublicKey create(byte[] data, int off)
ArrayIndexOutOfBoundsException - if not enough bytes, FIXME should throw DataFormatExceptionpublic static PublicKey create(InputStream in) throws IOException
IOExceptionpublic int length()
SimpleDataStructurelength in class SimpleDataStructurepublic static void clearCache()