Package com.wibu.cm
Class CodeMeter.CMACCESS
- java.lang.Object
-
- com.wibu.cm.CodeMeter.CMACCESS
-
- Enclosing class:
- CodeMeter
public static class CodeMeter.CMACCESS extends java.lang.ObjectCMACCESS specifies additional data for access modes.CMACCESS specifies additional data for the Access Modes to a SubSystem (SubSystem Access), to a CmContainer (Box Access), to a single Firm Item (FC, Firm Item Access) or a CmContainer entry (FC:PC, Entry Access) in a given subsystem.
Definition for the class CMACCESS corresponding to the c-api struct CMACCESS
-
-
Field Summary
Fields Modifier and Type Field Description CodeMeter.CMBOXINFOcmBoxInfocontains the CmContainer information.longctrlspecifies the kind of the subsystem accesslongfeatureCodecontains the Feature Code, which must map a given Feature Map.longfirmCodecontains the Firm Code of the access mode.longidProcessis used for internal purposes and will be set by the calling driver automatically.byte[]ipv4addresscontains an IPv4 address for an explicit access to a target machine that runs a CodeMeter Server.longproductCodecontains the Product Code of the access mode.shortproductItemReferenceis used for firm item indexshortsessionis reserved for future purposes.longusedRuntimeVersionContains the minimum driver version of CodeMeter that has to be present.
-
Constructor Summary
Constructors Constructor Description CMACCESS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUsedRuntimeVersion(int majorVersion, int minorVersion)Helper function to easily set the minimum required runtime version.voidsetUsedRuntimeVersion(int majorVersion, int minorVersion, int build)Helper function to easily set the minimum required runtime version.
-
-
-
Field Detail
-
ctrl
public long ctrl
specifies the kind of the subsystem accessspecifies the kind of the subsystem access
specifies the kind of the subsystem access by setting one of the following flags:
- CM_ACCESS_USERLIMIT needs a license for each CmAccess() call. The NetworkCounter will be decreased by one at each access.
- CM_ACCESS_NOUSERLIMIT needs no license for each CmAccess() call. The NetworkCounter will be not decreased in this mode.
- CM_ACCESS_EXCLUSIVE needs a license for each CmAccess() call and on a computer only one access to the specified entry is permitted. The NetworkCounter will be decreased by one at each access.
- CM_ACCESS_STATIONSHARE needs a license for each CmAccess() call and on a computer only one license to the specified entry is blocked. The NetworkCounter will be decreased by one once per computer.
- CM_ACCESS_CONVENIENT needs in the local subsystem (CmLocal) no license (works here as CM_ACCESS_NOUSERLIMIT) and in the network (CmLAN) one license per access (works here as CM_ACCESS_USERLIMIT).
- CM_ACCESS_FORCE forces the access to an entry, which has a expired Epiration Time, an invalid Activation Time or a UnitCounter, which is 0. Normally CmAccess() does not return a valid handle if one of the three Product Item Options has not a true value.
- CM_ACCESS_CHECK_FSB specifies that the wanted access must be done to a Firm Security Box (FSB). If the specified entry is not inside a FSB an error is returned.
- CM_ACCESS_CHECK_CTSB specifies that the wanted access must be done to a Certiefied Time Security Box (CTSB). If the specified entry is not inside a CTSB an error is returned.
- CM_ACCESS_SUBSYSTEM specifies that the wanted access can also be a SubSystem Access. In this case mulFirm Code must be set to 0.
-
firmCode
public long firmCode
contains the Firm Code of the access mode. Which Firm Code must be set for the different access modes you can see at the description of the CmAccess() function.
-
productCode
public long productCode
contains the Product Code of the access mode. Which Product Code must be set for the different access modes you can see at the description of the CmAccess() function.
-
featureCode
public long featureCode
contains the Feature Code, which must map a given Feature Map. If the Feature Code is 0 there is no search for a fitting Feature Map.
-
usedRuntimeVersion
public long usedRuntimeVersion
Contains the minimum driver version of CodeMeter that has to be present. The version must be coded in a single long value by shifting the major/minor/build version:
cmacc.usedRuntimeVersion = (majorVersion << 24) | (minorVersion << 16) | (build &0xffff);where build may be set to 0.- See Also:
setUsedRuntimeVersion(int, int)
-
idProcess
public long idProcess
is used for internal purposes and will be set by the calling driver automatically.
-
productItemReference
public short productItemReference
is used for firm item index
-
session
public short session
is reserved for future purposes.
-
ipv4address
public byte[] ipv4address
contains an IPv4 address for an explicit access to a target machine that runs a CodeMeter Server.
-
cmBoxInfo
public CodeMeter.CMBOXINFO cmBoxInfo
contains the CmContainer information.
-
-
Method Detail
-
setUsedRuntimeVersion
public void setUsedRuntimeVersion(int majorVersion, int minorVersion)Helper function to easily set the minimum required runtime version.- Parameters:
majorVersion- minimum major version e.g. '4' for 4.01minorVersion- minimum minor version e.g. '1' for 4.01- See Also:
usedRuntimeVersion
-
setUsedRuntimeVersion
public void setUsedRuntimeVersion(int majorVersion, int minorVersion, int build)Helper function to easily set the minimum required runtime version.- Parameters:
majorVersion- minimum major version e.g. '4' for 4.01minorVersion- minimum minor version e.g. '20' for 4.20build- minimum build number, e.g. 283 for 4.20 Build 283- See Also:
usedRuntimeVersion
-
-