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 errorbooleanChecks if count of logged in users is less that license limit.getData()byte[]getError()License check resultbooleanbyte[]License content with signature on the endtoString()
-
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
- Returns:
- license content
-
getDigest
public byte[] getDigest()- Returns:
- digest for all the license's lines before lic.sign.signature
-
getError
-
getPlugins
-
sign
License content with signature on the end- Parameters:
keyFilePath- file of Java resource path to SSH private key filekeyFilePswd- 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
-