public class Metered extends Object
Provides methods to set metered key.
In this example, an attempt will be made to set metered public and private key[C#] Metered metered = new Metered(); metered.SetMeteredKey("PublicKey", "PrivateKey"); [Visual Basic] Dim metered As Metered = New Metered metered.SetMeteredKey("PublicKey", "PrivateKey")
the component jar file: Metered metered = new Metered(); metered.setMeteredKey("PublicKey", "PrivateKey");
Constructor and Description |
---|
Metered() |
Modifier and Type | Method and Description |
---|---|
static BigDecimal |
getConsumptionCredit()
Gets consumption credit.
|
static BigDecimal |
getConsumptionQuantity()
Gets consumption file size.
|
void |
resetMeteredKey()
Removes previously setup license.
|
void |
setMeteredKey(String publicKey,
String privateKey)
Sets metered public and private keys.
|
public static BigDecimal getConsumptionCredit() throws Exception
Gets consumption credit.
Exception
public static BigDecimal getConsumptionQuantity() throws Exception
Gets consumption file size.
Exception
public final void resetMeteredKey()
Removes previously setup license.
public final void setMeteredKey(String publicKey, String privateKey) throws Exception
Sets metered public and private keys.
publicKey
- The public key.privateKey
- The private key.
Exception
Copyright (c) 2002-2022 Aspose. All Rights Reserved.