Package org.bgerp.app.dist.lic
Class License
java.lang.Object
org.bgerp.app.dist.lic.License
License for plugins.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck(DynActionForm form) AddsLicenseEventtoformresponse case the license has error.booleanChecks if count of logged in users is less that license limit.getData()License content.byte[]Digest for all the license's lines before lic.sign.signature.getError()License check result.Plugin IDs.booleanbyte[]License content with signature on the end.toString()
-
Field Details
-
FILE_NAME
- See Also:
-
KEY_LIC_ID
- See Also:
-
KEY_LIC_EMAIL
- See Also:
-
KEY_LIC_LIMIT
- See Also:
-
KEY_LIC_DATE_TO
- See Also:
-
KEY_LIC_PLUGIN
- See Also:
-
KEY_LIC_SIGN
- See Also:
-
-
Constructor Details
-
License
-
-
Method Details
-
getData
License content.- Returns:
-
getDigest
public byte[] getDigest()Digest for all the license's lines before lic.sign.signature.- Returns:
-
getError
License check result.- Returns:
nullon correct result, or error text.
-
getPlugins
Plugin IDs.- Returns:
-
sign
License content with signature on the end.- Parameters:
keyFilePath- file of Java resource path to SSH private key file.keyFilePswd- password to SSH private key file,null- no password is used.- Returns:
- UTF-8 encoded signed license.
- Throws:
Exception
-
check
AddsLicenseEventtoformresponse case the license has error.- Parameters:
form-
-
checkSessionLimit
public boolean checkSessionLimit()Checks if count of logged in users is less that license limit. Whenerroris not blank, returnstrueto allow fix the license. Returntruewhen license check is disabled.- Returns:
- allowance to log in.
-
isCreatedToday
public boolean isCreatedToday()- Returns:
- is the license object created today.
-
toString
-