Package com.xebialabs.license.generator
Class LicenseGenerator
java.lang.Object
com.xebialabs.license.generator.LicenseGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyDefaults(com.xebialabs.license.LicensePropertyMap licenseProperties) static StringgenerateBase64License(com.xebialabs.license.LicenseType licenseVersion, com.xebialabs.license.LicensePropertyMap licenseProperties) static voidgenLicense(com.xebialabs.license.LicenseType licenseVersion, String file, com.xebialabs.license.LicensePropertyMap licenseProperties) This is the entry point for generating a license, as used by xl-download server.static voidstatic booleanvalidateLicense(String licenseFilename)
-
Constructor Details
-
LicenseGenerator
public LicenseGenerator()
-
-
Method Details
-
validateLicense
- Throws:
IOException
-
genLicense
public static void genLicense(com.xebialabs.license.LicenseType licenseVersion, String file, com.xebialabs.license.LicensePropertyMap licenseProperties) throws IOException, GeneralSecurityException This is the entry point for generating a license, as used by xl-download server.- Throws:
IOExceptionGeneralSecurityException
-
generateBase64License
public static String generateBase64License(com.xebialabs.license.LicenseType licenseVersion, com.xebialabs.license.LicensePropertyMap licenseProperties) throws NoSuchAlgorithmException, IOException, SignatureException, NoSuchProviderException, InvalidKeyException, InvalidKeySpecException -
main
- Throws:
IOExceptionGeneralSecurityException
-
applyDefaults
public static void applyDefaults(com.xebialabs.license.LicensePropertyMap licenseProperties)
-