Skip to content

zhoney/hugegraph-signature

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hugegraph-signature

Generate License

Execute com.baidu.hugegraph.cmd.GenerateLicense then it will output a license file specified by 'license_path' in config.

Install License

Implement LicenseManagerFactory:

public class LicenseManagerFactory {

    public static LicenseManager create(LicenseInstallParam param,
                                        VerifyCallback veryfyCallback) {
        return new TrueLicenseManager(param, veryfyCallback);
    }
}

Construct LicenseInstallParam from config file, then create LicenseManager from LicenseInstallParam, and call LicenseManager.installLicense() to install license.

LicenseInstallParam param = readFromJsonConfig("verify-license.json");
LicenseManager manager = LicenseManagerFactory.create(param, verifyCallback);
manager.installLicense();

About

license create

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages