Package org.xrpl.xrpl4j.wallet
Class DefaultWalletFactory
java.lang.Object
org.xrpl.xrpl4j.wallet.DefaultWalletFactory
- All Implemented Interfaces:
WalletFactory
Deprecated.
This class will be removed in a future version. Consider using classes from org.xrpl.xrpl4j.core.wallet
instead.
Default implementation of
WalletFactory
.-
Constructor Summary
ConstructorDescriptionDefaultWalletFactory
(KeyPairService keyPairService, AddressCodec addressCodec) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionfromKeyPair
(KeyPair keyPair, boolean isTest) Deprecated.Generate aWallet
from a Base58Check encoded seed value.static WalletFactory
Deprecated.Get a JVM wideWalletFactory
instance.randomWallet
(boolean isTest) Deprecated.Generate aWallet
by generating a random seed and deriving the public/private keys and XRPL address from it.
-
Constructor Details
-
DefaultWalletFactory
Deprecated.- Parameters:
keyPairService
- AKeyPairService
.addressCodec
- AnAddressCodec
.
-
-
Method Details
-
getInstance
Deprecated.Get a JVM wideWalletFactory
instance.- Returns:
- A static
DefaultWalletFactory
instance.
-
randomWallet
Deprecated.Description copied from interface:WalletFactory
Generate aWallet
by generating a random seed and deriving the public/private keys and XRPL address from it.- Specified by:
randomWallet
in interfaceWalletFactory
- Parameters:
isTest
- A boolean requesting either a testnet wallet (iftrue
) or a mainnet wallet (iffalse
).- Returns:
- A
SeedWalletGenerationResult
, which contains the seed that was generated, as well as theWallet
.
-
fromSeed
Deprecated.Description copied from interface:WalletFactory
Generate aWallet
from a Base58Check encoded seed value.- Specified by:
fromSeed
in interfaceWalletFactory
- Parameters:
seed
- A Base58Check encoded 16 byte seed value.isTest
- A boolean indicating either a testnet wallet (iftrue
) or a mainnet wallet (iffalse
).- Returns:
- The
Wallet
derived from the seed.
-
fromKeyPair
Deprecated.Description copied from interface:WalletFactory
- Specified by:
fromKeyPair
in interfaceWalletFactory
- Parameters:
keyPair
- TheKeyPair
containing the private and public keys used to generate theWallet
.isTest
- A boolean indicating either a testnet wallet (iftrue
) or a mainnet wallet (iffalse
).- Returns:
- The
Wallet
derived from the keyPair.
-