Class LicenseManager

  • public class LicenseManager
    extends Object
    • Constructor Detail

      • LicenseManager

        public LicenseManager()
    • Method Detail

      • validateLicense

        public static String validateLicense​(String charmVersion,
                                             License license,
                                             Runnable runIfInvalid)
        Checks the license with the license server and runs the runnable if it's invalid. If the license is found to be valid, it is saved in license.file. If that file exists, the server is not contacted again.
        charmVersion - the charm version for which the license is checked
        license - the license key that is validated
        runIfInvalid -
      • generateHash

        public static String generateHash​(String input)