Package ch.autumo.commons.application
Interface LicensedApplication
- All Superinterfaces:
SecureApplication
- All Known Implementing Classes:
BaseApp
Licensed application - every licensed application must implement this and
providing the following constructor:
- public MyApplication(
- public MyApplication(
RegistrationVersion
)-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
autumo products license server address from 'base.ifc'.static final String
autumo products license server API key from 'base.ifc'.static final String
Base config file.static final String
Base config jar.static final String
Default config file.static final String
Interface config path.static final String
License registration file with temporary extension.static final String
Inline checks key from 'base.ifc'.static final String
Allowed lic key chars.static final String
License info file.static final String
License path.static final String
License type key from 'base.ifc'.static final String
Product key from 'base.ifc'.static final String
Runtime type key from 'base.ifc'.Fields inherited from interface ch.autumo.commons.security.SecureApplication
SEC_KEY_SEED
-
Method Summary
Modifier and TypeMethodDescriptionGet API key for online license server.Get application title.Get current application version as string "x.x.x".Get inline checks.Get local path to license.Get license info title - unique for every application.Get license server URL.Get license type.Every product has a unique key.Returns the registration version for this application.Get runtime type.void
initializeBaseConfig
(String rootFolder) Initializes the base configuration if any ('base.ifc').boolean
Identifies if this application is allowed to read environment data during online registration.void
setAllowed2ReadEnvData
(boolean allow) Set application to allow to read user's environment data through online registration process.Methods inherited from interface ch.autumo.commons.security.SecureApplication
getInternalSecurityKey, getPassphrase, getUniqueSecurityKey
-
Field Details
-
INLINE_CHECKS_KEY
Inline checks key from 'base.ifc'.- See Also:
-
LIC_TYPE_KEY
License type key from 'base.ifc'.- See Also:
-
RT_TYPE_KEY
Runtime type key from 'base.ifc'.- See Also:
-
PROD_KEY
Product key from 'base.ifc'.- See Also:
-
AP_LS_AD_KEY
autumo products license server address from 'base.ifc'.- See Also:
-
AP_LS_AK_KEY
autumo products license server API key from 'base.ifc'.- See Also:
-
FILE_REG_SOURCE
License registration file with temporary extension.- See Also:
-
LIC_INFO_FILE
License info file.- See Also:
-
LIC_PATH
License path.- See Also:
-
CONFIG_PATH
Interface config path.- See Also:
-
CONFIG_DEFAULT_FILE
Default config file.- See Also:
-
BASE_CFG_FILE
Base config file.- See Also:
-
BASE_CFG_JAR
Base config jar.- See Also:
-
LIC_CHARS
Allowed lic key chars.- See Also:
-
-
Method Details
-
initializeBaseConfig
Initializes the base configuration if any ('base.ifc'). The root folder is usually base application configuration path where the file application configuration 'app.cfg' lies. It is given as a parameter, because the base configuration will possibly be loaded on demand in different context (e.g. registration tool, GUI desktop, etc.). In some cases you might want to overwrite this method to get access to more encrypted base configuration values. The encrypted values follow the encryption scheme ofEncoder
. Use this encoder with the 'internal'-option to get such values.- Parameters:
rootFolder
- base configuration root folder or null when the configuration context must be resolved differently, e.g. within a desktop application.- Throws:
Exception
- if initializarion fails
-
getRegVersion
RegistrationVersion getRegVersion()Returns the registration version for this application. This version is usually lower than the current application version; It is the base or main release that can have minor/major updates. Part of the whole licensing mechanism, if applied.- Returns:
- registration version
-
getAppTitle
String getAppTitle()Get application title. Part of the online license check, if applied.- Returns:
- application title
-
getAppVersion
String getAppVersion()Get current application version as string "x.x.x". It is also used for online upgrade checks, if applied.- Returns:
- current application version
-
getProductKey
String getProductKey()Every product has a unique key. Part of the online license check, if applied.- Returns:
- product key
-
getLicInfoTitle
String getLicInfoTitle()Get license info title - unique for every application.- Returns:
- license info title
-
isAllowed2ReadEnvData
boolean isAllowed2ReadEnvData()Identifies if this application is allowed to read environment data during online registration.- Returns:
- true if so
-
setAllowed2ReadEnvData
void setAllowed2ReadEnvData(boolean allow) Set application to allow to read user's environment data through online registration process.- Parameters:
allow
- allow to read client environment data
-
getRuntimeType
String getRuntimeType()Get runtime type. Part of the local runtime check.- Returns:
- RT type
- See Also:
-
getLicType
String getLicType()Get license type. Part of the online license check, if applied.- Returns:
- lic type
-
getInlineChecks
InlineChecks getInlineChecks()Get inline checks.- Returns:
- inline checks
-
getLicSrvUrl
String getLicSrvUrl()Get license server URL.- Returns:
- license serevr URL
-
getApiKey
String getApiKey()Get API key for online license server.- Returns:
- API key
-
getLicensePath
String getLicensePath()Get local path to license.- Returns:
- license path
-