com.groupdocs.foundation.license.aspose.metered

Class Metered

  • Direct Known Subclasses:
    Metered


    public abstract class Metered
    extends Object
    Provides methods to set metered key.
    • Constructor Detail

      • Metered

        public Metered()
        Initializes a new instance of this class.
    • Method Detail

      • getConsumptionQuantity

        public static double getConsumptionQuantity()
                                             throws Exception
        Gets consumption quantity
        Returns:
        consumption quantity
        Throws:
        Exception
      • setMeteredKey

        protected void setMeteredKey(String publicKey,
                         String privateKey)
                              throws Exception
        Sets metered public and private key
        Parameters:
        publicKey - public key
        privateKey - private key
        Throws:
        Exception