
LicenseValidationException gets thrown instead:
#RUN KEYGEN.JAR LICENSE KEY#
If a license key is installed, but the encoded license bean is invalid, then a $ java -jar keymgr/target/*-keymgr-*-standalone.jar verifyĪt .TrueLicenseManagementContext$TrueLicenseManagerParameters$TrueLicenseManager.verify(TrueLicenseManagementContext.java:766)Īt .LicenseManager.verify(LicenseManager.java:99)Īt .Main$6.run(Main.java:59)Īt .TrueLicenseManagementContext$TrueLicenseManagerParameters$CachingLicenseManager.validate(TrueLicenseManagementContext.java:662)Īt .TrueLicenseManagementContext$TrueLicenseManagerParameters$TrueLicenseManager.lambda$verify$3(TrueLicenseManagementContext.java:768) You can verify the installed license key using: LicenseManagementException: .api.NoContentException: Cannot locate the key "StarGazer 2020" in the user preferences node for the absolute path "/com/company/product/keymgr".Īt .TrueLicenseManagementContext.callChecked(TrueLicenseManagementContext.java:83)Īt .TrueLicenseManagementContext.access$800(TrueLicenseManagementContext.java:37)Īt .TrueLicenseManagementContext$TrueLicenseManagerParameters$TrueLicenseManager.load(TrueLicenseManagementContext.java:758)Īt .LicenseManager.load(LicenseManager.java:94)Īt .Main$5.run(Main.java:54)Īt .Main.process(Main.java:120)Īt .Main.processAndHandleExceptions(Main.java:102)Īt .Main.main(Main.java:96)Ĭaused by: .api.NoContentException: Cannot locate the key "StarGazer 2020" in the user preferences node for the absolute path "/com/company/product/keymgr".Īt .(PreferencesStore.java:80)Īt .(Store.java:76)Īt .$input$0(PreferencesStore.java:43)Īt .$map$0(Socket.java:136)Īt .Filters$1.lambda$input$1(Filters.java:51)Īt .(Socket.java:123)Īt .jackson.JsonCodec$1.decode(JsonCodec.java:44)Īt .TrueLicenseManagementContext$TrueLicenseManagerParameters$TrueLicenseManager.repositoryModel(TrueLicenseManagementContext.java:810)Īt .TrueLicenseManagementContext$TrueLicenseManagerParameters$TrueLicenseManager.repositor圜ontroller(TrueLicenseManagementContext.java:804)Īt .TrueLicenseManagementContext$TrueLicenseManagerParameters$thenticate(TrueLicenseManagementContext.java:800)Īt .TrueLicenseManagementContext$TrueLicenseManagerParameters$thenticate(TrueLicenseManagementContext.java:673)Īt .TrueLicenseManagementContext$TrueLicenseManagerParameters$codeLicense(TrueLicenseManagementContext.java:796)Īt .TrueLicenseManagementContext$TrueLicenseManagerParameters$TrueLicenseManager.lambda$load$2(TrueLicenseManagementContext.java:760)Īt .TrueLicenseManagementContext.callChecked(TrueLicenseManagementContext.java:79) $ java -jar keymgr/target/*-keymgr-*-standalone.jar load The standard input stream in JSON format, generate a V4 license key from it and print the encoded license bean to The output syntax conforms to the configured license key format.įor example, if the license key format is V4, then you can decode a license bean with the issuer property from You can specify the -output parameter in order to write the encoded license bean to a file or the standard output

Please refer to the Javadoc for the interface .License for a list of all properties. Java -jar keygen/target/*-keygen-*-standalone.jar generate product.lic -verbose true -input 2020", holder="CN=Christian Schlichtherle", issuer="CN=Company Inc.", issued=Sat May 23 18:55:08 CEST 2020, notBefore=Sat May 23 18:55:08 CEST 2020, notAfter=Sun May 23 18:55:08 CEST 2021, consumerType="User", consumerAmount=1, info=null] You can generate a license key with default properties as follows: # Generating A License Key # Using Default Properties You can override the default behavior by specifying If more than edition has been configured in the licensing schema, then aīy default, this command does not write debugging information to the standardĮrror stream. Specifying a dash (-) causes the standard output stream to be used The file identified by this path for subsequent editing and input to thisĬommand. If an is specified, then the license bean gets encoded to If no is specified, then a default license bean getsĬreated and transformed into the license key. Specifying a dash (-) causes the standard input stream to be used instead of aįile. If an is specified, then the license bean gets decodedįrom the file identified by this path and transformed into the license key.

is specified, then the generated license key gets saved to Generates a license key and prints its license bean to standard output.


$ java -jar keygen/target/*-keygen-*-standalone.jar help generate
