public class AsynchronousWalletUnlockerAPI extends AsynchronousAPI
channel, DEFAULT_MAX_INBOUND_MESSAGE_SIZE, log, performValidation, statusExceptionWrapper, wrapperFactory
Constructor and Description |
---|
AsynchronousWalletUnlockerAPI(io.grpc.ManagedChannel channel)
Constructor used for setting up a connection using a GRPC managed channel that
can be customized.
|
AsynchronousWalletUnlockerAPI(java.lang.String host,
int port,
java.io.File trustedServerCertificate,
java.io.File macaroonFile)
Minimal constructor for setting up a connection with LND Application.
|
AsynchronousWalletUnlockerAPI(java.lang.String host,
int port,
io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext,
MacaroonContext macaroonContext)
Constructor for setting up a connection with LND Application with more flexible
SSL context parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
changePassword(byte[] currentPassword,
byte[] newPassword,
java.lang.Boolean statelessInit,
java.lang.Boolean newMacaroonRootKey,
io.grpc.stub.StreamObserver<ChangePasswordResponse> responseObserver)
Method to generate a changePassword request.
|
void |
changePassword(ChangePasswordRequest request,
io.grpc.stub.StreamObserver<ChangePasswordResponse> responseObserver)
Method to send a changePassword request.
|
void |
genSeed(byte[] aezeedPassphrase,
byte[] seedEntropy,
io.grpc.stub.StreamObserver<GenSeedResponse> responseObserver)
Method to generate a genSeed request.
|
void |
genSeed(GenSeedRequest request,
io.grpc.stub.StreamObserver<GenSeedResponse> responseObserver)
Method to send a genSeed request.
|
protected WalletUnlockerGrpc.WalletUnlockerStub |
getStub() |
void |
initWallet(byte[] walletPassword,
java.util.List<java.lang.String> cipherSeedMnemonic,
byte[] aezeedPassphrase,
java.lang.Integer recoveryWindow,
ChanBackupSnapshot channelBackups,
java.lang.Boolean statelessInit,
java.lang.String extendedMasterKey,
java.lang.Long extendedMasterKeyBirthdayTimestamp,
WatchOnly watchOnly,
byte[] macaroonRootKey,
io.grpc.stub.StreamObserver<InitWalletResponse> responseObserver)
Method to generate a initWallet request.
|
void |
initWallet(InitWalletRequest request,
io.grpc.stub.StreamObserver<InitWalletResponse> responseObserver)
Method to send a initWallet request.
|
void |
unlockWallet(byte[] walletPassword,
java.lang.Integer recoveryWindow,
ChanBackupSnapshot channelBackups,
java.lang.Boolean statelessInit,
io.grpc.stub.StreamObserver<UnlockWalletResponse> responseObserver)
Method to generate a unlockWallet request.
|
void |
unlockWallet(UnlockWalletRequest request,
io.grpc.stub.StreamObserver<UnlockWalletResponse> responseObserver)
Method to send a unlockWallet request.
|
processResponse
close, isPerformValidation, processRequest, setPerformValidation, validate
public AsynchronousWalletUnlockerAPI(java.lang.String host, int port, java.io.File trustedServerCertificate, java.io.File macaroonFile) throws javax.net.ssl.SSLException, ClientSideException
host
- the hostname of ldn applicationport
- the port of the application.trustedServerCertificate
- a link of the SSL certificate used by the LND Application.macaroonFile
- the file pointing to the macaroon to use, or null if no macaroons are used.javax.net.ssl.SSLException
- if problems occurred setting up the SSL Connection.ClientSideException
- if problems occurred reading the macaroon file.public AsynchronousWalletUnlockerAPI(java.lang.String host, int port, io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext, MacaroonContext macaroonContext)
host
- the hostname of ldn applicationport
- the port of the application.sslContext
- the SSL Context used when connecting the LND Application.macaroonContext
- the macaroon context to use.public AsynchronousWalletUnlockerAPI(io.grpc.ManagedChannel channel)
channel
- the managed channel to use.public void initWallet(byte[] walletPassword, java.util.List<java.lang.String> cipherSeedMnemonic, byte[] aezeedPassphrase, java.lang.Integer recoveryWindow, ChanBackupSnapshot channelBackups, java.lang.Boolean statelessInit, java.lang.String extendedMasterKey, java.lang.Long extendedMasterKeyBirthdayTimestamp, WatchOnly watchOnly, byte[] macaroonRootKey, io.grpc.stub.StreamObserver<InitWalletResponse> responseObserver) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletUnlockerGrpc.WalletUnlockerStub.initWallet(Walletunlocker.InitWalletRequest, io.grpc.stub.StreamObserver)
public void initWallet(InitWalletRequest request, io.grpc.stub.StreamObserver<InitWalletResponse> responseObserver) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletUnlockerGrpc.WalletUnlockerStub.initWallet(Walletunlocker.InitWalletRequest,io.grpc.stub.StreamObserver)
public void unlockWallet(byte[] walletPassword, java.lang.Integer recoveryWindow, ChanBackupSnapshot channelBackups, java.lang.Boolean statelessInit, io.grpc.stub.StreamObserver<UnlockWalletResponse> responseObserver) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletUnlockerGrpc.WalletUnlockerStub.unlockWallet(Walletunlocker.UnlockWalletRequest, io.grpc.stub.StreamObserver)
public void unlockWallet(UnlockWalletRequest request, io.grpc.stub.StreamObserver<UnlockWalletResponse> responseObserver) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletUnlockerGrpc.WalletUnlockerStub.unlockWallet(Walletunlocker.UnlockWalletRequest,io.grpc.stub.StreamObserver)
public void changePassword(byte[] currentPassword, byte[] newPassword, java.lang.Boolean statelessInit, java.lang.Boolean newMacaroonRootKey, io.grpc.stub.StreamObserver<ChangePasswordResponse> responseObserver) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletUnlockerGrpc.WalletUnlockerStub.changePassword(Walletunlocker.ChangePasswordRequest, io.grpc.stub.StreamObserver)
public void changePassword(ChangePasswordRequest request, io.grpc.stub.StreamObserver<ChangePasswordResponse> responseObserver) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletUnlockerGrpc.WalletUnlockerStub.changePassword(Walletunlocker.ChangePasswordRequest,io.grpc.stub.StreamObserver)
public void genSeed(byte[] aezeedPassphrase, byte[] seedEntropy, io.grpc.stub.StreamObserver<GenSeedResponse> responseObserver) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletUnlockerGrpc.WalletUnlockerStub.genSeed(Walletunlocker.GenSeedRequest, io.grpc.stub.StreamObserver)
public void genSeed(GenSeedRequest request, io.grpc.stub.StreamObserver<GenSeedResponse> responseObserver) throws StatusException, ValidationException
StatusException
- if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException
- if validation problems found in request or response data.WalletUnlockerGrpc.WalletUnlockerStub.genSeed(Walletunlocker.GenSeedRequest,io.grpc.stub.StreamObserver)
protected WalletUnlockerGrpc.WalletUnlockerStub getStub()