Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W 

A

add(JsonObjectBuilder, String, Object) - Method in class org.lightningj.paywall.JSONParsable
Method to add a field to a json object builder.
addB58(JsonObjectBuilder, String, String) - Method in class org.lightningj.paywall.JSONParsable
Special method when adding a B58 encoded value.
addIndex - Variable in class org.lightningj.paywall.lightninghandler.lnd.LNDLightningHandlerContext
 
addInterceptors(InterceptorRegistry) - Method in class org.lightningj.paywall.spring.InterceptorConfig
Override this method to add Spring MVC interceptors for pre- and post-processing of controller invocation.
addNotRequired(JsonObjectBuilder, String, Object) - Method in class org.lightningj.paywall.JSONParsable
Help method that can be used in convertToJson implementations to set a key in json if not null, otherwise the key is skipped.
addNotRequiredB58(JsonObjectBuilder, String, String) - Method in class org.lightningj.paywall.JSONParsable
Special method when adding a B58 encoded value.
addResourceHandlers(ResourceHandlerRegistry) - Method in class org.lightningj.paywall.paywalltademo.JavascriptTestResourceHandler
Method that adds resource handlers for reloading of directories ../paywall-js/build/dist/ and src/main/resources/static/.
afterCompletion(HttpServletRequest, HttpServletResponse, Object, Exception) - Method in class org.lightningj.paywall.spring.PaywallInterceptor
Interceptor method called after view have been completed that checks if related request has payPerRequest set and if true marks the related payment as executed and spent.
afterPropertiesSet() - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPaymentHandler
Method called after initialization of bean.
afterPropertiesSet() - Method in class org.lightningj.paywall.spring.SpringPaymentHandler
Invoked by the containing BeanFactory after it has set all bean properties and satisfied BeanFactoryAware, ApplicationContextAware etc.
aggregateSignificantData(CachableHttpServletRequest, DataOutputStream) - Method in class org.lightningj.paywall.requestpolicy.BaseRequestPolicy
Method to write all significant data.
aggregateSignificantData(CachableHttpServletRequest, DataOutputStream) - Method in class org.lightningj.paywall.requestpolicy.UrlAndMethod
Method to aggregates the HTTP method and URL (without parameters) from the request.
aggregateSignificantData(CachableHttpServletRequest, DataOutputStream) - Method in class org.lightningj.paywall.requestpolicy.UrlMethodAndParameters
Method to aggregates the HTTP method and URL (without parameters) from the request.
aggregateSignificantData(CachableHttpServletRequest, DataOutputStream) - Method in class org.lightningj.paywall.requestpolicy.WithBody
Method to aggregates the HTTP method and URL (without parameters) from the request.
ALG_SHA256_WITH_ECDSA - Static variable in class org.lightningj.paywall.util.Signer
 
ALLOWED_CLOCK_SKEW - Static variable in class org.lightningj.paywall.tokengenerator.BaseTokenGenerator
 
AlreadyExecutedException - Exception in org.lightningj.paywall
Exception thrown if related payment flow is payPerRequest and related settlement has already been settled.
AlreadyExecutedException(byte[], String) - Constructor for exception org.lightningj.paywall.AlreadyExecutedException
General exception indicating that something went wrong internally not due to client request.
Amount - Class in org.lightningj.paywall.vo.amount
Abstract class for a given amount of currency used in a payment.
Amount(AmountType) - Constructor for class org.lightningj.paywall.vo.amount.Amount
 
AmountType - Enum in org.lightningj.paywall.vo.amount
Represents the type of amount, either Fiat or cryptocurrency.
ANY_TYPE - Static variable in enum org.lightningj.paywall.paymenthandler.PaymentEventType
Special constant indicating ANY type is applicable.
APIError - Class in org.lightningj.paywall.spring
Value object class used to generate API error message when returning either JSON or XML.
APIError() - Constructor for class org.lightningj.paywall.spring.APIError
Empty Constructor
APIError(HttpStatus, String, List<String>) - Constructor for class org.lightningj.paywall.spring.APIError
Constructor when having multiple errors
APIError(HttpStatus, String, String) - Constructor for class org.lightningj.paywall.spring.APIError
Constructor when having one errors
APIError(JsonObject) - Constructor for class org.lightningj.paywall.spring.APIError
JSON Parseable constructor
AppConfig - Class in org.lightningj.paywall.springboot2
 
AppConfig() - Constructor for class org.lightningj.paywall.springboot2.AppConfig
 
ArticleData - Class in org.lightningj.paywall.paywalltademo.paymenthandler
Article Data is a demo table for looking up price for a given unit of article id.
ArticleData() - Constructor for class org.lightningj.paywall.paywalltademo.paymenthandler.ArticleData
 
ArticleData - Class in org.lightningj.paywall.springboot2.paymenthandler
Article Data is a demo table for looking up price for a given unit of article id.
ArticleData() - Constructor for class org.lightningj.paywall.springboot2.paymenthandler.ArticleData
 
ArticleDataRepository - Interface in org.lightningj.paywall.paywalltademo.paymenthandler
Spring Data repository for ArticleData.
ArticleDataRepository - Interface in org.lightningj.paywall.springboot2.paymenthandler
Spring Data repository for ArticleData.
asInternalMagnetude() - Method in enum org.lightningj.paywall.spring.response.Magnetude
 
asInternalNodeNetwork() - Method in enum org.lightningj.paywall.spring.response.NodeNetwork
 
AsymmetricKeyManager - Interface in org.lightningj.paywall.keymgmt
Base interface for a KeyManager in charge of maintaining asymmetric keys.
AsymmetricKeyTokenGenerator - Class in org.lightningj.paywall.tokengenerator
Token Manager to generate token using asymmetric key manager.
AsymmetricKeyTokenGenerator(AsymmetricKeyManager, RecipientRepository) - Constructor for class org.lightningj.paywall.tokengenerator.AsymmetricKeyTokenGenerator
Default constructor.
asynchronousLndAPI - Variable in class org.lightningj.paywall.lightninghandler.lnd.SimpleBaseLNDLightningHandler
 

B

Base58 - Class in org.lightningj.paywall.util
Utility class for Base58 encoding and decoding of data.
Base58() - Constructor for class org.lightningj.paywall.util.Base58
 
Base64Utils - Class in org.lightningj.paywall.util
Help method for base64 encoding/decoding.
Base64Utils() - Constructor for class org.lightningj.paywall.util.Base64Utils
 
BaseLNDLightningHandler - Class in org.lightningj.paywall.lightninghandler.lnd
Base implementation of LND Lightning Handler handling the methods for generateInvoice, lookupInvoice and invoice subscribing.
BaseLNDLightningHandler() - Constructor for class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
 
BaseLocalProfileBeanConfiguration - Class in org.lightningj.paywall.spring.local
Class containing most configuration definitions except LightningHandler.
BaseLocalProfileBeanConfiguration() - Constructor for class org.lightningj.paywall.spring.local.BaseLocalProfileBeanConfiguration
 
BasePaymentFlow - Class in org.lightningj.paywall.paymentflow
Base class containing common functionality between payment flows.
BasePaymentFlow(PaymentRequired, CachableHttpServletRequest, OrderRequest, RequestPolicyFactory, LightningHandler, PaymentHandler, TokenGenerator, CurrencyConverter, JwtClaims, ExpectedTokenType, Duration) - Constructor for class org.lightningj.paywall.paymentflow.BasePaymentFlow
Default constructor initializing the common parts of a PaymentFlow.
BasePaymentFlowManager - Class in org.lightningj.paywall.paymentflow
Base class for all PaymentFlowManager implementations that is in charge of creating payment flows for a given PaymentRequired annotation and managing all related sub-components such as TokenGenerator and LightningHandler etc.
BasePaymentFlowManager() - Constructor for class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
 
BasePaymentHandler - Class in org.lightningj.paywall.paymenthandler
Abstract Base PaymentHandler containing common logic to simplify implementation of specific implementation and let them focus on persisting payment data and looking up information for a given order from an order request.
BasePaymentHandler() - Constructor for class org.lightningj.paywall.paymenthandler.BasePaymentHandler
Empty Constructor
BasePaymentListener - Class in org.lightningj.paywall.paymenthandler
Abstract base class for a BasePaymentListener so extending classes only need to implement onPaymentEvent() Created by Philip Vendil on 2018-12-05.
BasePaymentListener(byte[], PaymentEventType, boolean) - Constructor for class org.lightningj.paywall.paymenthandler.BasePaymentListener
Default Constructor.
BaseRequestPolicy - Class in org.lightningj.paywall.requestpolicy
Base class with help methods to generate digest of the significant request data.
BaseRequestPolicy() - Constructor for class org.lightningj.paywall.requestpolicy.BaseRequestPolicy
 
BaseTokenGenerator - Class in org.lightningj.paywall.tokengenerator
Default abstract base class containing help method for implementing TokenGenerators.
BaseTokenGenerator() - Constructor for class org.lightningj.paywall.tokengenerator.BaseTokenGenerator
 
baseURL - Variable in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
 
BaseWebSocketSettledHandler<T> - Class in org.lightningj.paywall.spring.websocket
Base implement a WebSocket specific implementation when listening for settled event.
BaseWebSocketSettledHandler() - Constructor for class org.lightningj.paywall.spring.websocket.BaseWebSocketSettledHandler
 
BCUtils - Class in org.lightningj.paywall.util
Bouncy castle related utility methods.
BCUtils() - Constructor for class org.lightningj.paywall.util.BCUtils
 
bolt11Invoice - Variable in class org.lightningj.paywall.vo.Invoice
 
BTC - Class in org.lightningj.paywall.vo.amount
Crypto amount denominated in BTC.
BTC() - Constructor for class org.lightningj.paywall.vo.amount.BTC
Empty Constructor
BTC(long) - Constructor for class org.lightningj.paywall.vo.amount.BTC
Default Constructor with amount in without magnitude
BTC(long, Magnetude) - Constructor for class org.lightningj.paywall.vo.amount.BTC
Default Constructor with amount in satoshis with magnitude parameter in order to specify sub satoshi amounts.
BTC(JsonObject) - Constructor for class org.lightningj.paywall.vo.amount.BTC
JSON Parseable constructor
BTCPAY_SERVER_PRIVATE_KEYNAME - Static variable in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
 
BTCPAY_SERVER_PUBLIC_KEYNAME - Static variable in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
 
BTCPayServer - Class in org.lightningj.paywall.btcpayserver
Main class in charge of communicating with BTC Pay Server API using REST.
BTCPayServer() - Constructor for class org.lightningj.paywall.btcpayserver.BTCPayServer
 
BTCPayServerFacade - Enum in org.lightningj.paywall.btcpayserver
Enumeration indicating the different roles that might access the BTC Pay Server API.
BTCPayServerHelper - Class in org.lightningj.paywall.btcpayserver
Help class for generating SIN value for a given EC Public Key.
BTCPayServerHelper() - Constructor for class org.lightningj.paywall.btcpayserver.BTCPayServerHelper
 
btcPayServerHelper - Variable in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
 
BTCPayServerHTTPSender - Class in org.lightningj.paywall.btcpayserver
Class in charge of the http transport parts of sending JSON data to BTC Pay Server.
BTCPayServerHTTPSender(String, AsymmetricKeyManager) - Constructor for class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
Constructor of BTCPayServerHTTPSender when using default SSL Context.
BTCPayServerHTTPSender(String, AsymmetricKeyManager, SSLContext) - Constructor for class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
Constructor of BTCPayServerHTTPSender when using a custom SSL Context.
BTCPayServerHTTPSender.METHOD - Enum in org.lightningj.paywall.btcpayserver
Enumeration of available HTTP Metod values.
BTCPayServerKeyContext - Class in org.lightningj.paywall.btcpayserver
Cryptographic context specific for btcpay api key generation.
BTCPayServerResponseParser - Class in org.lightningj.paywall.btcpayserver
Class parsing JSON responses from BTC Pay Server into value objects.
BTCPayServerResponseParser() - Constructor for class org.lightningj.paywall.btcpayserver.BTCPayServerResponseParser
Default constructor
BTCPayServerTokenManager - Class in org.lightningj.paywall.btcpayserver
Class acting as a cache and manages generated BTC Pay Server API tokens.
BTCPayServerTokenManager() - Constructor for class org.lightningj.paywall.btcpayserver.BTCPayServerTokenManager
Default constructor

C

CachableHttpServletRequest - Interface in org.lightningj.paywall.web
Interface specifying a cachable HTTP Servlet Request where input data is cached and can be run multiple times.
CentralLightningHandlerPaymentFlow - Class in org.lightningj.paywall.paymentflow
Payment flow for use case there is one central node managing lightning invoices from orders generated by multiple paywalled applications.
CentralLightningHandlerPaymentFlow(PaymentRequired, CachableHttpServletRequest, OrderRequest, RequestPolicyFactory, LightningHandler, PaymentHandler, TokenGenerator, CurrencyConverter, JwtClaims, ExpectedTokenType, Duration, String, boolean) - Constructor for class org.lightningj.paywall.paymentflow.CentralLightningHandlerPaymentFlow
Default constructor for CentralLightningHandlerPaymentFlow, might be initialized differenlty given if flow state is in a pay walled node or central lightning handler node.
centralSystemRecipientId - Variable in class org.lightningj.paywall.paymentflow.CentralLightningHandlerPaymentFlow
 
CHECK_SETTLEMENT_QUEUE_PREFIX - Static variable in class org.lightningj.paywall.spring.websocket.PaywallWebSocketConfig
 
CHECK_SETTLEMENT_URL - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
checkBooleanWithDefault(String, String, boolean) - Static method in class org.lightningj.paywall.util.SettingUtils
Method that returns related boolean or default value if setting is empty.
checkConnection() - Method in class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
 
checkCryptoAmount(CryptoAmount) - Method in class org.lightningj.paywall.lightninghandler.lnd.LNDHelper
Method that the specified crypto amount is supported by LND.
checkIntegerWithDefault(String, String, int) - Static method in class org.lightningj.paywall.util.SettingUtils
Method that returns related integer or default value if setting is empty.
checkLongWithDefault(String, String, long) - Static method in class org.lightningj.paywall.util.SettingUtils
Method that returns related long or default value if setting is empty.
checkRequiredBoolean(String, String) - Static method in class org.lightningj.paywall.util.SettingUtils
Help method to parse a boolean for a required setting.
checkRequiredInteger(String, String) - Static method in class org.lightningj.paywall.util.SettingUtils
Help method to parse an integer for a required setting.
checkRequiredLong(String, String) - Static method in class org.lightningj.paywall.util.SettingUtils
Help method to parse an long for a required setting.
checkRequiredString(String, String) - Static method in class org.lightningj.paywall.util.SettingUtils
Help method that checks that given setting isn't null or empty otherwise it throws an InternalErrorException with error message that related key should be set.
checkSettledInvoice() - Method in class org.lightningj.paywall.paymentflow.CentralLightningHandlerPaymentFlow
Method to check if a invoice is settled and returns an InvoiceResult if it is settled, otherwise null.
checkSettledInvoice() - Method in class org.lightningj.paywall.paymentflow.LocalPaymentFlow
Unsupported operation in local payment flow.
checkSettledInvoice() - Method in interface org.lightningj.paywall.paymentflow.PaymentFlow
Method to check if a invoice is settled and returns an InvoiceResult if it is settled, otherwise null.
checkSettlement(byte[], boolean) - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
Method to check if a given preImageHash is settled and returns a settlement value object if invoice is settled.
checkSettlement(byte[], boolean) - Method in interface org.lightningj.paywall.paymenthandler.PaymentHandler
Method to check if a given preImageHash is settled and returns a settlement value object if invoice is settled.
checkSettlement(HttpServletRequest, HttpServletResponse) - Method in class org.lightningj.paywall.spring.controller.CheckSettlementController
Main controller action checking settlement for a generated invoice token set in header wih name 'Payment'.
CheckSettlementController - Class in org.lightningj.paywall.spring.controller
Controller for checking settlement using REST, either json or xml is supported.
CheckSettlementController() - Constructor for class org.lightningj.paywall.spring.controller.CheckSettlementController
 
checkStringWithDefault(String, String) - Static method in class org.lightningj.paywall.util.SettingUtils
Method that returns related string or default value if setting is empty.
CLAIM_NAME - Static variable in class org.lightningj.paywall.vo.Invoice
 
CLAIM_NAME - Static variable in class org.lightningj.paywall.vo.MinimalInvoice
 
CLAIM_NAME - Static variable in class org.lightningj.paywall.vo.Order
 
CLAIM_NAME - Static variable in class org.lightningj.paywall.vo.OrderRequest
 
CLAIM_NAME - Static variable in class org.lightningj.paywall.vo.RequestData
 
CLAIM_NAME - Static variable in class org.lightningj.paywall.vo.Settlement
 
clear() - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerTokenManager
Method to clear the current token cache.
clearCache() - Method in class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
Method to clear all cached objects, should be called when reconnecting to LND node.
clock - Variable in class org.lightningj.paywall.btcpayserver.BTCPayServerTokenManager
 
clock - Variable in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
 
clock - Variable in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
clock - Variable in class org.lightningj.paywall.requestpolicy.BaseRequestPolicy
 
clock - Variable in class org.lightningj.paywall.vo.RequestData
 
close() - Method in interface org.lightningj.paywall.lightninghandler.LightningHandler
Method to close the LND connections and release underlying resources.
close() - Method in class org.lightningj.paywall.lightninghandler.lnd.SimpleBaseLNDLightningHandler
Method to close the LND connections and release underlying resources.
CommonBeanConfiguration - Class in org.lightningj.paywall.spring
Class containing configuration for beans in common for all configuration profiles.
CommonBeanConfiguration() - Constructor for class org.lightningj.paywall.spring.CommonBeanConfiguration
 
configureClientInboundChannel(ChannelRegistration) - Method in class org.lightningj.paywall.spring.websocket.PaywallWebSocketConfig
 
configureMessageBroker(MessageBrokerRegistry) - Method in class org.lightningj.paywall.spring.websocket.PaywallWebSocketConfig
 
connect(LightningHandlerContext) - Method in interface org.lightningj.paywall.lightninghandler.LightningHandler
Method to open up a connection to the configured LND node.
connect(LightningHandlerContext) - Method in class org.lightningj.paywall.lightninghandler.lnd.SimpleBaseLNDLightningHandler
Method to open up a connection to the configured LND node.
connected - Variable in class org.lightningj.paywall.lightninghandler.lnd.SimpleBaseLNDLightningHandler
 
Context - Class in org.lightningj.paywall.keymgmt
Extendable class specifying context of crytographic operations.
Context() - Constructor for class org.lightningj.paywall.keymgmt.Context
 
context - Variable in class org.lightningj.paywall.lightninghandler.LightningEvent
 
Context.KeyUsage - Enum in org.lightningj.paywall.keymgmt
 
CONTEXT_INVOICE_TOKEN_TYPE - Static variable in class org.lightningj.paywall.tokengenerator.TokenContext
 
CONTEXT_PAYMENT_TOKEN_TYPE - Static variable in class org.lightningj.paywall.tokengenerator.TokenContext
 
CONTEXT_SETTLEMENT_TOKEN_TYPE - Static variable in class org.lightningj.paywall.tokengenerator.TokenContext
 
CONTEXT_TYPE - Static variable in class org.lightningj.paywall.lightninghandler.lnd.LNDLightningHandlerContext
 
