public class Account extends Object
| Constructor | Description |
|---|---|
Account() |
| Modifier and Type | Method | Description |
|---|---|---|
PrivateKey |
getPrivateKey() |
Gets the private key.
|
PublicKey |
getPublicKey() |
Gets the public key.
|
static PrivateKey |
privateKeyFromHex(String hex) |
Private key from hex.
|
static PublicKey |
publicKeyFromHex(String hex) |
Public key from hex.
|
void |
setPrivateKey(PrivateKey privateKey) |
Sets the private key.
|
void |
setPublicKey(PublicKey publicKey) |
Sets the public key.
|
public PublicKey getPublicKey()
public void setPublicKey(PublicKey publicKey)
publicKey - the new public keypublic PrivateKey getPrivateKey()
public void setPrivateKey(PrivateKey privateKey)
privateKey - the new private keypublic static PrivateKey privateKeyFromHex(String hex) throws InvalidKeySpecException
hex - the hexInvalidKeySpecException - the invalid key spec exceptionpublic static PublicKey publicKeyFromHex(String hex) throws InvalidKeySpecException
hex - the hexInvalidKeySpecException - the invalid key spec exceptionCopyright © 2018. All rights reserved.