Class LicenseGenerator


  • public class LicenseGenerator
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void applyDefaults​(com.xebialabs.license.LicensePropertyMap licenseProperties)  
      static java.lang.String generateBase64License​(com.xebialabs.license.LicenseType licenseVersion, com.xebialabs.license.LicensePropertyMap licenseProperties)  
      static void genLicense​(com.xebialabs.license.LicenseType licenseVersion, java.lang.String file, com.xebialabs.license.LicensePropertyMap licenseProperties)
      This is the entry point for generating a license, as used by xl-download server.
      static void main​(java.lang.String[] args)  
      static boolean validateLicense​(java.lang.String licenseFilename)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LicenseGenerator

        public LicenseGenerator()
    • Method Detail

      • validateLicense

        public static boolean validateLicense​(java.lang.String licenseFilename)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • genLicense

        public static void genLicense​(com.xebialabs.license.LicenseType licenseVersion,
                                      java.lang.String file,
                                      com.xebialabs.license.LicensePropertyMap licenseProperties)
                               throws java.io.IOException,
                                      java.security.GeneralSecurityException
        This is the entry point for generating a license, as used by xl-download server.
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException
      • generateBase64License

        public static java.lang.String generateBase64License​(com.xebialabs.license.LicenseType licenseVersion,
                                                             com.xebialabs.license.LicensePropertyMap licenseProperties)
                                                      throws java.security.NoSuchAlgorithmException,
                                                             java.io.IOException,
                                                             java.security.SignatureException,
                                                             java.security.NoSuchProviderException,
                                                             java.security.InvalidKeyException,
                                                             java.security.spec.InvalidKeySpecException
        Throws:
        java.security.NoSuchAlgorithmException
        java.io.IOException
        java.security.SignatureException
        java.security.NoSuchProviderException
        java.security.InvalidKeyException
        java.security.spec.InvalidKeySpecException
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException,
                                java.security.GeneralSecurityException
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException
      • applyDefaults

        public static void applyDefaults​(com.xebialabs.license.LicensePropertyMap licenseProperties)