convert(Amount) - Method in interface org.lightningj.paywall.currencyconverter.CurrencyConverter
Main method to convert amount created by payment handler into currency understandable by the used Lightning handler.
convert(Amount) - Method in class org.lightningj.paywall.currencyconverter.SameCryptoCurrencyConverter
Main method to convert amount created by payment handler into currency understandable by the used Lightning handler.
convert(NodeInfo, Invoice) - Method in class org.lightningj.paywall.lightninghandler.lnd.LNDHelper
Help method to convert a LND Invoice to a Invoice value object.
convertedAmount - Variable in class org.lightningj.paywall.vo.ConvertedOrder
 
ConvertedOrder - Class in org.lightningj.paywall.vo
Extension of Order also containing the amount generated by the CurrencyConverter in order to determine which amount the LightningHandler should use to create the invoice.
ConvertedOrder() - Constructor for class org.lightningj.paywall.vo.ConvertedOrder
Empty Constructor
ConvertedOrder(Order, CryptoAmount) - Constructor for class org.lightningj.paywall.vo.ConvertedOrder
Default Constructor.
ConvertedOrder(JsonObject) - Constructor for class org.lightningj.paywall.vo.ConvertedOrder
JSON Parseable constructor
convertPaymentOptions(PaymentRequired) - Method in class org.lightningj.paywall.orderrequestgenerator.DefaultOrderRequestGenerator
Help method to convert all PaymentRequired payment options into value objects.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
 
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.btcpayserver.vo.Rate
 
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.btcpayserver.vo.Token
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.JSONParsable
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.lightninghandler.LightningEvent
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.lightninghandler.lnd.LNDLightningHandlerContext
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.paymentflow.InvoiceResult
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.paymentflow.Result
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.paymentflow.SettlementResult
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.paymenthandler.PaymentEvent
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.spring.APIError
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.spring.response.Response
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.spring.response.SettlementResponse
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.vo.amount.Amount
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.vo.amount.CryptoAmount
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.vo.amount.FiatAmount
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.vo.ConvertedOrder
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.vo.Invoice
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.vo.MinimalInvoice
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.vo.NodeInfo
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.vo.Order
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.vo.OrderRequest
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.vo.PaymentOption
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.vo.PreImageData
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.vo.PreImageOrder
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.vo.RequestData
Method that should set the objects property to Json representation.
convertToJson(JsonObjectBuilder) - Method in class org.lightningj.paywall.vo.Settlement
Method that should set the objects property to Json representation.
COOKIE_INVOICE_REQUEST - Static variable in class org.lightningj.paywall.web.HTTPConstants
Cookie name used when redirecting an invoice request controller to check payment.
COOKIE_PAYMENT_REQUEST - Static variable in class org.lightningj.paywall.web.HTTPConstants
Cookie name used when redirecting an order request to a central payment controller and checking for payment.
createOrder(byte[], OrderRequest) - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
Method to create an order from a preImageHash and and order request.
createOrder(byte[], OrderRequest) - Method in interface org.lightningj.paywall.paymenthandler.PaymentHandler
Method to create an order from a preImageHash and and order request.
CryptoAmount - Class in org.lightningj.paywall.spring.response
XML and JSON representation of CryptoAmount.
CryptoAmount() - Constructor for class org.lightningj.paywall.spring.response.CryptoAmount
Empty constructor.
CryptoAmount(CryptoAmount) - Constructor for class org.lightningj.paywall.spring.response.CryptoAmount
Constructor converting an internal cryptoAmount to XML/JSON version.
CryptoAmount - Class in org.lightningj.paywall.vo.amount
Amount specified in crypto currency where value is the amount in its smallest demination.
CryptoAmount() - Constructor for class org.lightningj.paywall.vo.amount.CryptoAmount
Empty Constructor
CryptoAmount(long, String) - Constructor for class org.lightningj.paywall.vo.amount.CryptoAmount
Default Constructor, without magnitude
CryptoAmount(long, String, Magnetude) - Constructor for class org.lightningj.paywall.vo.amount.CryptoAmount
Default Constructor
CryptoAmount(JsonObject) - Constructor for class org.lightningj.paywall.vo.amount.CryptoAmount
JSON Parseable constructor
CURRENCY_CODE_BTC - Static variable in class org.lightningj.paywall.vo.amount.CryptoAmount
 
CURRENCY_CODE_LTC - Static variable in class org.lightningj.paywall.vo.amount.CryptoAmount
 
currencyCode - Variable in class org.lightningj.paywall.vo.amount.CryptoAmount
 
CurrencyConverter - Interface in org.lightningj.paywall.currencyconverter
Interface for component to convert an amount in either fiat or crypto currency into an amount that is understandable to the related LightningHandler or equivalent.
CustomCurrencyConverter - Class in org.lightningj.paywall.springboot2
 
CustomCurrencyConverter() - Constructor for class org.lightningj.paywall.springboot2.CustomCurrencyConverter
 
CustomLocalProfileBeanConfiguration - Class in org.lightningj.paywall.springboot2
 
CustomLocalProfileBeanConfiguration() - Constructor for class org.lightningj.paywall.springboot2.CustomLocalProfileBeanConfiguration
 

D

decode(byte[]) - Static method in class org.lightningj.paywall.util.Base58
Method to decode a base58 encoded byte array.
decode(String) - Static method in class org.lightningj.paywall.util.Base58
Utility method to decode a String directly.
decodeBase64String(String) - Static method in class org.lightningj.paywall.util.Base64Utils
Method to decode a base64 encoded string.
decodeHexString(String) - Static method in class org.lightningj.paywall.util.HexUtils
Method to decode a hexadecimal encoded string.
DEFAULT_ACCEPT_VERSION - Static variable in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
 
DEFAULT_CHECK_SETTLEMENT_URL - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
DEFAULT_INVOICE_DEFAULT_VALIDITY - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
DEFAULT_INVOICE_INCLUDE_NODEINFO - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
DEFAULT_INVOICE_REGISTER_NEW - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
DEFAULT_LIGHTNINGHANDLER_AUTOCONNECT - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
DEFAULT_LND_CURRENCY_CODE - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
DEFAULT_QR_CODE_DEFAULT_HEIGHT - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
DEFAULT_QR_CODE_DEFAULT_WIDTH - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
DEFAULT_QR_CODE_URL - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
DEFAULT_SETTLEMENT_DEFAULT_VALIDITY - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
DEFAULT_WEBSOCKET_CHECK_SETTLEMENT_URL - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
DEFAULT_WEBSOCKET_ENABLE - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
DefaultFileKeyManager - Class in org.lightningj.paywall.keymgmt
Asymmetric and Symmetric File Key Manager using a RSA 2048 but key stored on disk on a specified location.
DefaultFileKeyManager() - Constructor for class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
 
DefaultLocalBeanCondition - Class in org.lightningj.paywall.spring.local
Condition to check if Default beans in LocalProfileBeanConfiguration should be used.
DefaultLocalBeanCondition() - Constructor for class org.lightningj.paywall.spring.local.DefaultLocalBeanCondition
 
DefaultOrderRequestGenerator - Class in org.lightningj.paywall.orderrequestgenerator
Default Order request generator that parses the values from PaymentRequired annotation without any modifications.
DefaultOrderRequestGenerator() - Constructor for class org.lightningj.paywall.orderrequestgenerator.DefaultOrderRequestGenerator
 
DefaultQRCodeGenerator - Class in org.lightningj.paywall.qrcode
Default implementation of QRCode generation using the zxing library to generate images.
DefaultQRCodeGenerator() - Constructor for class org.lightningj.paywall.qrcode.DefaultQRCodeGenerator
 
DemoFullPaymentData - Class in org.lightningj.paywall.springboot2.paymenthandler
Demo payment data implementing the FullPaymentData requirements for payment flow to work.
DemoFullPaymentData() - Constructor for class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
DemoFullPaymentDataRepository - Interface in org.lightningj.paywall.springboot2.paymenthandler
Spring Data repository for DemoFullPaymentData.
DemoMinimalPaymentData - Class in org.lightningj.paywall.springboot2.paymenthandler
Demo payment data implementing the MinimalPaymentData requirements for payment flow to work.
DemoMinimalPaymentData() - Constructor for class org.lightningj.paywall.springboot2.paymenthandler.DemoMinimalPaymentData
 
DemoMinimalPaymentDataRepository - Interface in org.lightningj.paywall.springboot2.paymenthandler
Spring Data repository for DemoPaymentData.
DemoPaymentHandler - Class in org.lightningj.paywall.paywalltademo.paymenthandler
Demo implementation of a Payment Handler extending SpringPaymentHandler.
DemoPaymentHandler() - Constructor for class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPaymentHandler
 
DemoPaymentHandler - Class in org.lightningj.paywall.springboot2.paymenthandler
Demo implementation of a Payment Handler extending SpringPaymentHandler.
DemoPaymentHandler() - Constructor for class org.lightningj.paywall.springboot2.paymenthandler.DemoPaymentHandler
 
DemoPerRequestPaymentData - Class in org.lightningj.paywall.paywalltademo.paymenthandler
Demo payment data implementing the PerRequestPaymentData requirements for payment flow to work.
DemoPerRequestPaymentData() - Constructor for class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPerRequestPaymentData
 
DemoPerRequestPaymentData - Class in org.lightningj.paywall.springboot2.paymenthandler
Demo payment data implementing the PerRequestPaymentData requirements for payment flow to work.
DemoPerRequestPaymentData() - Constructor for class org.lightningj.paywall.springboot2.paymenthandler.DemoPerRequestPaymentData
 
DemoPerRequestPaymentDataRepository - Interface in org.lightningj.paywall.paywalltademo.paymenthandler
Spring Data repository for DemoPerRequestPaymentData.
DemoPerRequestPaymentDataRepository - Interface in org.lightningj.paywall.springboot2.paymenthandler
Spring Data repository for DemoPerRequestPaymentData.
description - Variable in class org.lightningj.paywall.vo.Invoice
 
description - Variable in class org.lightningj.paywall.vo.Order
 
deserializeAsymKeyPair(byte[], byte[], char[], KeyFactory) - Static method in class org.lightningj.paywall.keymgmt.KeySerializationHelper
Method to deserialize an asymmetric key data into a key pair.
deserializeBTCPayServerKeyPair(byte[], char[], KeyFactory, String) - Static method in class org.lightningj.paywall.keymgmt.KeySerializationHelper
Method to deserialize an BTC Pay Server key data into a key pair.
deserializePublicKey(byte[], KeyFactory) - Static method in class org.lightningj.paywall.keymgmt.KeySerializationHelper
Help method to decode a public key data only.
deserializeSecretKey(byte[], char[]) - Static method in class org.lightningj.paywall.keymgmt.KeySerializationHelper
Method to deserialize key data of a secret key.
DigestUtils - Class in org.lightningj.paywall.util
Digest helper is a utility class to create digests.
DigestUtils() - Constructor for class org.lightningj.paywall.util.DigestUtils
 
DummyKeyManager - Class in org.lightningj.paywall.keymgmt
Dummy Key Manager that can be used in test setups, should be used in production setups.
DummyKeyManager() - Constructor for class org.lightningj.paywall.keymgmt.DummyKeyManager
 

E

EnableWebSocketCondition - Class in org.lightningj.paywall.spring.websocket
Condition to check if paywall web socket functionality should be enabled.
EnableWebSocketCondition() - Constructor for class org.lightningj.paywall.spring.websocket.EnableWebSocketCondition
 
encode(byte[]) - Static method in class org.lightningj.paywall.util.Base58
Method to base58 encode data.
encodeBase64String(byte[]) - Static method in class org.lightningj.paywall.util.Base64Utils
Help method to encode the data into a hexadecimal String
encodeHexString(byte[]) - Static method in class org.lightningj.paywall.util.HexUtils
Help method to encode the data into a hexadecimal String
encodeToString(byte[]) - Static method in class org.lightningj.paywall.util.Base58
Help method to encode data directly into a String
ENDPOINT_INVOICE - Static variable in class org.lightningj.paywall.btcpayserver.BTCPayServer
 
ENDPOINT_TOKENS - Static variable in class org.lightningj.paywall.btcpayserver.BTCPayServer
 
equals(Object) - Method in class org.lightningj.paywall.btcpayserver.vo.Token
 
equals(Object) - Method in class org.lightningj.paywall.tokengenerator.TokenContext
 
equals(Object) - Method in class org.lightningj.paywall.vo.RequestData
Equals checks significantData only.
expectedTokenType - Variable in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
ExpectedTokenType - Enum in org.lightningj.paywall.paymentflow
Enumeration determining the expected type of token by the caller to payment flow or payment flow manager.
expireDate - Variable in class org.lightningj.paywall.vo.Invoice
 
expireDate - Variable in class org.lightningj.paywall.vo.Order
 
expiringListeners - Variable in class org.lightningj.paywall.spring.websocket.BaseWebSocketSettledHandler
Priority queue of expiring date to paymentHash, in order to cleanup expiring listeners.

F

fetchInvoice(String) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServer
 
fetchToken(BTCPayServerFacade) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServer
 
FiatAmount - Class in org.lightningj.paywall.vo.amount
Amount specifying a FIAT currency with an value and a currency code.
FiatAmount() - Constructor for class org.lightningj.paywall.vo.amount.FiatAmount
Empty Constructor
FiatAmount(double, String) - Constructor for class org.lightningj.paywall.vo.amount.FiatAmount
Default Constructor with a value and a currencyCode.
FiatAmount(JsonObject) - Constructor for class org.lightningj.paywall.vo.amount.FiatAmount
JSON Parseable constructor
FileKeyManager - Class in org.lightningj.paywall.keymgmt
Base File Key Manager manages keys stored on disk.
FileKeyManager() - Constructor for class org.lightningj.paywall.keymgmt.FileKeyManager
 
findByArticleId(String) - Method in interface org.lightningj.paywall.paywalltademo.paymenthandler.ArticleDataRepository
 
findByArticleId(String) - Method in interface org.lightningj.paywall.springboot2.paymenthandler.ArticleDataRepository
 
findByPreImageHash(String) - Method in interface org.lightningj.paywall.paywalltademo.paymenthandler.DemoPerRequestPaymentDataRepository
 
findByPreImageHash(String) - Method in interface org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentDataRepository
 
findByPreImageHash(String) - Method in interface org.lightningj.paywall.springboot2.paymenthandler.DemoMinimalPaymentDataRepository
 
findByPreImageHash(String) - Method in interface org.lightningj.paywall.springboot2.paymenthandler.DemoPerRequestPaymentDataRepository
 
findCookie(CachableHttpServletRequest, String) - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
Help method to find first cookie with specified name.
findPaymentData(byte[]) - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
Method to lookup a payment data in the payment handler.
findPaymentData(byte[]) - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPaymentHandler
Method to lookup a payment data in the payment handler.
findPaymentData(byte[]) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPaymentHandler
Method to lookup a payment data in the payment handler.
findRecipientKey(TokenContext, String) - Method in class org.lightningj.paywall.tokengenerator.KeyIdByFileRecipientRepository
Method to fetch a public key for a given recipients subject.
findRecipientKey(TokenContext, String) - Method in interface org.lightningj.paywall.tokengenerator.RecipientRepository
Method to fetch a public key for a given recipients subject.
findToken(CachableHttpServletRequest, String, String, String) - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
Help method retrieving a JWT token by searching the parameters, header or cookie.
fromInternalMagnetude(Magnetude) - Static method in enum org.lightningj.paywall.spring.response.Magnetude
Method to convert an internal magnetude to JSON/XML representation.
fromInternalNodeNetwork(NodeInfo.NodeNetwork) - Static method in enum org.lightningj.paywall.spring.response.NodeNetwork
Method to convert an internal nodeNetwork to JSON/XML representation.
FullPaymentData - Interface in org.lightningj.paywall.paymenthandler.data
Interface defining the complete set of fields in a payment data and can be implemented for best performance of the system.

G

generate(PaymentRequired, CachableHttpServletRequest) - Method in class org.lightningj.paywall.orderrequestgenerator.DefaultOrderRequestGenerator
Default Magnitude Calculator takes the parameter units from the PaymentRequired annotation (default 1)
generate(PaymentRequired, CachableHttpServletRequest) - Method in interface org.lightningj.paywall.orderrequestgenerator.OrderRequestGenerator
Method that should populate a new OrderRequest to initiate a payment flow using the PaymentRequired annotation and the related HTTP request.
generateAndStoreSymmetricKey(File, char[]) - Method in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
 
generateInvoice(PreImageData, ConvertedOrder) - Method in interface org.lightningj.paywall.lightninghandler.LightningHandler
Method to create an invoice in the underlying lightning node.
generateInvoice(PreImageData, ConvertedOrder) - Method in class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
Method to create an invoice in the underlying LND node.
generateInvoice() - Method in class org.lightningj.paywall.paymentflow.CentralLightningHandlerPaymentFlow
Help method to generate invoice on a lightning handler node given order in payment JWT token.
generateInvoiceToken(OrderRequest, MinimalInvoice, RequestData, Instant, Instant, String) - Method in class org.lightningj.paywall.tokengenerator.BaseTokenGenerator
Help method to generate a JWT token containing a invoice data claim.
generateInvoiceToken(OrderRequest, MinimalInvoice, RequestData, Instant, Instant, String) - Method in interface org.lightningj.paywall.tokengenerator.TokenGenerator
Help method to generate a JWT token containing a invoice data claim.
generateOrder() - Method in class org.lightningj.paywall.paymentflow.CentralLightningHandlerPaymentFlow
Help method called by requestPayment on a pay walled node to generate a payment token containing all relevant order data in order for the lightning node to create an invoice.
generatePaymentToken(OrderRequest, Order, RequestData, Instant, Instant, String) - Method in class org.lightningj.paywall.tokengenerator.BaseTokenGenerator
Help method to generate a JWT token containing a payment data claim.
generatePaymentToken(OrderRequest, Order, RequestData, Instant, Instant, String) - Method in interface org.lightningj.paywall.tokengenerator.TokenGenerator
Help method to generate a JWT token containing a payment data claim.
generatePNG(String, int, int) - Method in class org.lightningj.paywall.qrcode.DefaultQRCodeGenerator
Method to generate a PNG image QR code of the given text with the dimensions specified.
generatePNG(String, int, int) - Method in interface org.lightningj.paywall.qrcode.QRCodeGenerator
Method to generate a PNG image QR code of the given text with the dimensions specified.
generateQRCode(HttpServletRequest, HttpServletResponse) - Method in class org.lightningj.paywall.spring.controller.GenerateQRCodeController
Main controller action generating a QR Code image for a given qr code
GenerateQRCodeController - Class in org.lightningj.paywall.spring.controller
Controller to generate a QR Code and return a PNG Image.
GenerateQRCodeController() - Constructor for class org.lightningj.paywall.spring.controller.GenerateQRCodeController
 
