@Deprecated
public interface KeyManageable
extends java.io.Closeable
Modifier and Type | Method and Description |
---|---|
void |
bindKeyStore(java.security.KeyStore keyStore)
Deprecated.
Bind a keystore with wallet.
|
void |
close()
Deprecated.
|
java.lang.String |
exportKey(Authentication authentication)
Deprecated.
Export an aergo key of a current account with encrypted.
|
java.util.List<Identity> |
listKeyStoreIdentities()
Deprecated.
Get all the stored identities in a binded key store.
|
boolean |
lock(Authentication authentication)
Deprecated.
Lock current account with
Authentication . |
void |
saveKey(AergoKey aergoKey,
Identity identity,
java.lang.String password)
Deprecated.
Save an aergo key to the key store.
|
void |
saveKey(AergoKey aergoKey,
java.lang.String password)
Deprecated.
Save an aergo key to the key store.
|
void |
storeKeyStore(java.lang.String path,
java.lang.String password)
Deprecated.
Store the keystore to the path.
|
boolean |
unlock(Authentication authentication)
Deprecated.
Unlock account with
Authentication . |
void bindKeyStore(java.security.KeyStore keyStore)
WalletType.Secure
.
For other wallet type, do nothing.keyStore
- a java keystorevoid saveKey(AergoKey aergoKey, java.lang.String password)
WalletType.Naive
.aergoKey
- an aergo keypassword
- an encrypt keyKeyStoreException
- on keystore errorvoid saveKey(AergoKey aergoKey, Identity identity, java.lang.String password)
WalletType.Naive
.aergoKey
- an aergo keyidentity
- an identity to save keypassword
- an encrypt keyKeyStoreException
- on keystore errorjava.lang.String exportKey(Authentication authentication)
authentication
- an authenticationKeyStoreException
- on keystore errorjava.util.List<Identity> listKeyStoreIdentities()
KeyStoreException
- on keystore errorboolean unlock(Authentication authentication)
Authentication
.authentication
- an authenticationKeyStoreException
- on keystore errorboolean lock(Authentication authentication)
Authentication
.authentication
- an authenticationKeyStoreException
- on keystore errorvoid storeKeyStore(java.lang.String path, java.lang.String password)
WalletType.Secure
. For other wallet type, do nothing.path
- a pathpassword
- a password used in storing key storeKeyStoreException
- on keystore errorvoid close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable