bllm
Class LicenseManager
- java.lang.Object
-
- bllm.LicenseManager
-
public class LicenseManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field and Description double
btcPriceInDollars
double
ltcPriceInDollars
-
Constructor Summary
Constructors Constructor and Description LicenseManager(DialogLicenseManager _parent, java.lang.String _licenseFileName, java.lang.String _privateKey)
Class with the business logic.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
evaluateTransaction(java.lang.String transactionID)
Determine if the transaction is valid.double
geBTCSubmitted()
long
getActualConfirmations()
double
getActualPayment()
double
getCost()
double
getCostDollars()
long
getDeltaTime()
double
getDollarSubmitted()
boolean
getDoubleSpend()
java.time.LocalDate
getLicenseGrantedDate()
java.lang.String
getLicenseID()
int
getLicenseRemainingDays()
int
getLicenseStatus()
Query LicenseManager.getLicenseStatus() upon startup of you application to determine how to handle the invocation of your app.double
getLTCSubmitted()
java.lang.String
getMerchantWalletID()
double
getRequestedPayment()
long
getRequiredConfirmations()
int
getTransactionExpiresInHours()
java.lang.String
getTransactionID()
int
getTrialExpiresInDays()
int
getTrialRemainingDays()
java.lang.String
getUnitsOfCost()
java.lang.String
getUnitsOfRequestedPayment()
boolean
getWalletIDnotFound()
void
runCostCalculations()
cost calculations require an internet connection.
-
-
-
Field Detail
-
btcPriceInDollars
public double btcPriceInDollars
-
ltcPriceInDollars
public double ltcPriceInDollars
-
-
Constructor Detail
-
LicenseManager
public LicenseManager(DialogLicenseManager _parent, java.lang.String _licenseFileName, java.lang.String _privateKey)
Class with the business logic. Instantiate when you launch your application The LicenseManager will read the license.ser file and determine, based on dates and transaction parameters, whether the license is valid or not- Parameters:
_parent
- The parent GUI that will interact with user_licenseFileName
- shoud be license.ser; but you must provide full path to a location the user has read write access to._privateKey
- for encryption. Can be specified in BLLM License Key Generator
-
-
Method Detail
-
runCostCalculations
public void runCostCalculations()
cost calculations require an internet connection. run only if needed
-
evaluateTransaction
public int evaluateTransaction(java.lang.String transactionID)
Determine if the transaction is valid.- Parameters:
transactionID
- the transaction ID obtained from the block explorer after a payment is made. Note that make the payment is independent of the licensing module.
-
getLicenseStatus
public int getLicenseStatus()
Query LicenseManager.getLicenseStatus() upon startup of you application to determine how to handle the invocation of your app.
-
getCost
public double getCost()
-
getUnitsOfCost
public java.lang.String getUnitsOfCost()
-
getCostDollars
public double getCostDollars()
-
getActualPayment
public double getActualPayment()
-
getDollarSubmitted
public double getDollarSubmitted()
-
getDoubleSpend
public boolean getDoubleSpend()
-
getDeltaTime
public long getDeltaTime()
-
getActualConfirmations
public long getActualConfirmations()
-
getLTCSubmitted
public double getLTCSubmitted()
-
geBTCSubmitted
public double geBTCSubmitted()
-
getRequestedPayment
public double getRequestedPayment()
-
getUnitsOfRequestedPayment
public java.lang.String getUnitsOfRequestedPayment()
-
getTransactionExpiresInHours
public int getTransactionExpiresInHours()
-
getWalletIDnotFound
public boolean getWalletIDnotFound()
-
getTrialExpiresInDays
public int getTrialExpiresInDays()
-
getTrialRemainingDays
public int getTrialRemainingDays()
-
getLicenseRemainingDays
public int getLicenseRemainingDays()
-
getMerchantWalletID
public java.lang.String getMerchantWalletID()
-
getLicenseID
public java.lang.String getLicenseID()
-
getRequiredConfirmations
public long getRequiredConfirmations()
-
getTransactionID
public java.lang.String getTransactionID()
-
getLicenseGrantedDate
public java.time.LocalDate getLicenseGrantedDate()
-
-