generateSettlementToken(OrderRequest, Settlement, RequestData, Instant, Instant, String) - Method in class org.lightningj.paywall.tokengenerator.BaseTokenGenerator
Help method to generate a JWT token containing a settlement data claim.
generateSettlementToken(OrderRequest, Settlement, RequestData, Instant, Instant, String) - Method in interface org.lightningj.paywall.tokengenerator.TokenGenerator
Help method to generate a JWT token containing a settlement data claim.
generateToken(String, Instant, Instant, boolean, String, JWTClaim...) - Method in class org.lightningj.paywall.tokengenerator.BaseTokenGenerator
General method to generate JWT token that is JWS signed and optionally JWE encrypted.
generateToken(String, Instant, Instant, boolean, String, JWTClaim...) - Method in interface org.lightningj.paywall.tokengenerator.TokenGenerator
General method to generate JWT token that is JWS signed and optionally JWE encrypted.
genKeyId(byte[]) - Static method in class org.lightningj.paywall.keymgmt.KeySerializationHelper
Help method to generate a keyId of a specific key used to identify it.
genLNDInvoice(PreImageData, ConvertedOrder) - Method in class org.lightningj.paywall.lightninghandler.lnd.LNDHelper
Method to generate an LND Invoice from a PreImageData and ConvertedOrder
genPreImageData() - Method in class org.lightningj.paywall.tokengenerator.BaseTokenGenerator
Method that should generate a random pre image data used to create invoice.
genPreImageData() - Method in interface org.lightningj.paywall.tokengenerator.TokenGenerator
Method that should generate a random pre image data used to create invoice.
genPublicBTCPayServerFile(String) - Method in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
Method to return the BTC Pay Server public file name with sIN value filename.
genSignature(PrivateKey, String, String) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerHelper
Method to generate a signature header value in BTC Pay Server request, by first appending requestURL and data and then sign it using the private key an ECDSAWithSHA256 algorithm and converting it into hex.
get(BTCPayServerFacade) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerTokenManager
Fetches the related token for the given facade or null if doesn't exist of have expired.
getAddIndex() - Method in class org.lightningj.paywall.lightninghandler.lnd.LNDLightningHandlerContext
 
getAmountPaid() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getAndVerifyTokenClaims(CachableHttpServletRequest, ExpectedTokenType) - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
Help method to find and verify JWT token from a HTTP request.
getArticleId() - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.ArticleData
 
getArticleId() - Method in class org.lightningj.paywall.springboot2.paymenthandler.ArticleData
 
getArticleId() - Method in class org.lightningj.paywall.vo.OrderRequest
 
getAsymKeyPair() - Method in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
Help method to parse existing keys or generate new ones if not exists.
getAsymTrustStorePath() - Method in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
Returns the path of directory where trusted public key files are stored.
getAsymTrustStorePath() - Method in class org.lightningj.paywall.spring.SpringDefaultFileKeyManager
Returns the path of directory where trusted public key files are stored.
getAsyncAPI() - Method in class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
Method to get the asynchronous lnd api from lightningj.
getAsyncAPI() - Method in class org.lightningj.paywall.lightninghandler.lnd.SimpleBaseLNDLightningHandler
Method to get the asynchronous lnd api from lightningj.
getBaseURL() - Method in class org.lightningj.paywall.btcpayserver.BTCPayServer
 
getBolt11Invoice() - Method in interface org.lightningj.paywall.paymenthandler.data.FullPaymentData
 
getBolt11Invoice() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
getBolt11Invoice() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
getBolt11Invoice() - Method in class org.lightningj.paywall.vo.Invoice
 
getBoolean(JsonObject, String, boolean) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a boolean value if set in JsonObject otherwise returns null.
getBooleanIfSet(JsonObject, String) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a boolean value
getBTCPayServerClientName() - Method in class org.lightningj.paywall.btcpayserver.BTCPayServer
 
getBTCPayServerKeyPair() - Method in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
Help method to parse existing keys for BTCPayServer or generate new ones if not exists.
getByteArrayFromB58(JsonObject, String, boolean) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a b58 string value and decode it into byte array if set in JsonObject otherwise returns null or throws JsonException if required.
getByteArrayFromB58IfSet(JsonObject, String) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a b58 string value and decode it into byte[]
getByteArrayFromB64(JsonObject, String, boolean) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a b64 string value and decode it into byte array if set in JsonObject otherwise returns null or throws JsonException if required.
getByteArrayFromB64IfSet(JsonObject, String) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a b64 string value and decode it into byte[]
getByteArrayFromHex(JsonObject, String, boolean) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a hex string value and decode it into byte array if set in JsonObject otherwise returns null or throws JsonException if required.
getByteArrayFromHexIfSet(JsonObject, String) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a hex string value and decode it into byte[]
getCachedContent() - Method in class org.lightningj.paywall.spring.util.SpringCachableHttpServletRequest
Method to returned cached content of the stream data in order to calculate payment data.
getCachedContent() - Method in interface org.lightningj.paywall.web.CachableHttpServletRequest
Method to returned cached content of the stream data in order to calculate payment data.
getCentralSystemRecipientId() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
Method that should be overridden in distributed setups.
getCheckSettlementLink() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
getCheckSettlementURL() - Method in class org.lightningj.paywall.spring.PaywallProperties
 
getCheckSettlementWebSocketEndpoint() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
getCheckSettlementWebSocketQueue() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
getClaimName() - Method in class org.lightningj.paywall.tokengenerator.JWTClaim
 
getClaimName() - Method in class org.lightningj.paywall.vo.Invoice
 
getClaimName() - Method in class org.lightningj.paywall.vo.MinimalInvoice
 
getClaimName() - Method in class org.lightningj.paywall.vo.Order
 
getClaimName() - Method in class org.lightningj.paywall.vo.OrderRequest
 
getClaimName() - Method in class org.lightningj.paywall.vo.RequestData
 
getClaimName() - Method in class org.lightningj.paywall.vo.Settlement
 
getCode() - Method in class org.lightningj.paywall.btcpayserver.vo.Rate
See property comment
getConnectString() - Method in class org.lightningj.paywall.spring.response.NodeInfo
 
getConnectString() - Method in class org.lightningj.paywall.vo.NodeInfo
 
getContent() - Method in class org.lightningj.paywall.springboot2.PocResult
 
getContentType() - Method in enum org.lightningj.paywall.spring.util.RequestHelper.RequestType
 
getContext() - Method in class org.lightningj.paywall.lightninghandler.LightningEvent
 
getConvertedAmount() - Method in class org.lightningj.paywall.vo.ConvertedOrder
 
getCurrency() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getCurrencyCode() - Method in class org.lightningj.paywall.spring.response.CryptoAmount
 
getCurrencyCode() - Method in class org.lightningj.paywall.vo.amount.CryptoAmount
 
getCurrencyCode() - Method in class org.lightningj.paywall.vo.amount.FiatAmount
 
getCurrencyConverter() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
getCurrencyConverter() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
 
getCurrencyConverter() - Method in class org.lightningj.paywall.spring.CommonBeanConfiguration
 
getCurrencyConverter() - Method in class org.lightningj.paywall.spring.local.SpringLocalPaymentFlowManager
 
getCurrencyConverter() - Method in class org.lightningj.paywall.springboot2.CustomLocalProfileBeanConfiguration
 
getCurrentTime() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getDate(JsonObject, String, boolean) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a Date value in "yyyy-MM-ddTHH:mm:ss.SSSZ" format.
getDateIfSet(JsonObject, String) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a Date value
getDefaultInvoiceValidity() - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
 
getDefaultInvoiceValidity() - Method in class org.lightningj.paywall.spring.SpringPaymentHandler
 
getDefaultSettlementValidity() - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
 
getDefaultSettlementValidity() - Method in class org.lightningj.paywall.spring.SpringPaymentHandler
 
getDefaultSettlementValidity() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPaymentHandler
 
getDescription() - Method in interface org.lightningj.paywall.paymenthandler.data.StandardPaymentData
 
getDescription() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
getDescription() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
getDescription() - Method in class org.lightningj.paywall.vo.Invoice
 
getDescription() - Method in class org.lightningj.paywall.vo.Order
 
getDirectory(String, String) - Method in class org.lightningj.paywall.keymgmt.FileKeyManager
Method that returns configured directory for storing using keys.
getDirectory(String, String, String) - Static method in class org.lightningj.paywall.keymgmt.FileKeyManager
 
getDouble(JsonObject, String, boolean) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a double value
getDoubleIfSet(JsonObject, String) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a double value
getECKeyFactory() - Method in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
 
getErrors() - Method in class org.lightningj.paywall.spring.APIError
 
getExceptionStatus() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getExpirationTime() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getExpireDate() - Method in class org.lightningj.paywall.btcpayserver.vo.Token
 
getExpireDate() - Method in class org.lightningj.paywall.vo.Invoice
 
getExpireDate() - Method in class org.lightningj.paywall.vo.Order
 
getFacade() - Method in class org.lightningj.paywall.btcpayserver.vo.Token
 
getGenerator(PaymentRequired) - Method in class org.lightningj.paywall.orderrequestgenerator.OrderRequestGeneratorFactory
Method that returns a OrderRequestGenerator instance that is specified in the given PaymentRequired annotation.
getGreeting() - Method in class org.lightningj.paywall.springboot2.AppConfig
 
getHost() - Method in class org.lightningj.paywall.lightninghandler.lnd.SimpleBaseLNDLightningHandler
Method that should return the hostname of IP address of the LND node to connect to.
getHost() - Method in class org.lightningj.paywall.spring.SpringLNDLightningHandler
Method that should return the hostname of IP address of the LND node to connect to.
getId() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getId() - Method in class org.lightningj.paywall.btcpayserver.vo.Token
 
getId() - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.ArticleData
 
getId() - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPerRequestPaymentData
 
getId() - Method in class org.lightningj.paywall.paywalltademo.TADemoResult
 
getId() - Method in class org.lightningj.paywall.springboot2.paymenthandler.ArticleData
 
getId() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
getId() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoMinimalPaymentData
 
getId() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPerRequestPaymentData
 
getId() - Method in class org.lightningj.paywall.springboot2.PocResult
 
getInt(JsonObject, String, boolean) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a int value if set in JsonObject otherwise returns null or throws JsonException if required.
getIntIfSet(JsonObject, String) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a int value
getInvoice() - Method in class org.lightningj.paywall.lightninghandler.LightningEvent
 
getInvoice() - Method in class org.lightningj.paywall.paymentflow.InvoiceResult
 
getInvoice() - Method in class org.lightningj.paywall.vo.Settlement
 
getInvoiceAmount() - Method in interface org.lightningj.paywall.paymenthandler.data.StandardPaymentData
 
getInvoiceAmount() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
getInvoiceAmount() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
getInvoiceAmount() - Method in class org.lightningj.paywall.vo.Invoice
 
getInvoiceDate() - Method in interface org.lightningj.paywall.paymenthandler.data.StandardPaymentData
 
getInvoiceDate() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
getInvoiceDate() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
getInvoiceDate() - Method in class org.lightningj.paywall.vo.Invoice
 
getInvoiceDefaultValidity() - Method in class org.lightningj.paywall.spring.PaywallProperties
 
getInvoiceExpireDate() - Method in interface org.lightningj.paywall.paymenthandler.data.StandardPaymentData
 
getInvoiceExpireDate() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
getInvoiceExpireDate() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
getInvoiceIncludeNodeInfo() - Method in class org.lightningj.paywall.spring.PaywallProperties
 
getInvoiceRegisterNew() - Method in class org.lightningj.paywall.spring.PaywallProperties
 
getIssuerName(String) - Method in class org.lightningj.paywall.tokengenerator.AsymmetricKeyTokenGenerator
Method to retrieve the issuer claim in generated JWT tokens.
getIssuerName(String) - Method in class org.lightningj.paywall.tokengenerator.SymmetricKeyTokenGenerator
Method to retrieve the issuer claim in generated JWT tokens.
getIssuerName(String) - Method in interface org.lightningj.paywall.tokengenerator.TokenGenerator
Method to retrieve the issuer claim in generated JWT tokens.
getItemCode() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getItemDesc() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getJsonArray(JsonObject, String, boolean) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a json array if set in JsonObject otherwise returns null.
getJsonArrayIfSet(JsonObject, String) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a json array
getJsonObject(JsonObject, String, boolean) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a json object if set in JsonObject otherwise returns null.
getJsonObjectIfSet(JsonObject, String) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a json object
getJwtTokenNotBefore() - Method in class org.lightningj.paywall.spring.PaywallProperties
 
getKeyManager() - Method in class org.lightningj.paywall.btcpayserver.BTCPayServer
 
getKeyManager() - Method in class org.lightningj.paywall.spring.local.BaseLocalProfileBeanConfiguration
 
getKeyManager() - Method in class org.lightningj.paywall.spring.local.LocalProfileBeanConfiguration
 
getKeymgrAsymTruststorePath() - Method in class org.lightningj.paywall.spring.PaywallProperties
Returns the path of directory where trusted public key files are stored.
getKeymgrKeystorePath() - Method in class org.lightningj.paywall.spring.PaywallProperties
Returns the path of directory where key files are stored.
getKeymgrPassword() - Method in class org.lightningj.paywall.spring.PaywallProperties
Method to retrieve the configured pass phrase used to protect generated keys.
getKeyStorePath() - Method in class org.lightningj.paywall.keymgmt.FileKeyManager
Returns the path of directory where key files are stored.
getKeyStorePath() - Method in class org.lightningj.paywall.spring.SpringDefaultFileKeyManager
Returns the path of directory where key files are stored.
getKeyUsage() - Method in class org.lightningj.paywall.tokengenerator.TokenContext
 
getLabel() - Method in class org.lightningj.paywall.btcpayserver.vo.Token
 
getLightningHandler() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
getLightningHandler() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
 
getLightningHandler() - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
Method that should returned the used LightningHandler.
getLightningHandler() - Method in class org.lightningj.paywall.spring.local.LocalProfileBeanConfiguration
 
getLightningHandler() - Method in class org.lightningj.paywall.spring.local.SpringLocalPaymentFlowManager
 
getLightningHandler() - Method in class org.lightningj.paywall.spring.SpringPaymentHandler
Method that should returned the used LightningHandler.
getLightningHandlerAutoconnect() - Method in class org.lightningj.paywall.spring.PaywallProperties
True if BasePaymentHandler should connect automatically to Lightning Node upon initialization of bean.
getLightningHandlerContext() - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
Method to generate the latest LNDLightningHandlerContext of latest known state of the lightning node.
getLightningHandlerContext() - Method in interface org.lightningj.paywall.paymenthandler.PaymentHandler
Method to generate the latest LightningHandlerContext of latest known state of the lightning node.
getLndConnectString() - Method in class org.lightningj.paywall.spring.PaywallProperties
The connect string displayed in node info part of generated invoices.
getLndCurrencyCode() - Method in class org.lightningj.paywall.spring.PaywallProperties
The currency code the connected LND Node used.
getLndHelper() - Method in class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
 
getLndHostname() - Method in class org.lightningj.paywall.spring.PaywallProperties
Method that should return the hostname of IP address of the LND node to connect to.
getLndMacaroonPath() - Method in class org.lightningj.paywall.spring.PaywallProperties
The path to the macaroon file that is used to authenticate to the LND node.
getLndNetwork() - Method in class org.lightningj.paywall.spring.PaywallProperties
The network the LND node is connected to.
getLndPort() - Method in class org.lightningj.paywall.spring.PaywallProperties
Method that should return the port number of the LND node to connect to.
getLndTLSCertPath() - Method in class org.lightningj.paywall.spring.PaywallProperties
The path to the LND tls certificate to trust, securing the communication to the LND node.
getLong(JsonObject, String, boolean) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a long value if set in JsonObject otherwise returns null or throws JsonException if required.
getLongIfSet(JsonObject, String) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a long value
getMacaroonPath() - Method in class org.lightningj.paywall.lightninghandler.lnd.SimpleBaseLNDLightningHandler
The path to the macaroon file that is used to authenticate to the LND node.
getMacaroonPath() - Method in class org.lightningj.paywall.spring.SpringLNDLightningHandler
The path to the macaroon file that is used to authenticate to the LND node.
getMagnetude() - Method in class org.lightningj.paywall.spring.response.CryptoAmount
 
getMagnetude() - Method in class org.lightningj.paywall.vo.amount.CryptoAmount
 
getMediaType() - Method in enum org.lightningj.paywall.spring.util.RequestHelper.RequestType
 
getMessage() - Method in class org.lightningj.paywall.spring.APIError
 
getName() - Method in class org.lightningj.paywall.btcpayserver.vo.Rate
See property comment
getNetwork() - Method in class org.lightningj.paywall.spring.response.NodeInfo
 
getNodeAddress() - Method in class org.lightningj.paywall.spring.response.NodeInfo
 
getNodeAddress() - Method in class org.lightningj.paywall.vo.NodeInfo
 
getNodeInfo() - Method in interface org.lightningj.paywall.lightninghandler.LightningHandler
Method to fetch the related lightning node's information to include in invoices.
getNodeInfo() - Method in class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
Method to fetch the related lightning node's information to include in invoices.
getNodeInfo() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
getNodeInfo() - Method in class org.lightningj.paywall.vo.Invoice
 
getNodeInfoFromConfiguration() - Method in class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
Method to retrieve node information from configuration or null if not configured.
getNodeInfoFromConfiguration() - Method in class org.lightningj.paywall.spring.SpringLNDLightningHandler
Method to retrieve node information from configuration or null if not configured.
getNodeNetwork() - Method in class org.lightningj.paywall.vo.NodeInfo
 
getNodePort() - Method in class org.lightningj.paywall.spring.response.NodeInfo
 
getNodePort() - Method in class org.lightningj.paywall.vo.NodeInfo
 
getNotBeforeDate() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
getNotificationEmail() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getNotificationURL() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getOption() - Method in class org.lightningj.paywall.vo.PaymentOption
 
getOrderAmount() - Method in interface org.lightningj.paywall.paymenthandler.data.MinimalPaymentData
 
getOrderAmount() - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPerRequestPaymentData
 
getOrderAmount() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
getOrderAmount() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoMinimalPaymentData
 
getOrderAmount() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPerRequestPaymentData
 
getOrderAmount() - Method in class org.lightningj.paywall.vo.Order
 
getOrderId() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getOrderRequestGeneratorFactory() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
 
getOrderRequestGeneratorFactory() - Method in class org.lightningj.paywall.spring.local.BaseLocalProfileBeanConfiguration
 
getOrderRequestGeneratorFactory() - Method in class org.lightningj.paywall.spring.local.SpringLocalPaymentFlowManager
 
getPairingCode() - Method in class org.lightningj.paywall.btcpayserver.BTCPayServer
 
getPairingCode() - Method in class org.lightningj.paywall.btcpayserver.vo.Token
 
getPayment() - Method in class org.lightningj.paywall.paymenthandler.PaymentEvent
 
getPaymentFlowByAnnotation(PaymentRequired, CachableHttpServletRequest) - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
Method to create a new instance of related mode of PaymentFlow initialized with current state in the payment flow.
getPaymentFlowByAnnotation(PaymentRequired, CachableHttpServletRequest) - Method in interface org.lightningj.paywall.paymentflow.PaymentFlowManager
Method to create a new instance of related mode of PaymentFlow initialized with current state in the payment flow.
getPaymentFlowFromToken(CachableHttpServletRequest, ExpectedTokenType) - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
Method to create a new instance of related mode of PaymentFlow initialized with current state in the payment flow.
getPaymentFlowFromToken(CachableHttpServletRequest, ExpectedTokenType) - Method in interface org.lightningj.paywall.paymentflow.PaymentFlowManager
Method to create a new instance of related mode of PaymentFlow initialized with current state in the payment flow.
getPaymentFlowManager() - Method in class org.lightningj.paywall.spring.local.BaseLocalProfileBeanConfiguration
 
getPaymentFlowMode(OrderRequest) - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
Method that should return mode of payment flow in relation.
getPaymentFlowMode(OrderRequest) - Method in class org.lightningj.paywall.spring.local.SpringLocalPaymentFlowManager
Method that should return mode of payment flow in relation.
getPaymentHandler() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
getPaymentHandler() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
 
getPaymentHandler() - Method in class org.lightningj.paywall.spring.local.SpringLocalPaymentFlowManager
 
getPaymentOptions() - Method in class org.lightningj.paywall.vo.OrderRequest
 
getPayPerRequest() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
getPayPerRequest() - Method in class org.lightningj.paywall.spring.response.SettlementResponse
 
