DataStructure
public class PublicKey extends SimpleDataStructure
修飾子とタイプ | フィールド | 説明 |
---|---|---|
static int |
KEYSIZE_BYTES |
_data
コンストラクタ | 説明 |
---|---|
PublicKey() |
|
PublicKey(byte[] data) |
|
PublicKey(java.lang.String base64Data) |
constructs from base64
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
static void |
clearCache() |
|
static PublicKey |
create(byte[] data,
int off) |
Pull from cache or return new.
|
static PublicKey |
create(java.io.InputStream in) |
Pull from cache or return new
|
int |
length() |
The legal length of the byte array in this data structure
|
read
calculateHash, equals, fromBase64, fromByteArray, getData, hashCode, readBytes, setData, toBase64, toByteArray, toString, writeBytes
public static final int KEYSIZE_BYTES
public PublicKey()
public PublicKey(byte[] data)
data
- must be non-nullpublic PublicKey(java.lang.String base64Data) throws DataFormatException
base64Data
- a string of base64 data (the output of .toBase64() called
on a prior instance of PublicKeyDataFormatException
public static PublicKey create(byte[] data, int off)
java.lang.ArrayIndexOutOfBoundsException
- if not enough bytes, FIXME should throw DataFormatExceptionpublic static PublicKey create(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public int length()
SimpleDataStructure
length
クラス内 SimpleDataStructure
public static void clearCache()