public class SpringLNDLightningHandler extends SimpleBaseLNDLightningHandler
asynchronousLndAPI, connected, synchronousLndAPIlisteners, log| Constructor and Description |
|---|
SpringLNDLightningHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getHost()
Method that should return the hostname of IP address of the LND node to connect to.
|
protected java.lang.String |
getMacaroonPath()
The path to the macaroon file that is used to authenticate to the LND node.
|
protected NodeInfo |
getNodeInfoFromConfiguration()
Method to retrieve node information from configuration or null if not configured.
|
protected int |
getPort()
Method that should return the port number of the LND node to connect to.
|
protected java.lang.String |
getSupportedCurrencyCode()
Method to retrieve configured supported currency code.
|
protected java.lang.String |
getTLSCertPath()
The path to the LND tls certificate to trust, securing the communication to the LND node.
|
close, connect, getAsyncAPI, getSyncAPI, isConnectedcheckConnection, clearCache, generateInvoice, getLndHelper, getNodeInfo, listenToInvoices, lookupInvoice, registerListener, unregisterListenerprotected java.lang.String getHost()
throws InternalErrorException
getHost in class SimpleBaseLNDLightningHandlerInternalErrorException - if problems occurred getting the configuration information.protected int getPort()
throws InternalErrorException
getPort in class SimpleBaseLNDLightningHandlerInternalErrorException - if problems occurred getting the configuration information.protected java.lang.String getTLSCertPath()
throws InternalErrorException
getTLSCertPath in class SimpleBaseLNDLightningHandlerInternalErrorException - if problems occurred getting the configuration information.protected java.lang.String getMacaroonPath()
throws InternalErrorException
getMacaroonPath in class SimpleBaseLNDLightningHandlerInternalErrorException - if problems occurred getting the configuration information.protected NodeInfo getNodeInfoFromConfiguration() throws InternalErrorException
Used when the LND macaroon doesn't have access rights to retrieve LND Node information.
getNodeInfoFromConfiguration in class BaseLNDLightningHandlerInternalErrorException - if problems occurred parsing the configuration.protected java.lang.String getSupportedCurrencyCode()
getSupportedCurrencyCode in class BaseLNDLightningHandler