public class KeyPresenter
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
static java.math.BigInteger |
asBigInteger(byte[] keyBytes)
Convert key bytes to big integer
|
static byte[] |
asBytes(java.math.BigInteger bigIntegerKey,
int len)
Return key bytes
|
static byte[] |
asBytes(java.lang.String hexKey)
Return key bytes
|
static java.lang.String |
asString(byte[] keyBytes)
Convert key bytes to hex string
|
public static java.lang.String asString(byte[] keyBytes)
keyBytes - can be private key or public keypublic static java.math.BigInteger asBigInteger(byte[] keyBytes)
keyBytes - can be private key or public keypublic static byte[] asBytes(java.lang.String hexKey)
hexKey - Hex format key. Can be private key or public keypublic static byte[] asBytes(java.math.BigInteger bigIntegerKey,
int len)
bigIntegerKey - BigInteger format key. Can be private key or public key