public static class ECKeyPair.ECPrivateKey
extends java.lang.Object
| Constructor and Description |
|---|
ECPrivateKey(java.math.BigInteger key)
Creates a ECPrivateKey instance from the given private key.
|
ECPrivateKey(byte[] key)
Creates a ECPrivateKey instance from the given private key.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
void |
erase()
Overwrites the private key with zeros.
|
byte[] |
getBytes()
Gets this private key as a byte array in big-endian order (not in two's complement).
|
java.math.BigInteger |
getInt()
Gets this private key as an integer.
|
int |
hashCode() |
public ECPrivateKey(java.math.BigInteger key)
key - The private key.public ECPrivateKey(byte[] key)
key - The key's bytes.public java.math.BigInteger getInt()
public byte[] getBytes()
public void erase()
If this private key was generated from a byte array, that input array will be overwritten because this private key simply holds a reference to that input byte array.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object