public final class NLicense extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
activateOnline(String id)
Activates specified Id (that was obtained through calling GenerateId method or using ActivationWizardDotNet) and obtains license file for this Id via internet.
|
static void |
add(String license)
Adds the license string to be activated.
|
static void |
deactivateOnline(String license)
Deactivates specified license via internet.
|
static void |
deactivateOnline(String idGenPath,
String license)
Deactivates specified license via internet.
|
static void |
deactivateOnlineWithID(String license,
String deactivationID)
Deactivates specified license via internet using specified deactivation Id.
|
static String |
generateDeactivationID(String productName)
Generates deactivation Id for specified provided product on current computer.
|
static String |
generateDeactivationID(String idGenPath,
String productName)
Generates deactivation Id for specified provided product on current computer.
|
static String |
generateDeactivationIDForLicense(String license)
Generates deactivation Id for specified license on current computer.
|
static String |
generateDeactivationIDForLicense(String idGenPath,
String license)
Generates deactivation Id for specified license on current computer.
|
static String |
generateID(String serialNumber)
Generates Id for activation from serial number for a particular machine.
|
static String |
generateID(String idGenPath,
String serialNumber)
Generates Id for activation from serial number for a particular machine.
|
static NLicenseInfo |
getLicenseInfoOnline(String license)
Retrieves license information via internet.
|
static NLicenseInfo |
getObtainedLicenseInfo(String product)
Retrieves license information of specified product.
|
static NLicenseInfo |
getObtainedLicenseInfoForComponent(String component)
Retrieves license information of specified component.
|
static boolean |
isComponentActivated(String name)
Checks if component specified by name is activated.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
static boolean |
obtain(String address,
int port,
String products)
Obtains license.
|
static boolean |
obtain(String address,
String port,
String products)
Obtains license.
|
static boolean |
obtainComponents(String address,
int port,
String components)
Obtains component license from the specified server.
|
static boolean |
obtainComponents(String address,
String port,
String components)
Obtains license.
|
static void |
release(String products)
Releases license.
|
static void |
releaseComponents(String components)
Releases license.
|
public static com.neurotec.lang.NType nativeTypeOf()
public static boolean obtain(String address, String port, String products) throws IOException
address - Server address where license manager
is installed as a server. "/local"
is used for this parameter when
license is tied with the computer
using serial number.port - License manager server port.products - String which contains license name.IOExceptionpublic static boolean obtain(String address, int port, String products) throws IOException
address - Server address where license manager
is installed as a server. "/local"
is used for this parameter when
license is tied with the computer
using serial number.port - License manager server port.products - String which contains license name.IOExceptionpublic static boolean obtainComponents(String address, String port, String components) throws IOException
address - Server address where license manager
is installed as a server. "/local"
is used for this parameter when
license is tied with the computer
using serial number.port - License manager server port.components - String which contains license name.IOExceptionpublic static boolean obtainComponents(String address, int port, String components) throws IOException
address - Server address where license
manager is installed as a server.
"/local" is used for this
parameter when license is tied with
the computer using serial number.port - License manager server port (String value).components - String which contains component license name.IOExceptionpublic static void release(String products) throws IOException
products - Name of a product to release its license.IOExceptionpublic static void releaseComponents(String components) throws IOException
components - Name of a component to release its license.
Remarks: This method should be called as many times as method obtainComponents was called.IOExceptionpublic static void add(String license) throws IOException
license - String containing license to be activated.IOExceptionpublic static NLicenseInfo getLicenseInfoOnline(String license) throws IOException
license - String that contains name of a license to retrieve license information.IOExceptionpublic static NLicenseInfo getObtainedLicenseInfo(String product) throws IOException
product - String that contains name of a product to retrieve license informationIOExceptionpublic static NLicenseInfo getObtainedLicenseInfoForComponent(String component) throws IOException
component - String that contains name of a component to retrieve license information.IOExceptionpublic static boolean isComponentActivated(String name) throws IOException
name - String which contains component name.IOExceptionpublic static String generateID(String serialNumber) throws IOException
serialNumber - Serial number used for generating Id.IOExceptionpublic static String generateID(String idGenPath, String serialNumber) throws IOException
idGenPath - Path to Id generator program.serialNumber - Serial number used for generating Id.IOExceptionpublic static String generateDeactivationID(String productName) throws IOException
productName - Long product name (i.e. Face Extractor, Finger Matcher and etc.).IOExceptionpublic static String generateDeactivationID(String idGenPath, String productName) throws IOException
idGenPath - Path to Id generator program.productName - Long product name (i.e. Face Extractor, Finger Matcher and etc.).IOExceptionpublic static String generateDeactivationIDForLicense(String license) throws IOException
license - License to be deactivated.IOExceptionpublic static String generateDeactivationIDForLicense(String idGenPath, String license) throws IOException
idGenPath - Path to Id generator program.license - License to be deactivated.IOExceptionpublic static String activateOnline(String id) throws IOException
id - Id generated from serial number.IOExceptionpublic static void deactivateOnline(String license) throws IOException
license - String that contains activated license's full product name OR license file content.IOExceptionpublic static void deactivateOnline(String idGenPath, String license) throws IOException
idGenPath - Path to Id generator program.license - String that contains activated license name.IOExceptionpublic static void deactivateOnlineWithID(String license, String deactivationID) throws IOException
license - String that contains activated license name.deactivationID - Deactivation Id.IOExceptionCopyright © 2016 Neurotechnology. All rights reserved.