public class LicenceChecker extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
INSTALLATION_ID_KEY |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCodeForLicenceRetrieval(String component) |
static String |
getInstallationId() |
static LicenceChecker |
getLicenceChecker(String cmpName)
Creates a
LicenceChecker with default update
callback LicenceCheckerUpdateCallbackImpl for the
component which name was provided as parameter. |
static LicenceChecker |
getLicenceChecker(String cmpName,
LicenceCheckerUpdateCallback call)
Creates a
LicenceChecker with custom
implementation of LicenceCheckerUpdateCallback
interface for the component which name was provided as parameter. |
static Set<String> |
getLicencedComponents() |
String |
getLicenceDigest()
Returns Licence digest
|
static tigase.xml.Element |
getLicencingDetails(String component) |
Date |
getValidUntil()
Returns date until which licence is valid.
|
static void |
main(String[] args) |
Licence |
reloadLicenceFromServer() |
String |
toString() |
public static final String INSTALLATION_ID_KEY
public static LicenceChecker getLicenceChecker(String cmpName)
LicenceChecker with default update
callback LicenceCheckerUpdateCallbackImpl for the
component which name was provided as parameter. Component name will be
used to find licence file with the pattern of
etc/${cmpName}.licence
cmpName - name of the component for which
LicenceChecker will be instantiated.LicenceChecker for the given cmpNamepublic static LicenceChecker getLicenceChecker(String cmpName, LicenceCheckerUpdateCallback call)
LicenceChecker with custom
implementation of LicenceCheckerUpdateCallback
interface for the component which name was provided as parameter.
Component name will be used to find licence file with the pattern of
etc/${cmpName}.licence
cmpName - name of the component for which
LicenceChecker will be instantiated.call - custom implementation of
LicenceCheckerUpdateCallbackLicenceChecker for the given cmpNamepublic Licence reloadLicenceFromServer() throws NoSuchAlgorithmException, IOException, InvalidKeySpecException
public static String getInstallationId()
public static tigase.xml.Element getLicencingDetails(String component)
public static String getCodeForLicenceRetrieval(String component) throws Exception
Exceptionpublic String getLicenceDigest()
Date representation of licence expiration date.public Date getValidUntil()
Date representation of licence expiration date.public static void main(String[] args)
Copyright © 2011–2020 Tigase. All rights reserved.