Package org.bgerp.app.dist.lic
Class License
java.lang.Object
org.bgerp.app.dist.lic.License
License for plugins.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
check
(DynActionForm form) AddsLicenseEvent
toform
response case the license has error.boolean
Checks 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.boolean
byte[]
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:
null
on 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
AddsLicenseEvent
toform
response case the license has error.- Parameters:
form
-
-
checkSessionLimit
public boolean checkSessionLimit()Checks if count of logged in users is less that license limit. Whenerror
is not blank, returnstrue
to allow fix the license. Returntrue
when license check is disabled.- Returns:
- allowance to log in.
-
isCreatedToday
public boolean isCreatedToday()- Returns:
- is the license object created today.
-
toString
-