bllmplugin/javadoc/bllm/LicenseManager

LicenseManager (bllm 0.1 API)
bllm

Class LicenseManager

  • java.lang.Object
    • bllm.LicenseManager


  • public class LicenseManager
    extends java.lang.Object
    • 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()
Share