getPaywallExceptionHandler() - Method in class org.lightningj.paywall.spring.CommonBeanConfiguration
 
getPort() - Method in class org.lightningj.paywall.lightninghandler.lnd.SimpleBaseLNDLightningHandler
Method that should return the port number of the LND node to connect to.
getPort() - Method in class org.lightningj.paywall.spring.SpringLNDLightningHandler
Method that should return the port number of the LND node to connect to.
getPosData() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getPrediction() - Method in class org.lightningj.paywall.paywalltademo.TADemoResult
 
getPreImage() - Method in class org.lightningj.paywall.vo.PreImageData
 
getPreImage() - Method in class org.lightningj.paywall.vo.PreImageOrder
 
getPreImageHash() - Method in exception org.lightningj.paywall.AlreadyExecutedException
 
getPreImageHash() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
getPreImageHash() - Method in interface org.lightningj.paywall.paymentflow.PaymentFlow
 
getPreImageHash() - Method in class org.lightningj.paywall.paymenthandler.BasePaymentListener
 
getPreImageHash() - Method in interface org.lightningj.paywall.paymenthandler.data.MinimalPaymentData
Unique identifier of a payment in the system and also used in LightningHandler to identify an invoice.
getPreImageHash() - Method in interface org.lightningj.paywall.paymenthandler.Payment
 
getPreImageHash() - Method in interface org.lightningj.paywall.paymenthandler.PaymentListener
 
getPreImageHash() - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPerRequestPaymentData
Unique identifier of a payment in the system and also used in LightningHandler to identify an invoice.
getPreImageHash() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
getPreImageHash() - Method in class org.lightningj.paywall.spring.response.SettlementResponse
 
getPreImageHash() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
Unique identifier of a payment in the system and also used in LightningHandler to identify an invoice.
getPreImageHash() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoMinimalPaymentData
Unique identifier of a payment in the system and also used in LightningHandler to identify an invoice.
getPreImageHash() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPerRequestPaymentData
Unique identifier of a payment in the system and also used in LightningHandler to identify an invoice.
getPreImageHash() - Method in class org.lightningj.paywall.vo.MinimalInvoice
 
getPreImageHash() - Method in class org.lightningj.paywall.vo.Order
 
getPreImageHash() - Method in class org.lightningj.paywall.vo.PreImageData
 
getPreImageHash() - Method in class org.lightningj.paywall.vo.Settlement
 
getPrice() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getPrice() - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.ArticleData
 
getPrice() - Method in class org.lightningj.paywall.springboot2.paymenthandler.ArticleData
 
getPrivateKey(Context) - Method in interface org.lightningj.paywall.keymgmt.AsymmetricKeyManager
Returns the private key that should be used for asymmetric operations for the given context.
getPrivateKey(Context) - Method in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
Returns the private key that should be used for asymmetric operations for the given context.
getPrivateKey(Context) - Method in class org.lightningj.paywall.keymgmt.DummyKeyManager
Returns the private key that should be used for asymmetric operations for the given context.
getProtectPassphrase() - Method in class org.lightningj.paywall.keymgmt.FileKeyManager
Method to retrieve the configured pass phrase used to protect generated keys.
getProtectPassphrase() - Method in class org.lightningj.paywall.spring.SpringDefaultFileKeyManager
Method to retrieve the configured pass phrase used to protect generated keys.
getProtectPassphraseWithDefault() - Method in class org.lightningj.paywall.keymgmt.FileKeyManager
Help method that sets a default pass phrase if not configured with a warning log entry.
getProvider(Context) - Method in class org.lightningj.paywall.keymgmt.DummyKeyManager
 
getProvider(Context) - Method in class org.lightningj.paywall.keymgmt.FileKeyManager
Method to return the Security Provider to use in given context.
getProvider(Context) - Method in interface org.lightningj.paywall.keymgmt.KeyManager
Method to return the Security Provider to use in given context.
getPublicKey(Context) - Method in interface org.lightningj.paywall.keymgmt.AsymmetricKeyManager
Returns the public key that should be used for asymmetric operations for the given context.
getPublicKey(Context) - Method in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
Returns the public key that should be used for asymmetric operations for the given context.
getPublicKey(Context) - Method in class org.lightningj.paywall.keymgmt.DummyKeyManager
Returns the public key that should be used for asymmetric operations for the given context.
getPublicKeyInfo() - Method in class org.lightningj.paywall.spring.response.NodeInfo
 
getPublicKeyInfo() - Method in class org.lightningj.paywall.vo.NodeInfo
 
getQrCodeDefaultHeight() - Method in class org.lightningj.paywall.spring.PaywallProperties
 
getQrCodeDefaultWidth() - Method in class org.lightningj.paywall.spring.PaywallProperties
 
getQRCodeGenerator() - Method in class org.lightningj.paywall.spring.CommonBeanConfiguration
 
getQrCodeUrl() - Method in class org.lightningj.paywall.spring.PaywallProperties
 
getQrLink() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
getRate() - Method in class org.lightningj.paywall.btcpayserver.vo.Rate
See property comment
getReason() - Method in class org.lightningj.paywall.spring.APIError
 
getReason() - Method in exception org.lightningj.paywall.tokengenerator.TokenException
 
getReceipients(Context) - Method in class org.lightningj.paywall.keymgmt.DummyKeyManager
Own keys are trusted in dummy setup.
getReceipients(Context) - Method in interface org.lightningj.paywall.keymgmt.RecipientKeyManager
Retrieves a list of public keys that should be used included in encrypted envelopes of generated tokens.
getRedirectURL() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getRegisterNewInvoices() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
 
getRegisterNewInvoices() - Method in class org.lightningj.paywall.spring.local.SpringLocalPaymentFlowManager
 
getRequestDate() - Method in class org.lightningj.paywall.vo.RequestData
 
getRequestPolicy(PaymentRequired) - Method in class org.lightningj.paywall.requestpolicy.RequestPolicyFactory
Method that returns a RequestPolicy instance that is specified in the given PaymentRequired annotation.
getRequestPolicyFactory() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
getRequestPolicyFactory() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
 
getRequestPolicyFactory() - Method in class org.lightningj.paywall.spring.local.BaseLocalProfileBeanConfiguration
 
getRequestPolicyFactory() - Method in class org.lightningj.paywall.spring.local.SpringLocalPaymentFlowManager
 
getRequestPolicyType() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
getRequestType(HttpServletRequest, RequestHelper.RequestType) - Method in class org.lightningj.paywall.spring.util.RequestHelper
Help method to determine the type or request by looking at URI ending, and the contentType and accept header values.
getRSAKeyFactory() - Method in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
 
getSecureRandom() - Method in class org.lightningj.paywall.tokengenerator.BaseTokenGenerator
 
getSettledAmount() - Method in interface org.lightningj.paywall.paymenthandler.data.StandardPaymentData
 
getSettledAmount() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
getSettledAmount() - Method in class org.lightningj.paywall.vo.Invoice
 
getSettleIndex() - Method in class org.lightningj.paywall.lightninghandler.lnd.LNDLightningHandlerContext
 
getSettlement() - Method in class org.lightningj.paywall.paymentflow.CentralLightningHandlerPaymentFlow
Method to retrieve a settlement and generate a settlement token.
getSettlement() - Method in class org.lightningj.paywall.paymentflow.LocalPaymentFlow
Method to retrieve a settlement and generate a settlement token.
getSettlement() - Method in interface org.lightningj.paywall.paymentflow.PaymentFlow
Method to retrieve a settlement and generate a settlement token.
getSettlement() - Method in class org.lightningj.paywall.paymentflow.SettlementResult
 
getSettlementDate() - Method in interface org.lightningj.paywall.paymenthandler.data.StandardPaymentData
 
getSettlementDate() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
getSettlementDate() - Method in class org.lightningj.paywall.vo.Invoice
 
getSettlementDefaultValidity() - Method in class org.lightningj.paywall.spring.PaywallProperties
 
getSettlementDuration() - Method in interface org.lightningj.paywall.paymenthandler.data.StandardPaymentData
The settlement duration indicates how long time a generated settlement should be valid.
getSettlementDuration() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
The settlement duration indicates how long time a generated settlement should be valid.
getSettlementExpireDate() - Method in interface org.lightningj.paywall.paymenthandler.data.FullPaymentData
The settlement expire date sets the timestamp when a generated settlement token should expire.
getSettlementExpireDate() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
getSettlementValidFrom() - Method in interface org.lightningj.paywall.paymenthandler.data.FullPaymentData
 
getSettlementValidFrom() - Method in class org.lightningj.paywall.spring.response.SettlementResponse
 
getSettlementValidFrom() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
getSettlementValidUntil() - Method in class org.lightningj.paywall.spring.response.SettlementResponse
 
getSignificantData() - Method in class org.lightningj.paywall.vo.RequestData
 
getSourceNode() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
getSourceNode() - Method in class org.lightningj.paywall.paymentflow.CentralLightningHandlerPaymentFlow
 
getSourceNode() - Method in class org.lightningj.paywall.paymentflow.LocalPaymentFlow
 
getSourceNode() - Method in class org.lightningj.paywall.vo.Invoice
 
getStatus() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getStatus() - Method in class org.lightningj.paywall.spring.APIError
 
getStatus() - Method in class org.lightningj.paywall.spring.response.Response
 
getString(JsonObject, String, boolean) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a string value if set in JsonObject otherwise returns null or throws JsonException if required.
getStringIfSet(JsonObject, String) - Method in class org.lightningj.paywall.JSONParsable
Help method used in parseJson implementation to fetch a string value
getSupportedCurrencyCode() - Method in class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
Method to retrieve configured supported currency code.
getSupportedCurrencyCode() - Method in class org.lightningj.paywall.spring.SpringLNDLightningHandler
Method to retrieve configured supported currency code.
getSymmetricKey(Context) - Method in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
Returns the key that should be used for symmetric operations for the given context.
getSymmetricKey(Context) - Method in class org.lightningj.paywall.keymgmt.DummyKeyManager
Returns the key that should be used for symmetric operations for the given context.
getSymmetricKey(Context) - Method in interface org.lightningj.paywall.keymgmt.SymmetricKeyManager
Returns the key that should be used for symmetric operations for the given context.
getSymmetricKeyFile() - Method in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
 
getSyncAPI() - Method in class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
Method to get the synchronous lnd api from lightningj.
getSyncAPI() - Method in class org.lightningj.paywall.lightninghandler.lnd.SimpleBaseLNDLightningHandler
Method to get the synchronous lnd api from lightningj.
getTLSCertPath() - Method in class org.lightningj.paywall.lightninghandler.lnd.SimpleBaseLNDLightningHandler
The path to the LND tls certificate to trust, securing the communication to the LND node.
getTLSCertPath() - Method in class org.lightningj.paywall.spring.SpringLNDLightningHandler
The path to the LND tls certificate to trust, securing the communication to the LND node.
getToken(BTCPayServerFacade) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServer
 
getToken() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getToken() - Method in class org.lightningj.paywall.btcpayserver.vo.Token
Gets the BTC Pay Server token.
getToken() - Method in class org.lightningj.paywall.paymentflow.Result
 
getToken() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
getToken() - Method in class org.lightningj.paywall.spring.response.SettlementResponse
 
getTokenContext() - Method in enum org.lightningj.paywall.paymentflow.ExpectedTokenType
 
getTokenGenerator() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
getTokenGenerator() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
Method that must be implemented and return the TokenGenerator used.
getTokenGenerator() - Method in class org.lightningj.paywall.spring.local.BaseLocalProfileBeanConfiguration
 
getTokenGenerator() - Method in class org.lightningj.paywall.spring.local.SpringLocalPaymentFlowManager
Method that must be implemented and return the TokenGenerator used.
getTokenIssuer() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlow
Help method to retrieve the issuer claim from a JWT token.
getTokenNotBeforeDuration() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
 
getTokenNotBeforeDuration() - Method in class org.lightningj.paywall.spring.local.SpringLocalPaymentFlowManager
 
getTransactionCurrency() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getTransactionSpeed() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getTrustedKeys(Context) - Method in interface org.lightningj.paywall.keymgmt.AsymmetricKeyManager
Method retrieve a list of trusted public keys used to verify signatures..
getTrustedKeys(Context) - Method in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
Method retrieve a list of trusted public keys used to verify signatures.
getTrustedKeys(Context) - Method in class org.lightningj.paywall.keymgmt.DummyKeyManager
Own keys are trusted in dummy setup.
getType() - Method in class org.lightningj.paywall.lightninghandler.LightningEvent
 
getType() - Method in class org.lightningj.paywall.paymenthandler.BasePaymentListener
 
getType() - Method in class org.lightningj.paywall.paymenthandler.PaymentEvent
 
getType() - Method in interface org.lightningj.paywall.paymenthandler.PaymentListener
 
getType() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
getType() - Method in class org.lightningj.paywall.spring.response.SettlementResponse
 
getType() - Method in class org.lightningj.paywall.tokengenerator.TokenContext
 
getType() - Method in class org.lightningj.paywall.vo.amount.Amount
 
getUnits() - Method in class org.lightningj.paywall.vo.OrderRequest
 
getUrl() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
getValidFrom() - Method in class org.lightningj.paywall.vo.Settlement
 
getValidUntil() - Method in class org.lightningj.paywall.vo.Settlement
 
getValue() - Method in class org.lightningj.paywall.spring.response.CryptoAmount
 
getValue() - Method in class org.lightningj.paywall.vo.amount.CryptoAmount
 
getValue() - Method in class org.lightningj.paywall.vo.amount.FiatAmount
 
getValue() - Method in class org.lightningj.paywall.vo.PaymentOption
 
getWebSocketCheckSettlementUrl() - Method in class org.lightningj.paywall.spring.PaywallProperties
 
getWebSocketEnable() - Method in class org.lightningj.paywall.spring.PaywallProperties
 
getWebSocketSettledPaymentHandler() - Method in class org.lightningj.paywall.spring.local.BaseLocalProfileBeanConfiguration
 

H

handleException(HttpServletRequest, HttpServletResponse, Exception) - Method in class org.lightningj.paywall.spring.controller.CheckSettlementController
Exception handler for this controller.
handleException(HttpServletRequest, HttpServletResponse, Exception) - Method in class org.lightningj.paywall.spring.controller.GenerateQRCodeController
Exception handler for this controller.
handleException(HttpServletRequest, HttpServletResponse, Exception) - Method in interface org.lightningj.paywall.spring.PaywallExceptionHandler
Method to handle paywall related exceptions in a uniform way.
handleException(HttpServletRequest, HttpServletResponse, Exception, String) - Method in interface org.lightningj.paywall.spring.PaywallExceptionHandler
Method to handle paywall related exceptions in a uniform way.
handleException(HttpServletRequest, HttpServletResponse, Exception, List<String>) - Method in interface org.lightningj.paywall.spring.PaywallExceptionHandler
Method to handle paywall related exceptions in a uniform way.
handleException(RequestHelper.RequestType, Exception) - Method in interface org.lightningj.paywall.spring.PaywallExceptionHandler
Method to handle paywall related exceptions in a uniform way but from a WebSocket context.
handleException(RequestHelper.RequestType, Exception, List<String>) - Method in interface org.lightningj.paywall.spring.PaywallExceptionHandler
Method to handle paywall related exceptions in a uniform way but from a WebSocket context.
handleException(HttpServletRequest, HttpServletResponse, Exception) - Method in class org.lightningj.paywall.spring.SpringPaywallExceptionHandler
Method to handle paywall related exceptions in a uniform way.
handleException(HttpServletRequest, HttpServletResponse, Exception, String) - Method in class org.lightningj.paywall.spring.SpringPaywallExceptionHandler
Method to handle paywall related exceptions in a uniform way.
handleException(HttpServletRequest, HttpServletResponse, Exception, List<String>) - Method in class org.lightningj.paywall.spring.SpringPaywallExceptionHandler
Method to handle paywall related exceptions in a uniform way.
handleException(RequestHelper.RequestType, Exception) - Method in class org.lightningj.paywall.spring.SpringPaywallExceptionHandler
Method to handle paywall related exceptions in a uniform way but from a WebSocket context.
handleException(RequestHelper.RequestType, Exception, List<String>) - Method in class org.lightningj.paywall.spring.SpringPaywallExceptionHandler
Method to handle paywall related exceptions in a uniform way but from a WebSocket context.
hashCode() - Method in class org.lightningj.paywall.btcpayserver.vo.Token
 
hashCode() - Method in class org.lightningj.paywall.tokengenerator.TokenContext
 
hashCode() - Method in class org.lightningj.paywall.vo.RequestData
 
hasPaymentListener(String) - Method in class org.lightningj.paywall.spring.websocket.BaseWebSocketSettledHandler
Method that returns true if related paymentListener is registered.
hasSettlementToken(CachableHttpServletRequest) - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
Help method checking if JWT token is set in HTTP header.
HEADER_ACCEPT - Static variable in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
 
HEADER_ACCEPT - Static variable in class org.lightningj.paywall.spring.util.RequestHelper
 
HEADER_ACCEPT_VERSION - Static variable in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
 
HEADER_CONTENT_TYPE - Static variable in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
 
HEADER_IDENTITY - Static variable in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
 
HEADER_INVOICE_REQUEST - Static variable in class org.lightningj.paywall.web.HTTPConstants
Header name used when redirecting an invoice request controller to check payment.
HEADER_PAYMENT - Static variable in class org.lightningj.paywall.web.HTTPConstants
HTTP Header value set with a settlement JWT token sent with the payment request in order to process the data.
HEADER_PAYMENT_REQUEST - Static variable in class org.lightningj.paywall.web.HTTPConstants
Header name used when redirecting an order request to a central payment controller and checking for payment.
HEADER_PAYWALL_MESSAGE - Static variable in class org.lightningj.paywall.web.HTTPConstants
HTTP Header value indicating that data in response is related to Paywall API used for instance in error handling to determine if data is a paywall error or from underlying API.
HEADER_PAYWALL_MESSAGE_VALUE - Static variable in class org.lightningj.paywall.web.HTTPConstants
The default header value indicating that this is a paywall api message.
HEADER_SIGNATURE - Static variable in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
 
helper - Variable in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
 
HexUtils - Class in org.lightningj.paywall.util
Help method for hex encoding/decoding.
HexUtils() - Constructor for class org.lightningj.paywall.util.HexUtils
 
HTTPConstants - Class in org.lightningj.paywall.web
Class containing constants for HTTP parameter, header and cookie names.
HTTPConstants() - Constructor for class org.lightningj.paywall.web.HTTPConstants
 

I

init() - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
Method that is called during the startup the application to set up all required sub components of the PaymentHandler.
init() - Method in interface org.lightningj.paywall.paymenthandler.PaymentHandler
Method that is called during the startup the application to set up all required sub components of the PaymentHandler.
installBCProvider() - Static method in class org.lightningj.paywall.util.BCUtils
Help method to install BouncyCastle Cryptographic library into JVM.
INSTANCE - Static variable in class org.lightningj.paywall.btcpayserver.BTCPayServerKeyContext
 
InterceptorConfig - Class in org.lightningj.paywall.spring
Configuration to add PaymentRequired annotation.
InterceptorConfig() - Constructor for class org.lightningj.paywall.spring.InterceptorConfig
 
