public class Metered extends Object
Short example usage:
final Metered metered = new Metered();
metered.setMeteredKey(publicKey, privateKey);
| Constructor and Description |
|---|
Metered()
Initializes a new instance of the Metered class.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
getConsumptionCredit()
Retrieves amount of used credits.
|
static double |
getConsumptionQuantity()
Gets consumption quantity.
|
void |
setMeteredKey(String publicKey,
String privateKey)
Applies metered license using public and private keys.
|
public static double getConsumptionCredit()
Retrieves amount of used credits.
ComparisonException - if any problems appearedpublic static double getConsumptionQuantity()
Gets consumption quantity.
ComparisonException - if any problems appearedpublic final void setMeteredKey(String publicKey, String privateKey)
Applies metered license using public and private keys.
Example usage:
final Metered metered = new Metered();
metered.setMeteredKey(publicKey, privateKey);
publicKey - Public keyprivateKey - Private keyIllegalArgumentException - if publicKey or privateKey is nullcom.aspose.ms.System.InvalidOperationException - if authentication was failedCopyright © 2024. All rights reserved.