Method Summary |
|
public boolean | cache() Returns true if the payment information should be stored
for the next time. |
public static PaymentInfo | createFromProperties(Properties jadProperties, Properties jarProperties) Creates an instance of the PaymentInfo class. |
public void | export(Writer os) Exports the payment information into the given character output stream. |
public int | getDbgAutoRequestMode() Returns the debug auto request mode setting. |
public boolean | getDbgFailIO() Test for the debug fail IO mode. |
public boolean | getDbgFailInitialize() Test for the debug fail initialize mode. |
public int | getDbgMissedTransactions() Returns the number of fake missed transactions that should be generated
when the application starts. |
public boolean | getDbgRandomTests() Test for the debug random tests mode. |
public int | getNumFeatures() Gets the number of features the application can request the user to pay
for. |
public int | getNumProviders() Returns the number of providers which can be used to pay for the
application features. |
public int | getPriceTagForFeature(int index) Returns the price tag for the given feature id. |
public ProviderInfo | getProvider(int index) Return the provider information for the given provider id. |
public Date | getUpdateDate() Returns the date of the last update or null if the payment
information has been never updated. |
public Date | getUpdateStamp() Gets the time stamp of last update. |
public String | getUpdateURL() Returns the URL of the payment update. |
public boolean | isDemoMode() Test for the debug demo mode. |
public boolean | needsUpdate() Test if the payment information can be used for payment as is or it
needs to be updated first from the update URL. |
public void | updatePaymentInfo(byte[] data, String charset) Validates the given payment update and if correct it updates the internal
state of the object accordingly. |
public static void | validateJadProperties(Properties jadProperties) Validates JAD properties. |