InternalErrorException - Exception in org.lightningj.paywall
General exception indicating that something went wrong internally not due to client request.
InternalErrorException(String) - Constructor for exception org.lightningj.paywall.InternalErrorException
General exception indicating that something went wrong internally not due to client request.
InternalErrorException(String, Throwable) - Constructor for exception org.lightningj.paywall.InternalErrorException
General exception indicating that something went wrong internally not due to client request.
InvalidCurrencyException - Exception in org.lightningj.paywall.currencyconverter
Exception thrown by a CurrencyConverter when receiving an amount in an by the implementation unsupported currency.
InvalidCurrencyException(String) - Constructor for exception org.lightningj.paywall.currencyconverter.InvalidCurrencyException
Exception thrown by a CurrencyConverter when receiving an amount in an by the implementation unsupported currency.
InvalidCurrencyException(String, Throwable) - Constructor for exception org.lightningj.paywall.currencyconverter.InvalidCurrencyException
Exception thrown by a CurrencyConverter when receiving an amount in an by the implementation unsupported currency.
Invoice - Class in org.lightningj.paywall.btcpayserver.vo
Value object representing one BTC Pay Server JSON invoice.
Invoice() - Constructor for class org.lightningj.paywall.btcpayserver.vo.Invoice
Empty Constructor
Invoice(JsonObject) - Constructor for class org.lightningj.paywall.btcpayserver.vo.Invoice
Json Parsable constructor.
invoice - Variable in class org.lightningj.paywall.lightninghandler.LightningEvent
 
invoice - Variable in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
Invoice - Class in org.lightningj.paywall.vo
Invoice data is generated by LightningHandler and contains information about one Lightning Invoice.
Invoice() - Constructor for class org.lightningj.paywall.vo.Invoice
Empty Constructor
Invoice(byte[], String, String, CryptoAmount, NodeInfo, Instant, Instant) - Constructor for class org.lightningj.paywall.vo.Invoice
Default constructor, for unsettled invoice.
Invoice(byte[], String, String, CryptoAmount, NodeInfo, Instant, Instant, boolean, CryptoAmount, Instant) - Constructor for class org.lightningj.paywall.vo.Invoice
Default constructor, for settled invoice.
Invoice(JsonObject) - Constructor for class org.lightningj.paywall.vo.Invoice
JSON Parseable constructor
Invoice(JwtClaims) - Constructor for class org.lightningj.paywall.vo.Invoice
Parse from JWTClaims constructor
invoice - Variable in class org.lightningj.paywall.vo.Settlement
 
INVOICE_DEFAULT_VALIDITY - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
INVOICE_INCLUDE_NODEINFO - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
INVOICE_REGISTER_NEW - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
invoiceAmount - Variable in class org.lightningj.paywall.vo.Invoice
 
invoiceDate - Variable in class org.lightningj.paywall.vo.Invoice
 
InvoiceResponse - Class in org.lightningj.paywall.spring.response
Value object used to return the value of a generated invoice generated by the PaywallInterceptor.
InvoiceResponse() - Constructor for class org.lightningj.paywall.spring.response.InvoiceResponse
Empty constructor.
InvoiceResponse(InvoiceResult, boolean, RequestPolicyType, boolean, String, String, String, String) - Constructor for class org.lightningj.paywall.spring.response.InvoiceResponse
Default constructor used by PaywallInterceptor.
InvoiceResult - Class in org.lightningj.paywall.paymentflow
Value object returned by invoice related calls in a payment flow such as requestPayment and isInvoiceSettled.
InvoiceResult() - Constructor for class org.lightningj.paywall.paymentflow.InvoiceResult
Empty Constructor
InvoiceResult(Invoice, String) - Constructor for class org.lightningj.paywall.paymentflow.InvoiceResult
Default Constructor
InvoiceResult(JsonObject) - Constructor for class org.lightningj.paywall.paymentflow.InvoiceResult
JSON Parseable constructor
isConnected() - Method in interface org.lightningj.paywall.lightninghandler.LightningHandler
Method to check if handler is connected to node.
isConnected() - Method in class org.lightningj.paywall.lightninghandler.lnd.SimpleBaseLNDLightningHandler
Method to check if handler is connected to node.
isEmpty(String) - Static method in class org.lightningj.paywall.util.SettingUtils
Help method to see if string is null or only contains spaces.
isExecuted() - Method in interface org.lightningj.paywall.paymenthandler.data.PerRequestPaymentData
 
isExecuted() - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPerRequestPaymentData
 
isExecuted() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
isExecuted() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPerRequestPaymentData
 
isExtendedNotifications() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
isFullNotifications() - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
isGoingUp() - Method in class org.lightningj.paywall.paywalltademo.TADemoResult
 
isLightningHandlerAutoconnect() - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
 
isLightningHandlerAutoconnect() - Method in class org.lightningj.paywall.spring.SpringPaymentHandler
 
isPaymentRequired() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlow
Method that should determine if the current state of payment flow.
isPaymentRequired() - Method in interface org.lightningj.paywall.paymentflow.PaymentFlow
Method that should determine if the current state of payment flow.
isPayPerRequest() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlow
Method that should indicate if related payment flow is for one request only or valid over a given period.
isPayPerRequest() - Method in interface org.lightningj.paywall.paymentflow.PaymentFlow
Method that should indicate if related payment flow is for one request only or valid over a given period.
isPayPerRequest() - Method in interface org.lightningj.paywall.paymenthandler.data.PerRequestPaymentData
 
isPayPerRequest() - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPerRequestPaymentData
 
isPayPerRequest() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
isPayPerRequest() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPerRequestPaymentData
 
isPayPerRequest() - Method in class org.lightningj.paywall.vo.OrderRequest
 
isPayPerRequest() - Method in class org.lightningj.paywall.vo.Settlement
 
isSettled() - Method in class org.lightningj.paywall.paymentflow.CentralLightningHandlerPaymentFlow
Method to check if related invoice is settled by the end user.
isSettled() - Method in class org.lightningj.paywall.paymentflow.LocalPaymentFlow
Method to check if related payment is settled by the end user.
isSettled() - Method in interface org.lightningj.paywall.paymentflow.PaymentFlow
Method to check if related payment is settled by the end user.
isSettled() - Method in interface org.lightningj.paywall.paymenthandler.data.MinimalPaymentData
 
isSettled(PaymentData) - Method in class org.lightningj.paywall.paymenthandler.PaymentDataConverter
Help method to check that payment data has isSettled flag set to true.
isSettled() - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPerRequestPaymentData
 
isSettled() - Method in class org.lightningj.paywall.spring.response.SettlementResponse
 
isSettled() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
isSettled() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoMinimalPaymentData
 
isSettled() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPerRequestPaymentData
 
isSettled() - Method in class org.lightningj.paywall.vo.Invoice
 

J

JavascriptTestResourceHandler - Class in org.lightningj.paywall.paywalltademo
Special ResourceHandler handler reading files direcly from disk instead of cached static content.
JavascriptTestResourceHandler() - Constructor for class org.lightningj.paywall.paywalltademo.JavascriptTestResourceHandler
 
JSON_CONTENT_TYPE - Static variable in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
 
JSONParsable - Class in org.lightningj.paywall
Base class for value classes that should be JSON Parsable.
JSONParsable() - Constructor for class org.lightningj.paywall.JSONParsable
Base empty constructor
JSONParsable(JsonObject) - Constructor for class org.lightningj.paywall.JSONParsable
JSON Parseable constructor
JWT_TOKEN_NOTBEFORE - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
JWTClaim - Class in org.lightningj.paywall.tokengenerator
Abstract base that a value object can be added as a claim or parsed from a JWTToken Claim.
JWTClaim() - Constructor for class org.lightningj.paywall.tokengenerator.JWTClaim
Base empty constructor
JWTClaim(JsonObject) - Constructor for class org.lightningj.paywall.tokengenerator.JWTClaim
JSON Parseable constructor
JWTClaim(JwtClaims) - Constructor for class org.lightningj.paywall.tokengenerator.JWTClaim
Constructor populating the value object from a the claimName in jwtClaims.

K

keyCtx - Static variable in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
 
KeyIdByFileRecipientRepository - Class in org.lightningj.paywall.tokengenerator
Implementation that looks up recipient keys stored in local given where it is assumed that the keyId is used as subject.
KeyIdByFileRecipientRepository(RecipientKeyManager) - Constructor for class org.lightningj.paywall.tokengenerator.KeyIdByFileRecipientRepository
 
keyManager - Variable in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
 
KeyManager - Interface in org.lightningj.paywall.keymgmt
Base interface for a KeyManager in charge of maintaining symmetric and asymmetric keys.
KEYMGR_ASYMTRUSTSTOREPATH - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
KEYMGR_KEYSTOREPATH - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
KEYMGR_PASSWORD - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
KeySerializationHelper - Class in org.lightningj.paywall.keymgmt
Class in charge of serializing a secret key.
KeySerializationHelper() - Constructor for class org.lightningj.paywall.keymgmt.KeySerializationHelper
 

L

LightningEvent - Class in org.lightningj.paywall.lightninghandler
Object generated by LightningHandler whenever an invoice is added or settled in the underlying lightning node.
LightningEvent() - Constructor for class org.lightningj.paywall.lightninghandler.LightningEvent
Empty constructor
LightningEvent(LightningEventType, Invoice, LightningHandlerContext) - Constructor for class org.lightningj.paywall.lightninghandler.LightningEvent
Default constructor
LightningEvent(JsonObject) - Constructor for class org.lightningj.paywall.lightninghandler.LightningEvent
JSON Parseable constructor
LightningEventListener - Interface in org.lightningj.paywall.lightninghandler
Base interface of components interested in getting notifications about events related to lightning invoices.
LightningEventType - Enum in org.lightningj.paywall.lightninghandler
Enumeration on supported Lightning events that listeners might get alerted of.
LightningHandler - Interface in org.lightningj.paywall.lightninghandler
Interface for used lightning implementation creating and listening for settled invoices.
LIGHTNINGHANDLER_AUTOCONNECT - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
LightningHandlerContext - Interface in org.lightningj.paywall.lightninghandler
Generic interface for the context of latest known state of a lightning handler after restart.
listeners - Variable in class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
 
listeners - Variable in class org.lightningj.paywall.paymenthandler.PaymentEventBus
 
listenToInvoices(LightningHandlerContext) - Method in class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
Help method that setup invoice subscription with underlying LND node.
LND_CONNECT_STRING - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
LND_CURRENCY_CODE - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
LND_HOSTNAME - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
LND_MACAROON_PATH - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
LND_NETWORK - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
LND_PORT - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
LND_TLS_CERT_PATH - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
LNDHelper - Class in org.lightningj.paywall.lightninghandler.lnd
Helper class with methods for converting between LND wrapper objects and paywall-core objects.
LNDHelper(GetInfoResponse) - Constructor for class org.lightningj.paywall.lightninghandler.lnd.LNDHelper
Constructor of LND helper methods parsing info from LND node.
LNDHelper(String) - Constructor for class org.lightningj.paywall.lightninghandler.lnd.LNDHelper
Default constructor when supportedCurrency comes from configuration
LNDLightningHandlerContext - Class in org.lightningj.paywall.lightninghandler.lnd
Context object for lightning handler generated by payment handler about latest state of invoices.
LNDLightningHandlerContext() - Constructor for class org.lightningj.paywall.lightninghandler.lnd.LNDLightningHandlerContext
Empty constructor
LNDLightningHandlerContext(Long, Long) - Constructor for class org.lightningj.paywall.lightninghandler.lnd.LNDLightningHandlerContext
Default constructor setting the current indicies.
LNDLightningHandlerContext(JsonObject) - Constructor for class org.lightningj.paywall.lightninghandler.lnd.LNDLightningHandlerContext
Constructo for parsing json data.
LocalPaymentFlow - Class in org.lightningj.paywall.paymentflow
Payment flow use case where all components exists in the same application as the pay walled resource.
LocalPaymentFlow(PaymentRequired, CachableHttpServletRequest, OrderRequest, RequestPolicyFactory, LightningHandler, PaymentHandler, TokenGenerator, CurrencyConverter, JwtClaims, ExpectedTokenType, Duration) - Constructor for class org.lightningj.paywall.paymentflow.LocalPaymentFlow
Default constructor initializing the local PaymentFlow.
LocalProfileBeanConfiguration - Class in org.lightningj.paywall.spring.local
Default Spring Bean Configuration for running paywall in local mode.
LocalProfileBeanConfiguration() - Constructor for class org.lightningj.paywall.spring.local.LocalProfileBeanConfiguration
 
LocalWebSocketController - Class in org.lightningj.paywall.spring.local
Local WebSocket Controller controlling the checkSettlement WebSocket Endpoint.
LocalWebSocketController() - Constructor for class org.lightningj.paywall.spring.local.LocalWebSocketController
 
log - Static variable in class org.lightningj.paywall.btcpayserver.BTCPayServer
 
log - Static variable in class org.lightningj.paywall.btcpayserver.BTCPayServerHelper
 
log - Static variable in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
 
log - Static variable in class org.lightningj.paywall.keymgmt.FileKeyManager
 
log - Static variable in class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
 
log - Static variable in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
 
log - Static variable in class org.lightningj.paywall.spring.controller.GenerateQRCodeController
 
lookupInvoice(byte[]) - Method in interface org.lightningj.paywall.lightninghandler.LightningHandler
Method to lookup an invoice in LND given the invoice's pre-image hash.
lookupInvoice(byte[]) - Method in class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
Method to lookup an invoice in LND given the invoice's pre-image hash.
lookupInvoice(byte[]) - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
Method to lookup an invoice in the PaymentHandler.
lookupInvoice(byte[]) - Method in interface org.lightningj.paywall.paymenthandler.PaymentHandler
Method to lookup an invoice in the PaymentHandler.
lookupPaymentFlow(PaymentRequired, CachableHttpServletRequest, OrderRequest, JwtClaims, ExpectedTokenType) - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlowManager
Help method creating a new instance of configured payment flow (depending on PaymentFlowMode).

M

Magnetude - Enum in org.lightningj.paywall.spring.response
XML, JSON version of internal Magnetude object.
magnetude - Variable in class org.lightningj.paywall.vo.amount.CryptoAmount
 
Magnetude - Enum in org.lightningj.paywall.vo.amount
Represents the magnitude of a unit, usually a subunit of a crypto currency.
main(String[]) - Static method in class org.lightningj.paywall.paywalltademo.PaywallTaDemoApplication
 
main(String[]) - Static method in class org.lightningj.paywall.springboot2.PocApplication
 
markAsExecuted() - Method in class org.lightningj.paywall.paymentflow.BasePaymentFlow
Method that should be called by a filter or equivalent after successful execution of payed request and the related payment flow is payPerRequest.
markAsExecuted() - Method in interface org.lightningj.paywall.paymentflow.PaymentFlow
Method that should be called by a filter or equivalent after successful execution of payed request and the related payment flow is payPerRequest.
markAsExecuted(byte[]) - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
Method to flag a related payment flow is a pay per request type and has been processed successfully.
markAsExecuted(byte[]) - Method in interface org.lightningj.paywall.paymenthandler.PaymentHandler
Method to flag a related payment flow is a pay per request type and has been processed successfully.
matches(ConditionContext, AnnotatedTypeMetadata) - Method in class org.lightningj.paywall.spring.local.DefaultLocalBeanCondition
Determine if the condition matches.
matches(ConditionContext, AnnotatedTypeMetadata) - Method in class org.lightningj.paywall.spring.websocket.EnableWebSocketCondition
Determine if the condition matches.
MinimalInvoice - Class in org.lightningj.paywall.vo
Minimal Invoice used inside JWT tokens that is intended to have as small size as possible and used in payment flows where full invoice data isn't needed to be transferred between nodes.
MinimalInvoice() - Constructor for class org.lightningj.paywall.vo.MinimalInvoice
Empty Constructor
MinimalInvoice(Invoice) - Constructor for class org.lightningj.paywall.vo.MinimalInvoice
Default constructor, from existing invoice
MinimalInvoice(JsonObject) - Constructor for class org.lightningj.paywall.vo.MinimalInvoice
JSON Parseable constructor
MinimalInvoice(JwtClaims) - Constructor for class org.lightningj.paywall.vo.MinimalInvoice
Parse from JWTClaims constructor
MinimalPaymentData - Interface in org.lightningj.paywall.paymenthandler.data
Interface defining the minimal amount of information that needs to be stored for a given payment flow.
minimizeData() - Method in class org.lightningj.paywall.vo.Settlement
Method that minimizes the amount of data (by removing the related invoice) if the settlement data is only needed to verify if a given preImageHash have been settled or not.

N

newPaymentData(byte[], OrderRequest) - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
Method that should generate a new PaymentData for a given order request.
newPaymentData(byte[], OrderRequest) - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPaymentHandler
Method that should generate a new PaymentData for a given order request.
newPaymentData(byte[], OrderRequest) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPaymentHandler
Method that should generate a new PaymentData for a given order request.
NoCustomRequestPolicy - Class in org.lightningj.paywall.requestpolicy
Special class used as default custom Request Policy that signal that one of the default defined request policys should be used.
NoCustomRequestPolicy() - Constructor for class org.lightningj.paywall.requestpolicy.NoCustomRequestPolicy
 
nodeAddress - Variable in class org.lightningj.paywall.vo.NodeInfo
 
NodeInfo - Class in org.lightningj.paywall.spring.response
XML and JSON representation of NodeInfo.
NodeInfo() - Constructor for class org.lightningj.paywall.spring.response.NodeInfo
Empty constructor.
NodeInfo(NodeInfo) - Constructor for class org.lightningj.paywall.spring.response.NodeInfo
Constructor converting an internal noneInfo to XML/JSON version.
nodeInfo - Variable in class org.lightningj.paywall.vo.Invoice
 
NodeInfo - Class in org.lightningj.paywall.vo
Value object containing connection information to a Lightning Handlers Lightning node.
NodeInfo() - Constructor for class org.lightningj.paywall.vo.NodeInfo
Empty Constructor
NodeInfo(String, String, Integer) - Constructor for class org.lightningj.paywall.vo.NodeInfo
Default Constructor
NodeInfo(String, String, Integer, NodeInfo.NodeNetwork) - Constructor for class org.lightningj.paywall.vo.NodeInfo
Default Constructor
NodeInfo(String) - Constructor for class org.lightningj.paywall.vo.NodeInfo
Constructor populating data from connect string
NodeInfo(JsonObject) - Constructor for class org.lightningj.paywall.vo.NodeInfo
JSON Parseable constructor
NodeInfo.NodeNetwork - Enum in org.lightningj.paywall.vo
Enumeration of available Node networks the LND node can be connected to.
NodeNetwork - Enum in org.lightningj.paywall.spring.response
XML, JSON version of internal NodeNetwork object.
nodeNetwork - Variable in class org.lightningj.paywall.vo.NodeInfo
 
nodePort - Variable in class org.lightningj.paywall.vo.NodeInfo
 

O

onLightningEvent(LightningEvent) - Method in interface org.lightningj.paywall.lightninghandler.LightningEventListener
This method every time an lightning invoice was added or settled.
onLightningEvent(LightningEvent) - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
This method is called every time an lightning invoice was added or settled.
onPaymentEvent(PaymentEvent) - Method in interface org.lightningj.paywall.paymenthandler.PaymentListener
This method every time an and event related to a payment have been triggered.
option - Variable in class org.lightningj.paywall.vo.PaymentOption
 
order - Variable in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
Order - Class in org.lightningj.paywall.vo
Value object containing information needed to create lightning invoice, generated by the PaymentHandler.
Order() - Constructor for class org.lightningj.paywall.vo.Order
Empty Constructor
Order(byte[], String, Amount, Instant) - Constructor for class org.lightningj.paywall.vo.Order
Default Constructor.
Order(JsonObject) - Constructor for class org.lightningj.paywall.vo.Order
JSON Parseable constructor
Order(JwtClaims) - Constructor for class org.lightningj.paywall.vo.Order
Parse from JWTClaims constructor
orderAmount - Variable in class org.lightningj.paywall.vo.Order
 
