public class Key extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Key.Items |
static class |
Key.QueryBuilder |
| 限定符和类型 | 字段和说明 |
|---|---|
String |
alias
name of the key.
|
String |
file
path to the file of key.
|
String |
xpub
pubkey of the key.
|
| 构造器和说明 |
|---|
Key() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Key |
create(Client client,
String alias,
String password)
create
|
static boolean |
delete(Client client,
String xpub,
String password)
return none if the key is deleted successfully
|
static boolean |
resetPassword(Client client,
String xpub,
String old_password,
String new_password) |
public String alias
public String xpub
public String file
public static Key create(Client client, String alias, String password) throws BytomException
client - clientalias - name of the key.password - password of the key.BytomException - Exceptionpublic static boolean delete(Client client, String xpub, String password) throws BytomException
client - clientxpub - xpubpassword - passwordBytomException - Exceptionpublic static boolean resetPassword(Client client, String xpub, String old_password, String new_password) throws BytomException
client - vclientxpub - xpub pubkey of the keyold_password - old password of the keynew_password - new password of the keyBytomException - BytomExceptionCopyright © 2018. All rights reserved.