Package org.bgerp.app.dist.lic
Class License
java.lang.Object
org.bgerp.app.dist.lic.License
License for plugins.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
getDataLicense content.- Returns:
 
- 
getDigestpublic byte[] getDigest()Digest for all the license's lines before lic.sign.signature.- Returns:
 
- 
getErrorLicense check result.- Returns:
- nullon correct result, or error text.
 
- 
getPluginsPlugin IDs.- Returns:
 
- 
signLicense 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
 
- 
checkAddsLicenseEventtoformresponse case the license has error.- Parameters:
- form-
 
- 
checkSessionLimitpublic 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.
 
- 
isCreatedTodaypublic boolean isCreatedToday()- Returns:
- is the license object created today.
 
- 
toString
 
-