public class DefaultKeyChainFactory extends Object implements KeyChainFactory
Constructor and Description |
---|
DefaultKeyChainFactory() |
Modifier and Type | Method and Description |
---|---|
DeterministicKeyChain |
makeKeyChain(Protos.Key key,
Protos.Key firstSubKey,
DeterministicSeed seed,
KeyCrypter crypter,
boolean isMarried)
Make a keychain (but not a watching one).
|
DeterministicKeyChain |
makeWatchingKeyChain(Protos.Key key,
Protos.Key firstSubKey,
DeterministicKey accountKey,
boolean isFollowingKey,
boolean isMarried)
Make a watching keychain.
|
public DeterministicKeyChain makeKeyChain(Protos.Key key, Protos.Key firstSubKey, DeterministicSeed seed, KeyCrypter crypter, boolean isMarried)
KeyChainFactory
makeKeyChain
in interface KeyChainFactory
key
- the protobuf for the root keyfirstSubKey
- the protobuf for the first child key (normally the parent of the external subchain)seed
- the seedcrypter
- the encrypted/decrypterisMarried
- whether the keychain is leading in a marriagepublic DeterministicKeyChain makeWatchingKeyChain(Protos.Key key, Protos.Key firstSubKey, DeterministicKey accountKey, boolean isFollowingKey, boolean isMarried) throws UnreadableWalletException
KeyChainFactory
isMarried and isFollowingKey must not be true at the same time.
makeWatchingKeyChain
in interface KeyChainFactory
key
- the protobuf for the account keyfirstSubKey
- the protobuf for the first child key (normally the parent of the external subchain)accountKey
- the account extended public keyisFollowingKey
- whether the keychain is following in a marriageisMarried
- whether the keychain is leading in a marriageUnreadableWalletException
Copyright © 2016. All rights reserved.