orderRequest - Variable in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
OrderRequest - Class in org.lightningj.paywall.vo
OrderRequest contains values generated from related PaymentRequired annotation and is used as a basis for creating a payment flow in PaymentHandler.
OrderRequest() - Constructor for class org.lightningj.paywall.vo.OrderRequest
Empty Constructor
OrderRequest(String, int, List<PaymentOption>, boolean) - Constructor for class org.lightningj.paywall.vo.OrderRequest
Default constructor.
OrderRequest(JsonObject) - Constructor for class org.lightningj.paywall.vo.OrderRequest
JSON Parseable constructor
OrderRequest(JwtClaims) - Constructor for class org.lightningj.paywall.vo.OrderRequest
Parse from JWTClaims constructor
OrderRequestGenerator - Interface in org.lightningj.paywall.orderrequestgenerator
Interface calculating the type or order request that should be debited for each call having the PaymentRequired annotation.
OrderRequestGeneratorFactory - Class in org.lightningj.paywall.orderrequestgenerator
OrderRequestGeneratorFactory is in charge if delivering the correct OrderRequestGenerator implementation specified in the PaymentRequired annotation.
OrderRequestGeneratorFactory() - Constructor for class org.lightningj.paywall.orderrequestgenerator.OrderRequestGeneratorFactory
 
org.lightningj.paywall - package org.lightningj.paywall
 
org.lightningj.paywall.annotations - package org.lightningj.paywall.annotations
 
org.lightningj.paywall.annotations.vo - package org.lightningj.paywall.annotations.vo
 
org.lightningj.paywall.btcpayserver - package org.lightningj.paywall.btcpayserver
 
org.lightningj.paywall.btcpayserver.vo - package org.lightningj.paywall.btcpayserver.vo
 
org.lightningj.paywall.currencyconverter - package org.lightningj.paywall.currencyconverter
 
org.lightningj.paywall.keymgmt - package org.lightningj.paywall.keymgmt
 
org.lightningj.paywall.lightninghandler - package org.lightningj.paywall.lightninghandler
 
org.lightningj.paywall.lightninghandler.lnd - package org.lightningj.paywall.lightninghandler.lnd
 
org.lightningj.paywall.orderrequestgenerator - package org.lightningj.paywall.orderrequestgenerator
 
org.lightningj.paywall.paymentflow - package org.lightningj.paywall.paymentflow
 
org.lightningj.paywall.paymenthandler - package org.lightningj.paywall.paymenthandler
 
org.lightningj.paywall.paymenthandler.data - package org.lightningj.paywall.paymenthandler.data
 
org.lightningj.paywall.paywalltademo - package org.lightningj.paywall.paywalltademo
 
org.lightningj.paywall.paywalltademo.paymenthandler - package org.lightningj.paywall.paywalltademo.paymenthandler
 
org.lightningj.paywall.qrcode - package org.lightningj.paywall.qrcode
 
org.lightningj.paywall.requestpolicy - package org.lightningj.paywall.requestpolicy
 
org.lightningj.paywall.spring - package org.lightningj.paywall.spring
 
org.lightningj.paywall.spring.controller - package org.lightningj.paywall.spring.controller
 
org.lightningj.paywall.spring.local - package org.lightningj.paywall.spring.local
 
org.lightningj.paywall.spring.response - package org.lightningj.paywall.spring.response
 
org.lightningj.paywall.spring.util - package org.lightningj.paywall.spring.util
 
org.lightningj.paywall.spring.websocket - package org.lightningj.paywall.spring.websocket
 
org.lightningj.paywall.springboot2 - package org.lightningj.paywall.springboot2
 
org.lightningj.paywall.springboot2.paymenthandler - package org.lightningj.paywall.springboot2.paymenthandler
 
org.lightningj.paywall.springboot2.test - package org.lightningj.paywall.springboot2.test
 
org.lightningj.paywall.tokengenerator - package org.lightningj.paywall.tokengenerator
 
org.lightningj.paywall.util - package org.lightningj.paywall.util
 
org.lightningj.paywall.vo - package org.lightningj.paywall.vo
 
org.lightningj.paywall.vo.amount - package org.lightningj.paywall.vo.amount
 
org.lightningj.paywall.web - package org.lightningj.paywall.web
 

P

PARAMETER_DATA - Static variable in class org.lightningj.paywall.spring.controller.GenerateQRCodeController
 
PARAMETER_HEIGHT - Static variable in class org.lightningj.paywall.spring.controller.GenerateQRCodeController
 
PARAMETER_INVOICE_REQUEST - Static variable in class org.lightningj.paywall.web.HTTPConstants
Parameter name used when redirecting an invoice request controller to check payment.
PARAMETER_PAYMENT_REQUEST - Static variable in class org.lightningj.paywall.web.HTTPConstants
Parameter name used when redirecting an order request to a central payment controller and checking for payment.
PARAMETER_WIDTH - Static variable in class org.lightningj.paywall.spring.controller.GenerateQRCodeController
 
parseAmountObject(JsonObject) - Static method in class org.lightningj.paywall.vo.amount.Amount
Help method to parse a JSON amount depending on its type field, fiat and cryptoamount.
parseContext(JsonObject) - Static method in interface org.lightningj.paywall.lightninghandler.LightningHandlerContext
Factory method to parse lightning context json data into value objects.
parseInvoice(byte[]) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerResponseParser
Method to parse and convert a BTC Pay Server JSON invoice response into a value object invoice.
parseJson(JsonObject) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
 
parseJson(JsonObject) - Method in class org.lightningj.paywall.btcpayserver.vo.Rate
 
parseJson(JsonObject) - Method in class org.lightningj.paywall.btcpayserver.vo.Token
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.JSONParsable
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.lightninghandler.LightningEvent
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.lightninghandler.lnd.LNDLightningHandlerContext
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.paymentflow.InvoiceResult
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.paymentflow.Result
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.paymentflow.SettlementResult
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.paymenthandler.PaymentEvent
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.spring.APIError
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.spring.response.Response
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.spring.response.SettlementResponse
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.vo.amount.CryptoAmount
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.vo.amount.FiatAmount
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.vo.ConvertedOrder
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.vo.Invoice
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.vo.MinimalInvoice
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.vo.NodeInfo
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.vo.Order
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.vo.OrderRequest
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.vo.PaymentOption
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.vo.PreImageData
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.vo.PreImageOrder
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.vo.RequestData
Method to read all properties from a JsonObject into this value object.
parseJson(JsonObject) - Method in class org.lightningj.paywall.vo.Settlement
Method to read all properties from a JsonObject into this value object.
parseNodeInfo(GetInfoResponse) - Method in class org.lightningj.paywall.lightninghandler.lnd.LNDHelper
Method to parse a GetInfoResponse into a NodeInfo value object.
parseSymmetricKeyFile(File, char[]) - Method in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
 
parseToken(byte[]) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerResponseParser
Method to parse and convert a BTC Pay Server JSON invoice response into a value object invoice.
parseToken(String, String) - Method in class org.lightningj.paywall.tokengenerator.BaseTokenGenerator
Method to parse, verify signature and decrypt (if encrypted) a token.
parseToken(String, String) - Method in interface org.lightningj.paywall.tokengenerator.TokenGenerator
Method to parse, verify signature and decrypt (if encrypted) a token.
Payment - Interface in org.lightningj.paywall.paymenthandler
Generic interface of value object that can be handled by the PaymentHandler.
payment - Variable in class org.lightningj.paywall.paymenthandler.PaymentEvent
 
PaymentData - Interface in org.lightningj.paywall.paymenthandler.data
General interface indicating implementing type is some form of PaymentData (eventually persistable).
paymentDataConverter - Variable in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
 
PaymentDataConverter - Class in org.lightningj.paywall.paymenthandler
Class containing helper methods to convert between payment data and related value objects such as Order,Invoice and Settlement.
PaymentDataConverter(LightningHandler, Duration, Duration) - Constructor for class org.lightningj.paywall.paymenthandler.PaymentDataConverter
Default constructor.
PaymentEvent - Class in org.lightningj.paywall.paymenthandler
Object generated by Payment whenever an payment have been updated.
PaymentEvent() - Constructor for class org.lightningj.paywall.paymenthandler.PaymentEvent
Empty constructor
PaymentEvent(PaymentEventType, Payment) - Constructor for class org.lightningj.paywall.paymenthandler.PaymentEvent
Default constructor
PaymentEvent(JsonObject) - Constructor for class org.lightningj.paywall.paymenthandler.PaymentEvent
JSON Parseable constructor
paymentEventBus - Variable in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
 
PaymentEventBus - Class in org.lightningj.paywall.paymenthandler
Helper class in charge of notifying listeners matching interested events after a payment event have been triggered.
PaymentEventBus() - Constructor for class org.lightningj.paywall.paymenthandler.PaymentEventBus
 
PaymentEventType - Enum in org.lightningj.paywall.paymenthandler
Enumeration describing the type of payment event that is signaled.
PaymentFlow - Interface in org.lightningj.paywall.paymentflow
Interface of external methods of a payment flow.
PaymentFlowManager - Interface in org.lightningj.paywall.paymentflow
PaymentFlowManager is in charge of creating payment flows for a given PaymentRequired annotation and managing all related sub-components such as TokenGenerator and LightningHandler etc.
PaymentFlowMode - Enum in org.lightningj.paywall.paymentflow
Enumeration specifying different payment flows that can be used for a given payment.
PaymentHandler - Interface in org.lightningj.paywall.paymenthandler
Interface for a PaymentHandler handling orders, invoices and settlements.
PaymentListener - Interface in org.lightningj.paywall.paymenthandler
Interface for a listener listening on payment updates related to a specific payment preImageHash (id in the system) or all payment events.
paymentListenerMap - Variable in class org.lightningj.paywall.spring.websocket.BaseWebSocketSettledHandler
Map of base64 paymentHash to paymentListener
PaymentNotificationCache - Class in org.lightningj.paywall.spring.util
 
PaymentNotificationCache() - Constructor for class org.lightningj.paywall.spring.util.PaymentNotificationCache
 
PaymentOption - Annotation Type in org.lightningj.paywall.annotations.vo
Payment options is a way of adding extra option related to a payment order where the annotation can contain extra information that could be used by the PaymentHandler to create an order.
PaymentOption - Class in org.lightningj.paywall.vo
Value object representation of an annotated payment option in @PaymentRequired annotation.
PaymentOption() - Constructor for class org.lightningj.paywall.vo.PaymentOption
Empty Constructor
PaymentOption(PaymentOption) - Constructor for class org.lightningj.paywall.vo.PaymentOption
Constructor converting an annotated payment option into a value object.
PaymentOption(JsonObject) - Constructor for class org.lightningj.paywall.vo.PaymentOption
JSON Parseable constructor
PaymentRequired - Annotation Type in org.lightningj.paywall.annotations
Main annotation used on a WebService of WebPage controller or similar endpoint to indicate that payment is required to allow access.
paymentRequired - Variable in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
payPerRequest - Variable in class org.lightningj.paywall.vo.Settlement
 
PaywallExceptionHandler - Interface in org.lightningj.paywall.spring
Interface used by paywall related controllers to handle exceptions in a uniform way.
PaywallInterceptor - Class in org.lightningj.paywall.spring
The main interceptor catching calls finding end points with a @PaymentRequired and starting the related payment flow.
PaywallInterceptor() - Constructor for class org.lightningj.paywall.spring.PaywallInterceptor
 
PaywallProperties - Class in org.lightningj.paywall.spring
Spring bean containing all paywall related configuration settings.
PaywallProperties() - Constructor for class org.lightningj.paywall.spring.PaywallProperties
 
PaywallRuntimeException - Exception in org.lightningj.paywall.spring.util
Special RuntimeException used in Spring controllers and filters to return correct response data.
PaywallRuntimeException(Throwable) - Constructor for exception org.lightningj.paywall.spring.util.PaywallRuntimeException
Constructs a new runtime exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
PaywallTaDemoApplication - Class in org.lightningj.paywall.paywalltademo
 
PaywallTaDemoApplication() - Constructor for class org.lightningj.paywall.paywalltademo.PaywallTaDemoApplication
 
PaywallWebSocketConfig - Class in org.lightningj.paywall.spring.websocket
Class in charge of setting up Paywall WebSocket Endpoint with related stomp queues.
PaywallWebSocketConfig() - Constructor for class org.lightningj.paywall.spring.websocket.PaywallWebSocketConfig
 
PerRequestPaymentData - Interface in org.lightningj.paywall.paymenthandler.data
Special interface for payment workflow that should support pay per request billing.
PNG_CONTENT_TYPE - Static variable in class org.lightningj.paywall.spring.controller.GenerateQRCodeController
 
poc1(String) - Method in class org.lightningj.paywall.springboot2.Poc1RestController
REST Endpoint that has a non pay per request PaymentRequired annotation.
poc1APIError() - Method in class org.lightningj.paywall.springboot2.Poc1RestController
REST Endpoint that generates an IOException, behind a paywall
poc1APIErrorNoPaywall() - Method in class org.lightningj.paywall.springboot2.Poc1RestController
REST Endpoint that generates an IOException, without paywall
poc1NoPaymentRequired() - Method in class org.lightningj.paywall.springboot2.Poc1RestController
REST Endpoint that has no PaymentRequired annotation.
poc1PayPerRequest() - Method in class org.lightningj.paywall.springboot2.Poc1RestController
REST Endpoint that has a pay per request PaymentRequired annotation.
Poc1RestController - Class in org.lightningj.paywall.springboot2
Proof of Concept REST controller with @PaymentRequired Mappings on method level.
Poc1RestController() - Constructor for class org.lightningj.paywall.springboot2.Poc1RestController
 
poc2_1() - Method in class org.lightningj.paywall.springboot2.Poc2RestController
Simple REST Endpoint.
poc2_2() - Method in class org.lightningj.paywall.springboot2.Poc2RestController
Simple REST Endpoint.
Poc2RestController - Class in org.lightningj.paywall.springboot2
Proof of Concept REST controller with @PaymentRequired Mappings on class level.
Poc2RestController() - Constructor for class org.lightningj.paywall.springboot2.Poc2RestController
 
PocApplication - Class in org.lightningj.paywall.springboot2
 
PocApplication() - Constructor for class org.lightningj.paywall.springboot2.PocApplication
 
PocResult - Class in org.lightningj.paywall.springboot2
Response object used by Poc1RestController and Poc2RestController to display result in JSON or XML.
PocResult() - Constructor for class org.lightningj.paywall.springboot2.PocResult
 
PocResult(long, String) - Constructor for class org.lightningj.paywall.springboot2.PocResult
 
populateJWEDecryptionAlgAndKey(TokenContext, JsonWebEncryption) - Method in class org.lightningj.paywall.tokengenerator.AsymmetricKeyTokenGenerator
Method to set the encryption algorithm and key used to deencrypt the token.
populateJWEDecryptionAlgAndKey(TokenContext, JsonWebEncryption) - Method in class org.lightningj.paywall.tokengenerator.BaseTokenGenerator
Method to set the encryption algorithm and key used to deencrypt the token.
populateJWEDecryptionAlgAndKey(TokenContext, JsonWebEncryption) - Method in class org.lightningj.paywall.tokengenerator.SymmetricKeyTokenGenerator
Method to set the encryption algorithm and key used to deencrypt the token.
populateJWEEncryptionAlgAndKey(TokenContext, String, JsonWebEncryption) - Method in class org.lightningj.paywall.tokengenerator.AsymmetricKeyTokenGenerator
Method to set the encryption algorithm and key used to encrypt the token.
populateJWEEncryptionAlgAndKey(TokenContext, String, JsonWebEncryption) - Method in class org.lightningj.paywall.tokengenerator.BaseTokenGenerator
Method to set the encryption algorithm and key used to encrypt the token.
populateJWEEncryptionAlgAndKey(TokenContext, String, JsonWebEncryption) - Method in class org.lightningj.paywall.tokengenerator.SymmetricKeyTokenGenerator
Method to set the encryption algorithm and key used to encrypt the token.
populateJWSSignatureAlgAndKey(TokenContext, JsonWebSignature) - Method in class org.lightningj.paywall.tokengenerator.AsymmetricKeyTokenGenerator
Method to set the used RSA_USING_SHA256 algorithm and the private key to sign the data with.
populateJWSSignatureAlgAndKey(TokenContext, JsonWebSignature) - Method in class org.lightningj.paywall.tokengenerator.BaseTokenGenerator
Method to set the signature algorithm and key used to sign the token.
populateJWSSignatureAlgAndKey(TokenContext, JsonWebSignature) - Method in class org.lightningj.paywall.tokengenerator.SymmetricKeyTokenGenerator
Populates the JWS Signature with HMAC_SHA256 and the used symmetric key.
populateJWSVerifyAlgAndKey(TokenContext, JsonWebSignature) - Method in class org.lightningj.paywall.tokengenerator.AsymmetricKeyTokenGenerator
Populates the JWS Signature with a whitelisting of asymmetric key algorithms and the finding the related public key.
populateJWSVerifyAlgAndKey(TokenContext, JsonWebSignature) - Method in class org.lightningj.paywall.tokengenerator.BaseTokenGenerator
Method to set algorithm whitelisting and verification key before verification of the JWS signature.
populateJWSVerifyAlgAndKey(TokenContext, JsonWebSignature) - Method in class org.lightningj.paywall.tokengenerator.SymmetricKeyTokenGenerator
Populates the JWS Signature with HMAC_SHA256 whitelisting and the used symmetric key.
preHandle(HttpServletRequest, HttpServletResponse, Object) - Method in class org.lightningj.paywall.spring.PaywallInterceptor
PreHandle method checking if related end-point has @PaymentRequired set and then checks if payment is required or is settled before continuing to the end-point.
preImage - Variable in class org.lightningj.paywall.vo.PreImageOrder
 
PREIMAGE_LENGTH - Static variable in class org.lightningj.paywall.tokengenerator.BaseTokenGenerator
 
PreImageData - Class in org.lightningj.paywall.vo
PreImageData is a value object containing the secret preimage value used in lightning invoices and it's hash value.
PreImageData() - Constructor for class org.lightningj.paywall.vo.PreImageData
Empty Constructor
PreImageData(JsonObject) - Constructor for class org.lightningj.paywall.vo.PreImageData
Json Parsable constructor.
PreImageData(byte[], byte[]) - Constructor for class org.lightningj.paywall.vo.PreImageData
Default constructor
preImageHash - Variable in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
preImageHash - Variable in class org.lightningj.paywall.vo.MinimalInvoice
 
preImageHash - Variable in class org.lightningj.paywall.vo.Order
 
preImageHash - Variable in class org.lightningj.paywall.vo.Settlement
 
PreImageOrder - Class in org.lightningj.paywall.vo
Value object extending the standard by including the secret preImage value that should be used for payment.
PreImageOrder() - Constructor for class org.lightningj.paywall.vo.PreImageOrder
Empty Constructor
PreImageOrder(byte[], Order) - Constructor for class org.lightningj.paywall.vo.PreImageOrder
Default Constructor.
PreImageOrder(JsonObject) - Constructor for class org.lightningj.paywall.vo.PreImageOrder
JSON Parseable constructor
PreImageOrder(JwtClaims) - Constructor for class org.lightningj.paywall.vo.PreImageOrder
Parse from JWTClaims constructor
pubKeyInHex(ECPublicKey) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerHelper
Help method to generate the hex representation of a public key used in BTC Pay Server to identify an access key.
publicKeyInfo - Variable in class org.lightningj.paywall.vo.NodeInfo
 
