com.jp.protection.pub.pro
Class Java6LicenseHostProContext

java.lang.Object
  extended by com.jp.protection.pub.pro.LicenseHostProContext
      extended by com.jp.protection.pub.pro.Java6LicenseHostProContext

public class Java6LicenseHostProContext
extends LicenseHostProContext

This class represents context for the License Host by providing access to various system and application properties. It represents Java6 specific implementation that doesn't use native libraries to get MAC addresse(s) of the the network card(s).

Since:
4.5.2

Field Summary
(package private) static java.lang.String RESULT_UNKNOWN
           
(package private)  java.lang.ref.WeakReference systemInfo
           
 
Fields inherited from class com.jp.protection.pub.pro.LicenseHostProContext
ATTR_AVAILABLE_PROCESSORS, ATTR_HOST_NAME, ATTR_INSTALL_ID, ATTR_IP_ADDRESS, ATTR_LOCALE, ATTR_MAC_ADDRESS, ATTR_MAC_ADDRESSES, ATTR_USER_NAME, fLicenseHost, fVerbose
 
Constructor Summary
Java6LicenseHostProContext(LicenseHostPro aLicenseHost)
           
 
Method Summary
 java.lang.String getCpuID()
          Returns CPU ID
protected  long getHardwareAddress(byte[] aHardwareAddress)
           
 long getMACAddress()
          Returns MAC address of primary network card
 long[] getMACAddresses()
          Returns MAC addresses of all network cards
 java.lang.String getMotherboardID()
          Returns motherboard ID
 long getTotalPhysicalMemorySize()
          Returns total physical memory size in bytes
static void main(java.lang.String[] args)
           
 java.lang.Object systemInfo()
           
 
Methods inherited from class com.jp.protection.pub.pro.LicenseHostProContext
createAttributes, createAttributes, error, error, fillAttributes, getActivationNumber, getAttributeName, getAvailableProcessors, getCustomLockAttribute, getHostName, getHostNames, getInstallID, getIPAddress, getSystemProperty, getUserName, isVerbose, setActivationNumber, setNativeLibFolder, setVerbose, unqualifiedHostName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

systemInfo

java.lang.ref.WeakReference systemInfo

RESULT_UNKNOWN

static final java.lang.String RESULT_UNKNOWN
See Also:
Constant Field Values
Constructor Detail

Java6LicenseHostProContext

public Java6LicenseHostProContext(LicenseHostPro aLicenseHost)
Method Detail

getMACAddresses

public long[] getMACAddresses()
Description copied from class: LicenseHostProContext
Returns MAC addresses of all network cards

Overrides:
getMACAddresses in class LicenseHostProContext
Returns:
MAC addresses of all network cards

getHardwareAddress

protected long getHardwareAddress(byte[] aHardwareAddress)

getMACAddress

public long getMACAddress()
Description copied from class: LicenseHostProContext
Returns MAC address of primary network card

Overrides:
getMACAddress in class LicenseHostProContext
Returns:
MAC address of primary network card

systemInfo

public java.lang.Object systemInfo()

getCpuID

public java.lang.String getCpuID()
Description copied from class: LicenseHostProContext
Returns CPU ID

Overrides:
getCpuID in class LicenseHostProContext
Returns:
CPU ID

getMotherboardID

public java.lang.String getMotherboardID()
Description copied from class: LicenseHostProContext
Returns motherboard ID

Overrides:
getMotherboardID in class LicenseHostProContext
Returns:
motherboard ID

getTotalPhysicalMemorySize

public long getTotalPhysicalMemorySize()
Description copied from class: LicenseHostProContext
Returns total physical memory size in bytes

Overrides:
getTotalPhysicalMemorySize in class LicenseHostProContext
Returns:
total physical memory size in bytes

main

public static void main(java.lang.String[] args)