public class DocumentLicense
extends java.lang.Object
| Constructor and Description |
|---|
DocumentLicense() |
| Modifier and Type | Method and Description |
|---|---|
static void |
activate(java.lang.String hardwareCode,
java.lang.String login,
java.lang.String password,
java.lang.String productReference,
java.lang.String commentary,
java.lang.String path)
Activates a license using customer credentials and a product reference and saves the license to a file.
|
static void |
activateActivationKey(java.lang.String hardwareCode,
java.lang.String activationKey,
java.lang.String commentary,
java.lang.String path)
Activates a license file using an activation key and saves the license to a file.
|
static byte[] |
activateActivationKeyBuffer(java.lang.String hardwareCode,
java.lang.String activationKey,
java.lang.String commentary)
Activates a license using an activation key and returns the license in a data buffer.
|
static byte[] |
activateBuffer(java.lang.String hardwareCode,
java.lang.String login,
java.lang.String password,
java.lang.String productReference,
java.lang.String commentary)
Retrieves a license file buffer using customer credentials and a product reference and returns the license in a data buffer.
|
static void |
activateSerialKey(java.lang.String hardwareCode,
java.lang.String serialKey,
java.lang.String commentary,
java.lang.String path)
Activates a license using a serial key and saves the license to a file.
|
static byte[] |
activateSerialKeyBuffer(java.lang.String hardwareCode,
java.lang.String serialKey,
java.lang.String commentary)
Activates a license using a serial key and returns the license in a data buffer.
|
static void |
checkLicense(java.lang.String licensePath)
Checks a license from a file.
|
static void |
checkLicenseBuffer(byte[] licenseData)
Checks a license from a buffer.
|
static byte[] |
checkLicenseBufferWithCard(byte[] licenseData)
Checks the license using a buffer containing the license data and a card-based verification process.
|
static byte[] |
checkLicenseWithCard(java.lang.String licensePath)
Checks the license by using a card-based verification process.
|
static void |
checkModule(java.lang.String moduleName)
Checks if a module is present in the previously loaded license.
|
static void |
finalizeCheckLicenseWithCard(byte[] cryptogram)
Finalizes the license check process using the provided cryptogram.
|
static java.lang.String |
getExpiryDate()
Retrieves the license expiry date.
|
static java.lang.String |
getExternalDriveHardwareCode(LicenseHardwareCodeType hardwareCodeType,
java.lang.String externalDrivePath)
Retrieves the hardware code of the external drive you run the library on.
|
static java.lang.String |
getHostHardwareCode(LicenseHardwareCodeType hardwareCodeType)
Retrieves the hardware code of the device using the requested hardware code type.
|
static java.lang.String |
getLicenseFileHardwareCode()
Retrieves the hardware code of the previously loaded license.
|
static java.lang.String |
getLicenseFileSerial()
Retrieves the serial number of the previously loaded license.
|
static java.lang.String |
getLicenseName()
Retrieves the license name.
|
static java.lang.String |
getLicenseOwner()
Retrieves the license owner.
|
static java.lang.String |
getLicensePath()
Retrieves the license path.
|
static LicenseType |
getLicenseType()
Retrieves the license type.
|
static int |
getModuleCount()
Retrieves the number of modules in the license.
|
static java.lang.String |
getModuleName(int index)
Retrieves the name of the specified license module.
|
static int |
getModuleValue(java.lang.String name)
Retrieves the value associated to the specified license module.
|
static java.lang.String |
getProductReference()
Retrieves the license product reference.
|
static int |
getRemainingDays()
Retrieves the number of remaining days.
|
static void |
reactivate(java.lang.String hardwareCode,
java.lang.String productReference,
java.lang.String path)
Reactivates a license file using the host hardware code and the product reference.
|
static byte[] |
reactivateBuffer(java.lang.String hardwareCode,
java.lang.String productReference)
Reactivates a license in a data buffer using the host hardware code and the product reference.
|
public static void activate(java.lang.String hardwareCode,
java.lang.String login,
java.lang.String password,
java.lang.String productReference,
java.lang.String commentary,
java.lang.String path)
throws DocumentException
hardwareCode - The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.login - The id3 account login.password - The id3 account password.productReference - The requested product reference.commentary - Commentary associated to this license activation.path - Path to the retrieved license file.DocumentException - An error has occurred during Document Library execution.public static void activateActivationKey(java.lang.String hardwareCode,
java.lang.String activationKey,
java.lang.String commentary,
java.lang.String path)
throws DocumentException
hardwareCode - The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activationKey - The activation key.commentary - Commentary associated to this license activation, generally the host name.path - Path to the retrieved license file.DocumentException - An error has occurred during Document Library execution.public static byte[] activateActivationKeyBuffer(java.lang.String hardwareCode,
java.lang.String activationKey,
java.lang.String commentary)
throws DocumentException
hardwareCode - The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activationKey - The id3 activation key.commentary - Commentary associated to this license activation.DocumentException - An error has occurred during Document Library execution.public static byte[] activateBuffer(java.lang.String hardwareCode,
java.lang.String login,
java.lang.String password,
java.lang.String productReference,
java.lang.String commentary)
throws DocumentException
hardwareCode - The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.login - The customer login.password - The customer password.productReference - The requested product reference.commentary - Commentary associated to this license activation, generally the host name.DocumentException - An error has occurred during Document Library execution.public static void activateSerialKey(java.lang.String hardwareCode,
java.lang.String serialKey,
java.lang.String commentary,
java.lang.String path)
throws DocumentException
hardwareCode - The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serialKey - The serial key to activate.commentary - Commentary associated to this license activation, generally the host name.path - Path to the license file.DocumentException - An error has occurred during Document Library execution.public static byte[] activateSerialKeyBuffer(java.lang.String hardwareCode,
java.lang.String serialKey,
java.lang.String commentary)
throws DocumentException
hardwareCode - The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serialKey - The id3 serial key.commentary - Commentary associated to this license activation.DocumentException - An error has occurred during Document Library execution.public static void checkLicense(java.lang.String licensePath)
throws DocumentException
licensePath - Absolute or relative path to the license file.DocumentException - An error has occurred during Document Library execution.public static void checkLicenseBuffer(byte[] licenseData)
throws DocumentException
licenseData - A buffer containing the license file data.DocumentException - An error has occurred during Document Library execution.public static byte[] checkLicenseBufferWithCard(byte[] licenseData)
throws DocumentException
licenseData - A buffer containing the license file data.DocumentException - An error has occurred during Document Library execution.public static byte[] checkLicenseWithCard(java.lang.String licensePath)
throws DocumentException
licensePath - The file path to the license that needs to be checked.DocumentException - An error has occurred during Document Library execution.public static void checkModule(java.lang.String moduleName)
throws DocumentException
moduleName - The module name.DocumentException - An error has occurred during Document Library execution.public static void finalizeCheckLicenseWithCard(byte[] cryptogram)
throws DocumentException
cryptogram - A 32-byte array containing the cryptogram used for final verification.DocumentException - An error has occurred during Document Library execution.public static java.lang.String getExpiryDate()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public static java.lang.String getExternalDriveHardwareCode(LicenseHardwareCodeType hardwareCodeType, java.lang.String externalDrivePath) throws DocumentException
hardwareCodeType - The requested hardware code type. Must be windowsUsb.externalDrivePath - On Windows to activate a license on a USB device, it must contain the path to the requested USB drive (e.g 'G:\').DocumentException - An error has occurred during Document Library execution.public static java.lang.String getHostHardwareCode(LicenseHardwareCodeType hardwareCodeType) throws DocumentException
hardwareCodeType - The requested hardware code type.DocumentException - An error has occurred during Document Library execution.public static java.lang.String getLicenseFileHardwareCode()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public static java.lang.String getLicenseFileSerial()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public static java.lang.String getLicenseName()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public static java.lang.String getLicenseOwner()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public static java.lang.String getLicensePath()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public static LicenseType getLicenseType() throws DocumentException
DocumentException - An error has occurred during Document Library execution.public static int getModuleCount()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public static java.lang.String getModuleName(int index)
throws DocumentException
index - Index of the module, starting from 0.DocumentException - An error has occurred during Document Library execution.public static int getModuleValue(java.lang.String name)
throws DocumentException
name - Name of the requested module.DocumentException - An error has occurred during Document Library execution.public static java.lang.String getProductReference()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public static int getRemainingDays()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public static void reactivate(java.lang.String hardwareCode,
java.lang.String productReference,
java.lang.String path)
throws DocumentException
hardwareCode - The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.productReference - The product reference.path - Path to the license file.DocumentException - An error has occurred during Document Library execution.public static byte[] reactivateBuffer(java.lang.String hardwareCode,
java.lang.String productReference)
throws DocumentException
hardwareCode - The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.productReference - The product reference.DocumentException - An error has occurred during Document Library execution.Copyright © 2020-2030, id3 Technologies. All rights reserved. eu.id3.document