put(Token) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerTokenManager
Adds the given token in related to the facade to the cache.

Q

QR_CODE_DEFAULT_HEIGHT - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
QR_CODE_DEFAULT_URL - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
QR_CODE_DEFAULT_WIDTH - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
QRCodeGenerator - Interface in org.lightningj.paywall.qrcode
Interface for generating QR Code of text data used in payment flows.

R

Rate - Class in org.lightningj.paywall.btcpayserver.vo
Value object representing one BTC Pay Server JSON rate.
Rate() - Constructor for class org.lightningj.paywall.btcpayserver.vo.Rate
Empty Constructor
Rate(JsonObject) - Constructor for class org.lightningj.paywall.btcpayserver.vo.Rate
Json Parsable constructor.
rebuildCache() - Method in class org.lightningj.paywall.tokengenerator.AsymmetricKeyTokenGenerator
 
RecipientKeyManager - Interface in org.lightningj.paywall.keymgmt
Interface for a KeyManager in charge of maintaining recipient keys.
RecipientRepository - Interface in org.lightningj.paywall.tokengenerator
Interface for a reipient repository used to lookup a recipients encryption key.
registerInvoice(Invoice) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServer
 
registerListener(LightningEventListener) - Method in interface org.lightningj.paywall.lightninghandler.LightningHandler
Method to register a listener to recieve notification about updated invoices and settled invoices.
registerListener(LightningEventListener) - Method in class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
Method to register a listener to recieve notification about updated invoices and settled invoices.
registerListener(PaymentListener) - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
Method to add the listener to the set of listeners listening on payment events.
registerListener(PaymentListener) - Method in interface org.lightningj.paywall.paymenthandler.PaymentHandler
Method to add the listener to the set of listeners listening on payment events.
registerListener(T) - Method in class org.lightningj.paywall.spring.websocket.BaseWebSocketSettledHandler
Abstract method to register in related event handler.
registerListener(PaymentListener) - Method in class org.lightningj.paywall.spring.websocket.WebSocketSettledPaymentHandler
 
registerNew - Variable in class org.lightningj.paywall.paymentflow.CentralLightningHandlerPaymentFlow
 
registerPaymentListener(String, long, T) - Method in class org.lightningj.paywall.spring.websocket.BaseWebSocketSettledHandler
Method to register a payment listener to a related preImageHash and expireDate.
registerSettledInvoice(Invoice, boolean, OrderRequest, LightningHandlerContext) - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
Method to manually register an invoice as settled (isSettled must be set to true) used in some payment flows instead of listening on lightningHandler events.
registerSettledInvoice(Invoice, boolean, OrderRequest, LightningHandlerContext) - Method in interface org.lightningj.paywall.paymenthandler.PaymentHandler
Method to manually register an invoice as settled (isSettled must be set to true) used in some payment flows instead of listening on lightningHandler events.
registerStompEndpoints(StompEndpointRegistry) - Method in class org.lightningj.paywall.spring.websocket.PaywallWebSocketConfig
 
request - Variable in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
REQUEST_ATTRIBUTE_PAY_PER_REQUEST - Static variable in class org.lightningj.paywall.spring.PaywallInterceptor
Request attribute set to true if related payment is per per request.
REQUEST_ATTRIBUTE_PAYMENT_FLOW - Static variable in class org.lightningj.paywall.spring.PaywallInterceptor
Request attribute containing the related cached payment flow object using.
REQUEST_ATTRIBUTE_PREIMAGE_HASH - Static variable in class org.lightningj.paywall.spring.PaywallInterceptor
Request attribute containing the related payment pre image hash.
requestData - Variable in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
RequestData - Class in org.lightningj.paywall.vo
Value object class containing information about a request that might require payment.
RequestData() - Constructor for class org.lightningj.paywall.vo.RequestData
Empty Constructor
RequestData(byte[], Instant) - Constructor for class org.lightningj.paywall.vo.RequestData
Default Constructor
RequestData(byte[]) - Constructor for class org.lightningj.paywall.vo.RequestData
Constructor setting request data to current instant.
RequestData(JsonObject) - Constructor for class org.lightningj.paywall.vo.RequestData
JSON Parseable constructor
RequestData(JwtClaims) - Constructor for class org.lightningj.paywall.vo.RequestData
Parse from JWTClaims constructor
requestDate - Variable in class org.lightningj.paywall.vo.RequestData
 
RequestHelper - Class in org.lightningj.paywall.spring.util
Utility class containing help method for determine state in a HTTP Requests.
RequestHelper() - Constructor for class org.lightningj.paywall.spring.util.RequestHelper
 
RequestHelper.RequestType - Enum in org.lightningj.paywall.spring.util
Enumeration of different supported request handling types.
requestPayment() - Method in class org.lightningj.paywall.paymentflow.CentralLightningHandlerPaymentFlow
Method to create and order and an invoice.
requestPayment() - Method in class org.lightningj.paywall.paymentflow.LocalPaymentFlow
Method to create and order and an invoice in local lightning handler..
requestPayment() - Method in interface org.lightningj.paywall.paymentflow.PaymentFlow
Method to create and order and optionally an invoice (depending on system setup).
RequestPolicy - Interface in org.lightningj.paywall.requestpolicy
Request policy is in charge of generating a digest of all significant data in a request that is needed to determine that the call is same that is invoiced.
RequestPolicyFactory - Class in org.lightningj.paywall.requestpolicy
RequestPolicyFactory is in charge if delivering the correct RequestPolicy implementation specified in the PaymentRequired annotation.
RequestPolicyFactory() - Constructor for class org.lightningj.paywall.requestpolicy.RequestPolicyFactory
 
RequestPolicyType - Enum in org.lightningj.paywall.requestpolicy
Enumeration specifying type of policy used for aggregating significant request data.
Response - Class in org.lightningj.paywall.spring.response
 
Response() - Constructor for class org.lightningj.paywall.spring.response.Response
 
Response(String) - Constructor for class org.lightningj.paywall.spring.response.Response
 
Response(JsonObject) - Constructor for class org.lightningj.paywall.spring.response.Response
JSON Parseable constructor
Result - Class in org.lightningj.paywall.paymentflow
Base value object containing a result of a payment flow operation.
Result() - Constructor for class org.lightningj.paywall.paymentflow.Result
Empty Constructor
Result(String) - Constructor for class org.lightningj.paywall.paymentflow.Result
Default Constructor
Result(JsonObject) - Constructor for class org.lightningj.paywall.paymentflow.Result
JSON Parseable constructor
ripeMD160(byte[]) - Static method in class org.lightningj.paywall.util.DigestUtils
 

S

SameCryptoCurrencyConverter - Class in org.lightningj.paywall.currencyconverter
A very simple implementation of CurrencyConverter that assumes the payment handler create payment data in same cryptocurrency as supported by used Lightning handler.
SameCryptoCurrencyConverter() - Constructor for class org.lightningj.paywall.currencyconverter.SameCryptoCurrencyConverter
 
secretKey - Variable in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
 
send(BTCPayServerHTTPSender.METHOD, String, boolean) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
Method to send data to given REST endpoint of BTC Pay Server.
send(BTCPayServerHTTPSender.METHOD, String, byte[], boolean) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
Method to send data to given REST endpoint of BTC Pay Server.
send(BTCPayServerHTTPSender.METHOD, String, JSONParsable, boolean) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
Method to send data to given REST endpoint of BTC Pay Server.
send(BTCPayServerHTTPSender.METHOD, String, boolean, Map<String, String>) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
Method to send data to given REST endpoint of BTC Pay Server.
send(BTCPayServerHTTPSender.METHOD, String, JSONParsable, boolean, Map<String, String>) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
Method to send data to given REST endpoint of BTC Pay Server.
send(BTCPayServerHTTPSender.METHOD, String, byte[], boolean, Map<String, String>) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
Method to send data to given REST endpoint of BTC Pay Server.
serializeAsymKeyPair(KeyPair, char[]) - Static method in class org.lightningj.paywall.keymgmt.KeySerializationHelper
Method to serialize an asymmetric key pair to key data.
serializeBTCPayServerKeyPair(KeyPair, char[]) - Static method in class org.lightningj.paywall.keymgmt.KeySerializationHelper
Method to serialize an btc pay server access token key pair to key data.
serializeSecretKey(Key, char[]) - Static method in class org.lightningj.paywall.keymgmt.KeySerializationHelper
Method to serialize a secret key to key data.
setAddIndex(Long) - Method in class org.lightningj.paywall.lightninghandler.lnd.LNDLightningHandlerContext
 
setAmountPaid(long) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setArticleId(String) - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.ArticleData
 
setArticleId(String) - Method in class org.lightningj.paywall.springboot2.paymenthandler.ArticleData
 
setArticleId(String) - Method in class org.lightningj.paywall.vo.OrderRequest
 
setBolt11Invoice(String) - Method in interface org.lightningj.paywall.paymenthandler.data.FullPaymentData
 
setBolt11Invoice(String) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
setBolt11Invoice(String) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
setBolt11Invoice(String) - Method in class org.lightningj.paywall.vo.Invoice
 
