com.groupdocs.editor.license.metered

Class Metered



  • 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
    
      <java>
      the component jar file:
      <pre>
     	Metered matered = new Metered();
     	matered.setMeteredKey("PublicKey", "PrivateKey");
      </pre>
      </java>
    
      

    • Constructor Detail

      • Metered

        public Metered()

        Initializes a new instance of this class.

    • Method Detail

      • getConsumptionQuantity

        public static BigDecimal getConsumptionQuantity()

        Gets consumption quantity

        Returns:
        consumption quantity
      • setMeteredKey

        public void setMeteredKey(String publicKey,
                         String privateKey)
                           throws Exception

        Sets metered public and private key

        Parameters:
        publicKey - public key
        privateKey - private key
        Throws:
        Exception