setCheckSettlementLink(String) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
setCheckSettlementWebSocketEndpoint(String) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
setCheckSettlementWebSocketQueue(String) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
setCode(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Rate
See property comment
setConnectString(String) - Method in class org.lightningj.paywall.spring.response.NodeInfo
 
setConnectString(String) - Method in class org.lightningj.paywall.vo.NodeInfo
Setter using connect string.
setContent(String) - Method in class org.lightningj.paywall.springboot2.PocResult
 
setContext(LightningHandlerContext) - Method in class org.lightningj.paywall.lightninghandler.LightningEvent
 
setConvertedAmount(CryptoAmount) - Method in class org.lightningj.paywall.vo.ConvertedOrder
 
setCurrency(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setCurrencyCode(String) - Method in class org.lightningj.paywall.spring.response.CryptoAmount
 
setCurrencyCode(String) - Method in class org.lightningj.paywall.vo.amount.CryptoAmount
 
setCurrencyCode(String) - Method in class org.lightningj.paywall.vo.amount.FiatAmount
 
setCurrentTime(Long) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setDescription(String) - Method in interface org.lightningj.paywall.paymenthandler.data.StandardPaymentData
 
setDescription(String) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
setDescription(String) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
setDescription(String) - Method in class org.lightningj.paywall.vo.Invoice
 
setDescription(String) - Method in class org.lightningj.paywall.vo.Order
 
setErrors(List<String>) - Method in class org.lightningj.paywall.spring.APIError
 
setExceptionStatus(Boolean) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setExecuted(boolean) - Method in interface org.lightningj.paywall.paymenthandler.data.PerRequestPaymentData
 
setExecuted(boolean) - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPerRequestPaymentData
 
setExecuted(boolean) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
setExecuted(boolean) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPerRequestPaymentData
 
setExpirationTime(Long) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setExpireDate(Instant) - Method in class org.lightningj.paywall.btcpayserver.vo.Token
 
setExpireDate(Instant) - Method in class org.lightningj.paywall.vo.Invoice
 
setExpireDate(Instant) - Method in class org.lightningj.paywall.vo.Order
 
setExtendedNotifications(Boolean) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setFacade(BTCPayServerFacade) - Method in class org.lightningj.paywall.btcpayserver.vo.Token
 
setFullNotifications(Boolean) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setGoingUp(boolean) - Method in class org.lightningj.paywall.paywalltademo.TADemoResult
 
setId(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setId(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Token
 
setId(Integer) - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.ArticleData
 
setId(Integer) - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPerRequestPaymentData
 
setId(long) - Method in class org.lightningj.paywall.paywalltademo.TADemoResult
 
setId(Integer) - Method in class org.lightningj.paywall.springboot2.paymenthandler.ArticleData
 
setId(Integer) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
setId(Integer) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoMinimalPaymentData
 
setId(Integer) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPerRequestPaymentData
 
setId(long) - Method in class org.lightningj.paywall.springboot2.PocResult
 
setInvoice(Invoice) - Method in class org.lightningj.paywall.lightninghandler.LightningEvent
 
setInvoice(Invoice) - Method in class org.lightningj.paywall.paymentflow.InvoiceResult
 
setInvoice(Invoice) - Method in class org.lightningj.paywall.vo.Settlement
 
setInvoiceAmount(CryptoAmount) - Method in interface org.lightningj.paywall.paymenthandler.data.StandardPaymentData
 
setInvoiceAmount(CryptoAmount) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
setInvoiceAmount(CryptoAmount) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
setInvoiceAmount(CryptoAmount) - Method in class org.lightningj.paywall.vo.Invoice
 
setInvoiceDate(Instant) - Method in interface org.lightningj.paywall.paymenthandler.data.StandardPaymentData
 
setInvoiceDate(Date) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
setInvoiceDate(Instant) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
setInvoiceDate(Instant) - Method in class org.lightningj.paywall.vo.Invoice
 
setInvoiceExpireDate(Instant) - Method in interface org.lightningj.paywall.paymenthandler.data.StandardPaymentData
 
setInvoiceExpireDate(Date) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
setInvoiceExpireDate(Instant) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
setItemCode(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setItemDesc(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setLabel(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Token
 
setMagnetude(Magnetude) - Method in class org.lightningj.paywall.spring.response.CryptoAmount
 
setMagnetude(Magnetude) - Method in class org.lightningj.paywall.vo.amount.CryptoAmount
 
setMessage(String) - Method in class org.lightningj.paywall.spring.APIError
 
setName(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Rate
See property comment
setNetwork(NodeNetwork) - Method in class org.lightningj.paywall.spring.response.NodeInfo
 
setNodeAddress(String) - Method in class org.lightningj.paywall.spring.response.NodeInfo
 
setNodeAddress(String) - Method in class org.lightningj.paywall.vo.NodeInfo
 
setNodeInfo(NodeInfo) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
setNodeInfo(NodeInfo) - Method in class org.lightningj.paywall.vo.Invoice
 
setNodeNetwork(NodeInfo.NodeNetwork) - Method in class org.lightningj.paywall.vo.NodeInfo
 
setNodePort(Integer) - Method in class org.lightningj.paywall.spring.response.NodeInfo
 
setNodePort(Integer) - Method in class org.lightningj.paywall.vo.NodeInfo
 
setNotificationEmail(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setNotificationURL(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setOption(String) - Method in class org.lightningj.paywall.vo.PaymentOption
 
setOrderAmount(Amount) - Method in interface org.lightningj.paywall.paymenthandler.data.MinimalPaymentData
 
setOrderAmount(Amount) - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPerRequestPaymentData
 
setOrderAmount(Amount) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
setOrderAmount(Amount) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoMinimalPaymentData
 
setOrderAmount(Amount) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPerRequestPaymentData
 
setOrderAmount(Amount) - Method in class org.lightningj.paywall.vo.Order
 
setOrderId(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setPairingCode(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Token
 
setPayment(Payment) - Method in class org.lightningj.paywall.paymenthandler.PaymentEvent
 
setPaymentOptions(List<PaymentOption>) - Method in class org.lightningj.paywall.vo.OrderRequest
 
setPayPerRequest(boolean) - Method in interface org.lightningj.paywall.paymenthandler.data.PerRequestPaymentData
 
setPayPerRequest(boolean) - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPerRequestPaymentData
 
setPayPerRequest(Boolean) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
setPayPerRequest(Boolean) - Method in class org.lightningj.paywall.spring.response.SettlementResponse
 
setPayPerRequest(boolean) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
setPayPerRequest(boolean) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPerRequestPaymentData
 
setPayPerRequest(boolean) - Method in class org.lightningj.paywall.vo.OrderRequest
 
setPayPerRequest(boolean) - Method in class org.lightningj.paywall.vo.Settlement
 
setPosData(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setPrediction(String) - Method in class org.lightningj.paywall.paywalltademo.TADemoResult
 
setPreImage(byte[]) - Method in class org.lightningj.paywall.vo.PreImageData
 
setPreImage(byte[]) - Method in class org.lightningj.paywall.vo.PreImageOrder
 
setPreImageHash(byte[]) - Method in interface org.lightningj.paywall.paymenthandler.data.MinimalPaymentData
 
setPreImageHash(byte[]) - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPerRequestPaymentData
 
setPreImageHash(String) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
setPreImageHash(String) - Method in class org.lightningj.paywall.spring.response.SettlementResponse
 
setPreImageHash(byte[]) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
setPreImageHash(byte[]) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoMinimalPaymentData
 
setPreImageHash(byte[]) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPerRequestPaymentData
 
setPreImageHash(byte[]) - Method in class org.lightningj.paywall.vo.MinimalInvoice
 
setPreImageHash(byte[]) - Method in class org.lightningj.paywall.vo.Order
 
setPreImageHash(byte[]) - Method in class org.lightningj.paywall.vo.PreImageData
 
setPreImageHash(byte[]) - Method in class org.lightningj.paywall.vo.Settlement
 
setPrice(Double) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setPrice(long) - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.ArticleData
 
setPrice(long) - Method in class org.lightningj.paywall.springboot2.paymenthandler.ArticleData
 
setPublicKeyInfo(String) - Method in class org.lightningj.paywall.spring.response.NodeInfo
 
setPublicKeyInfo(String) - Method in class org.lightningj.paywall.vo.NodeInfo
 
setQrLink(String) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
setRate(Double) - Method in class org.lightningj.paywall.btcpayserver.vo.Rate
See property comment
setReason(TokenException.Reason) - Method in class org.lightningj.paywall.spring.APIError
 
setRedirectURL(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setRequestDate(Instant) - Method in class org.lightningj.paywall.vo.RequestData
 
setRequestPolicyType(String) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
setSettled(boolean) - Method in interface org.lightningj.paywall.paymenthandler.data.MinimalPaymentData
 
setSettled(boolean) - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPerRequestPaymentData
 
setSettled(boolean) - Method in class org.lightningj.paywall.spring.response.SettlementResponse
 
setSettled(boolean) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
setSettled(boolean) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoMinimalPaymentData
 
setSettled(boolean) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPerRequestPaymentData
 
setSettled(boolean) - Method in class org.lightningj.paywall.vo.Invoice
 
setSettledAmount(CryptoAmount) - Method in interface org.lightningj.paywall.paymenthandler.data.StandardPaymentData
 
setSettledAmount(CryptoAmount) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
setSettledAmount(CryptoAmount) - Method in class org.lightningj.paywall.vo.Invoice
 
setSettleIndex(Long) - Method in class org.lightningj.paywall.lightninghandler.lnd.LNDLightningHandlerContext
 
setSettlement(Settlement) - Method in class org.lightningj.paywall.paymentflow.SettlementResult
 
setSettlementDate(Instant) - Method in interface org.lightningj.paywall.paymenthandler.data.StandardPaymentData
 
setSettlementDate(Instant) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
setSettlementDate(Instant) - Method in class org.lightningj.paywall.vo.Invoice
 
setSettlementDuration(Duration) - Method in interface org.lightningj.paywall.paymenthandler.data.StandardPaymentData
The settlement duration indicates how long time a generated settlement should be valid.
setSettlementDuration(Duration) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
The settlement duration indicates how long time a generated settlement should be valid.
setSettlementDuration(Duration) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPaymentHandler
Method only used to override default duration set for settlement, only used to test settlement token expiration in functional test and does not need to be part of implementation regular use cases.
setSettlementExpireDate(Instant) - Method in interface org.lightningj.paywall.paymenthandler.data.FullPaymentData
The settlement expire date sets the timestamp when a generated settlement token should expire.
setSettlementExpireDate(Instant) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
setSettlementValidFrom(Instant) - Method in interface org.lightningj.paywall.paymenthandler.data.FullPaymentData
 
setSettlementValidFrom(Date) - Method in class org.lightningj.paywall.spring.response.SettlementResponse
 
setSettlementValidFrom(Instant) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
setSettlementValidUntil(Date) - Method in class org.lightningj.paywall.spring.response.SettlementResponse
 
setSignificantData(byte[]) - Method in class org.lightningj.paywall.vo.RequestData
 
setSourceNode(String) - Method in class org.lightningj.paywall.vo.Invoice
 
setStatus(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setStatus(HttpStatus) - Method in class org.lightningj.paywall.spring.APIError
 
setStatus(String) - Method in class org.lightningj.paywall.spring.response.Response
 
SettingUtils - Class in org.lightningj.paywall.util
Class containing help methods parsing setting values.
SettingUtils() - Constructor for class org.lightningj.paywall.util.SettingUtils
 
settled - Variable in class org.lightningj.paywall.vo.Invoice
 
settledAmount - Variable in class org.lightningj.paywall.vo.Invoice
 
settleIndex - Variable in class org.lightningj.paywall.lightninghandler.lnd.LNDLightningHandlerContext
 
settlement - Variable in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
Settlement - Class in org.lightningj.paywall.vo
Value object class containing information about a payment that have been settled through the lightning network.
Settlement() - Constructor for class org.lightningj.paywall.vo.Settlement
Empty Constructor
Settlement(byte[], Invoice, Instant, Instant, boolean) - Constructor for class org.lightningj.paywall.vo.Settlement
Default Constructor
Settlement(JsonObject) - Constructor for class org.lightningj.paywall.vo.Settlement
JSON Parseable constructor
Settlement(JwtClaims) - Constructor for class org.lightningj.paywall.vo.Settlement
Parse from JWTClaims constructor
SETTLEMENT_DEFAULT_VALIDITY - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
settlementDate - Variable in class org.lightningj.paywall.vo.Invoice
 
SettlementResponse - Class in org.lightningj.paywall.spring.response
Value object used to return the current status of a settlement from the CheckSettlementController
SettlementResponse() - Constructor for class org.lightningj.paywall.spring.response.SettlementResponse
Empty Constructor
SettlementResponse(SettlementResult) - Constructor for class org.lightningj.paywall.spring.response.SettlementResponse
Constructor for settled invoices, of settlement is null is only settled field set to false.
SettlementResponse(JsonObject) - Constructor for class org.lightningj.paywall.spring.response.SettlementResponse
JSON Parseable constructor
SettlementResult - Class in org.lightningj.paywall.paymentflow
Value object returned by getSettlement call in a payment flow.
SettlementResult() - Constructor for class org.lightningj.paywall.paymentflow.SettlementResult
Empty Constructor
SettlementResult(Settlement, String) - Constructor for class org.lightningj.paywall.paymentflow.SettlementResult
Default Constructor
SettlementResult(JsonObject) - Constructor for class org.lightningj.paywall.paymentflow.SettlementResult
JSON Parseable constructor
setToken(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setToken(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Token
Sets the BTC Pay Server token.
setToken(String) - Method in class org.lightningj.paywall.paymentflow.Result
 
setToken(String) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
setToken(String) - Method in class org.lightningj.paywall.spring.response.SettlementResponse
 
setTransactionCurrency(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setTransactionSpeed(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setType(LightningEventType) - Method in class org.lightningj.paywall.lightninghandler.LightningEvent
 
setType(PaymentEventType) - Method in class org.lightningj.paywall.paymenthandler.PaymentEvent
 
setType(String) - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
setType(String) - Method in class org.lightningj.paywall.spring.response.SettlementResponse
 
setUnits(int) - Method in class org.lightningj.paywall.vo.OrderRequest
 
setUrl(String) - Method in class org.lightningj.paywall.btcpayserver.vo.Invoice
See property comment
setValidFrom(Instant) - Method in class org.lightningj.paywall.vo.Settlement
 
setValidUntil(Instant) - Method in class org.lightningj.paywall.vo.Settlement
 
setValue(long) - Method in class org.lightningj.paywall.spring.response.CryptoAmount
 
setValue(long) - Method in class org.lightningj.paywall.vo.amount.CryptoAmount
 
setValue(double) - Method in class org.lightningj.paywall.vo.amount.FiatAmount
 
setValue(String) - Method in class org.lightningj.paywall.vo.PaymentOption
 
sha256(byte[]) - Static method in class org.lightningj.paywall.util.DigestUtils
 
sign(PrivateKey, byte[]) - Method in class org.lightningj.paywall.util.Signer
Method to generate a cryptographic signature of the data using the specificed algorithm and the given curve of the given private key.
Signer - Class in org.lightningj.paywall.util
Help methods to ECDSA Sign a given text.
Signer(String) - Constructor for class org.lightningj.paywall.util.Signer
Constructor using the specified algoritm (one of ALG_ constants) when generating signatures.
Signer(String, String) - Constructor for class org.lightningj.paywall.util.Signer
Constructor using the specified algoritm (one of ALG_ constants) and provider when generating signatures.
significantData - Variable in class org.lightningj.paywall.vo.RequestData
 
significantRequestDataDigest(CachableHttpServletRequest) - Method in class org.lightningj.paywall.requestpolicy.BaseRequestPolicy
Method in charge of generating a digest of all significant data in a request that is needed to determine that the call is same that is invoiced
significantRequestDataDigest(CachableHttpServletRequest) - Method in class org.lightningj.paywall.requestpolicy.NoCustomRequestPolicy
This method is not used.
significantRequestDataDigest(CachableHttpServletRequest) - Method in interface org.lightningj.paywall.requestpolicy.RequestPolicy
Method in charge of generating a digest of all significant data in a request that is needed to determine that the call is same that is invoiced
SimpleBaseLNDLightningHandler - Class in org.lightningj.paywall.lightninghandler.lnd
Extension of BaseLNDLightningHandler that also manages APIs and opening/closing connection.
SimpleBaseLNDLightningHandler() - Constructor for class org.lightningj.paywall.lightninghandler.lnd.SimpleBaseLNDLightningHandler
 
sourceNode - Variable in class org.lightningj.paywall.vo.Invoice
 
SpringCachableHttpServletRequest - Class in org.lightningj.paywall.spring.util
A specialized version of Spring ContentCachingRequestWrapper that also implements CachableHttpServletRequest.
SpringCachableHttpServletRequest(HttpServletRequest) - Constructor for class org.lightningj.paywall.spring.util.SpringCachableHttpServletRequest
Create a new SpringCachableHttpServletRequest for the given servlet request.
SpringCachableHttpServletRequest(HttpServletRequest, int) - Constructor for class org.lightningj.paywall.spring.util.SpringCachableHttpServletRequest
Create a new SpringCachableHttpServletRequest for the given servlet request.
SpringDefaultFileKeyManager - Class in org.lightningj.paywall.spring
Spring implementation of Default File KeyManager.
SpringDefaultFileKeyManager() - Constructor for class org.lightningj.paywall.spring.SpringDefaultFileKeyManager
 
SpringLNDLightningHandler - Class in org.lightningj.paywall.spring
Spring implementation of LND Lightning Handler.
SpringLNDLightningHandler() - Constructor for class org.lightningj.paywall.spring.SpringLNDLightningHandler
 
SpringLocalPaymentFlowManager - Class in org.lightningj.paywall.spring.local
A Spring implementation of local mode payment flow manager.
SpringLocalPaymentFlowManager() - Constructor for class org.lightningj.paywall.spring.local.SpringLocalPaymentFlowManager
 
SpringPaymentHandler - Class in org.lightningj.paywall.spring
A Spring bean enhanced base Payment Handler the implementing application should inherit.
SpringPaymentHandler() - Constructor for class org.lightningj.paywall.spring.SpringPaymentHandler
 
SpringPaywallExceptionHandler - Class in org.lightningj.paywall.spring
Default Spring implementation of PaywallExceptionHandler
SpringPaywallExceptionHandler() - Constructor for class org.lightningj.paywall.spring.SpringPaywallExceptionHandler
 
sslContext - Variable in class org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender
 
StandardPaymentData - Interface in org.lightningj.paywall.paymenthandler.data
A Standard PaymentData contains most of the needed data fields to be stored in a normal lightning related invoicing solution.
STATUS_OK - Static variable in class org.lightningj.paywall.spring.response.Response
 
subscribe(String, String) - Method in class org.lightningj.paywall.spring.local.LocalWebSocketController
Subscribe method in charge of handling web socket connection and setup.
SYMMENTRIC_FILENAME - Static variable in class org.lightningj.paywall.keymgmt.DefaultFileKeyManager
 
SymmetricKeyManager - Interface in org.lightningj.paywall.keymgmt
Base interface for a KeyManager in charge of maintaining symmetric keys.
SymmetricKeyTokenGenerator - Class in org.lightningj.paywall.tokengenerator
Token Manager to generate token using symmetric key manager.
SymmetricKeyTokenGenerator(SymmetricKeyManager) - Constructor for class org.lightningj.paywall.tokengenerator.SymmetricKeyTokenGenerator
 
synchronousLndAPI - Variable in class org.lightningj.paywall.lightninghandler.lnd.SimpleBaseLNDLightningHandler
 

T

tademo() - Method in class org.lightningj.paywall.paywalltademo.TADemoRestController
REST Endpoint that has a non pay per request PaymentRequired annotation.
tademoNoPayment() - Method in class org.lightningj.paywall.paywalltademo.TADemoRestController
Same REST Endpoint without payment required
TADemoRestController - Class in org.lightningj.paywall.paywalltademo
Proof of Concept REST controller with @PaymentRequired Mappings returning TA Prediction in json format on
TADemoRestController() - Constructor for class org.lightningj.paywall.paywalltademo.TADemoRestController
 
TADemoResult - Class in org.lightningj.paywall.paywalltademo
Response object used by TADemoRestController to generate JSON Data.
TADemoResult(long, String, boolean) - Constructor for class org.lightningj.paywall.paywalltademo.TADemoResult
 
toJson() - Method in class org.lightningj.paywall.JSONParsable
Help method to convert object into JSON as a JsonObjectBuilder.
toJsonAsString(boolean) - Method in class org.lightningj.paywall.JSONParsable
Help method to convert the data to a String representation.
toJsonObject(byte[]) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerResponseParser
 
Token - Class in org.lightningj.paywall.btcpayserver.vo
Value object class representing one serializable Token.
Token(String, String, Instant, BTCPayServerFacade) - Constructor for class org.lightningj.paywall.btcpayserver.vo.Token
Default constructor for a BTC Pay Server Token
Token(String, String, BTCPayServerFacade) - Constructor for class org.lightningj.paywall.btcpayserver.vo.Token
Constructor when creating a Token for fetching from BTC Pay SErver
Token(JsonObject) - Constructor for class org.lightningj.paywall.btcpayserver.vo.Token
 
Token() - Constructor for class org.lightningj.paywall.btcpayserver.vo.Token
Empty Constructor
tokenClaims - Variable in class org.lightningj.paywall.paymentflow.BasePaymentFlow
 
TokenContext - Class in org.lightningj.paywall.tokengenerator
Cryptographic context specific for token generation specifying which type of token about to be generated.
TokenException - Exception in org.lightningj.paywall.tokengenerator
Exception thrown by TokenGenerator if verification of a token failed.
TokenException(String, TokenException.Reason) - Constructor for exception org.lightningj.paywall.tokengenerator.TokenException
Exception thrown by TokenGenerator if verification of a token failed.
TokenException(String, Throwable, TokenException.Reason) - Constructor for exception org.lightningj.paywall.tokengenerator.TokenException
Exception thrown by TokenGenerator if verification of a token failed.
TokenException.Reason - Enum in org.lightningj.paywall.tokengenerator
A List of reasons on why that was wrong with to token.
TokenGenerator - Interface in org.lightningj.paywall.tokengenerator
Interface for Token Generator in charge of generating different types of Tokens throughout the systems such as pre image data, JSON Web Tokens etc.
toPreImageData() - Method in class org.lightningj.paywall.vo.PreImageOrder
Help method to convert the order to a pre image data.
toSIN(String) - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerHelper
Method to generate a SIN for a given EC Public Key encoded in hex format.
toString() - Method in enum org.lightningj.paywall.btcpayserver.BTCPayServerFacade
 
toString() - Method in class org.lightningj.paywall.btcpayserver.BTCPayServerKeyContext
 
toString() - Method in class org.lightningj.paywall.JSONParsable
Converts data content to pretty printed Json string.
toString() - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.ArticleData
 
toString() - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPerRequestPaymentData
 
toString() - Method in class org.lightningj.paywall.spring.APIError
 
toString() - Method in class org.lightningj.paywall.spring.response.CryptoAmount
 
toString() - Method in class org.lightningj.paywall.spring.response.InvoiceResponse
 
toString() - Method in class org.lightningj.paywall.spring.response.NodeInfo
 
toString() - Method in class org.lightningj.paywall.springboot2.paymenthandler.ArticleData
 
toString() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoFullPaymentData
 
toString() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoMinimalPaymentData
 
toString() - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPerRequestPaymentData
 
toString() - Method in class org.lightningj.paywall.tokengenerator.TokenContext
 
trigger1() - Method in class org.lightningj.paywall.springboot2.test.TriggerController
 
trigger2() - Method in class org.lightningj.paywall.springboot2.test.TriggerController
 
TriggerController - Class in org.lightningj.paywall.springboot2.test
 
TriggerController() - Constructor for class org.lightningj.paywall.springboot2.test.TriggerController
 
type - Variable in class org.lightningj.paywall.lightninghandler.LightningEvent
 
type - Variable in class org.lightningj.paywall.paymenthandler.PaymentEvent
 
TYPE - Static variable in class org.lightningj.paywall.spring.response.InvoiceResponse
 
TYPE - Static variable in class org.lightningj.paywall.spring.response.SettlementResponse
 
type - Variable in class org.lightningj.paywall.vo.amount.Amount
 

U

unregisterAfterEvent() - Method in class org.lightningj.paywall.paymenthandler.BasePaymentListener
 
unregisterAfterEvent() - Method in interface org.lightningj.paywall.paymenthandler.PaymentListener
 
unregisterListener(LightningEventListener) - Method in interface org.lightningj.paywall.lightninghandler.LightningHandler
Method to remove a listener from the list of event listeners of events related to adding or settling invoices.
unregisterListener(LightningEventListener) - Method in class org.lightningj.paywall.lightninghandler.lnd.BaseLNDLightningHandler
Method to remove a listener from the list of event listeners of events related to adding or settling invoices.
unregisterListener(PaymentListener) - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
Method to remove the listener to the set of listeners listening on payment events.
unregisterListener(PaymentListener) - Method in interface org.lightningj.paywall.paymenthandler.PaymentHandler
Method to remove the listener to the set of listeners listening on payment events.
unregisterListener(T) - Method in class org.lightningj.paywall.spring.websocket.BaseWebSocketSettledHandler
Abstract method to unregister in related event handler.
unregisterListener(PaymentListener) - Method in class org.lightningj.paywall.spring.websocket.WebSocketSettledPaymentHandler
 
unregisterPaymentListener(String) - Method in class org.lightningj.paywall.spring.websocket.BaseWebSocketSettledHandler
Method that unregister the related payment listener and releases all related resources.
updatePaymentData(PaymentEventType, PaymentData, LightningHandlerContext) - Method in class org.lightningj.paywall.paymenthandler.BasePaymentHandler
Method called on update events about a given payment data.
updatePaymentData(PaymentEventType, PaymentData, LightningHandlerContext) - Method in class org.lightningj.paywall.paywalltademo.paymenthandler.DemoPaymentHandler
Method called on update events about a given payment data.
updatePaymentData(PaymentEventType, PaymentData, LightningHandlerContext) - Method in class org.lightningj.paywall.springboot2.paymenthandler.DemoPaymentHandler
Method called on update events about a given payment data.
UrlAndMethod - Class in org.lightningj.paywall.requestpolicy
Policy that checks the URL and Method of a request.
UrlAndMethod() - Constructor for class org.lightningj.paywall.requestpolicy.UrlAndMethod
 
UrlMethodAndParameters - Class in org.lightningj.paywall.requestpolicy
Policy that checks the URL and Method and all parameters of a request.
UrlMethodAndParameters() - Constructor for class org.lightningj.paywall.requestpolicy.UrlMethodAndParameters
 

V

validFrom - Variable in class org.lightningj.paywall.vo.Settlement
 
validUntil - Variable in class org.lightningj.paywall.vo.Settlement
 
value - Variable in class org.lightningj.paywall.vo.amount.CryptoAmount
 
value - Variable in class org.lightningj.paywall.vo.PaymentOption
 
valueOf(String) - Static method in enum org.lightningj.paywall.btcpayserver.BTCPayServerFacade
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender.METHOD
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.lightningj.paywall.keymgmt.Context.KeyUsage
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.lightningj.paywall.lightninghandler.LightningEventType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.lightningj.paywall.paymentflow.ExpectedTokenType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.lightningj.paywall.paymentflow.PaymentFlowMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.lightningj.paywall.paymenthandler.PaymentEventType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.lightningj.paywall.requestpolicy.RequestPolicyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.lightningj.paywall.spring.response.Magnetude
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.lightningj.paywall.spring.response.NodeNetwork
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.lightningj.paywall.spring.util.RequestHelper.RequestType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.lightningj.paywall.tokengenerator.TokenException.Reason
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.lightningj.paywall.vo.amount.AmountType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.lightningj.paywall.vo.amount.Magnetude
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.lightningj.paywall.vo.NodeInfo.NodeNetwork
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.lightningj.paywall.btcpayserver.BTCPayServerFacade
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.lightningj.paywall.btcpayserver.BTCPayServerHTTPSender.METHOD
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.lightningj.paywall.keymgmt.Context.KeyUsage
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.lightningj.paywall.lightninghandler.LightningEventType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.lightningj.paywall.paymentflow.ExpectedTokenType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.lightningj.paywall.paymentflow.PaymentFlowMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.lightningj.paywall.paymenthandler.PaymentEventType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.lightningj.paywall.requestpolicy.RequestPolicyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.lightningj.paywall.spring.response.Magnetude
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.lightningj.paywall.spring.response.NodeNetwork
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.lightningj.paywall.spring.util.RequestHelper.RequestType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.lightningj.paywall.tokengenerator.TokenException.Reason
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.lightningj.paywall.vo.amount.AmountType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.lightningj.paywall.vo.amount.Magnetude
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.lightningj.paywall.vo.NodeInfo.NodeNetwork
Returns an array containing the constants of this enum type, in the order they are declared.
verify(PublicKey, byte[], byte[]) - Method in class org.lightningj.paywall.util.Signer
Help method to verify a signature.

W

WEBSOCKET_CHECK_SETTLEMENT_URL - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
WEBSOCKET_ENABLE - Static variable in class org.lightningj.paywall.spring.PaywallProperties
 
WebSocketSettledPaymentHandler - Class in org.lightningj.paywall.spring.websocket
A WebSocket specific implementation when listing of settled payment handler.
WebSocketSettledPaymentHandler() - Constructor for class org.lightningj.paywall.spring.websocket.WebSocketSettledPaymentHandler
 
WithBody - Class in org.lightningj.paywall.requestpolicy
Policy that checks the URL, Method, all parameters and full body data of a HTTP request.
WithBody() - Constructor for class org.lightningj.paywall.requestpolicy.WithBody
 
A B C D E F G H I J K L M N O P Q R S T U V W 
Skip navigation links