9 - IDeviceConfiguration
MagTek Universal SDK| For MMS Devices | Programmer’s Manual ( Java )
Page 31
9
IDeviceConfiguration
Create an instance of the
. Then use the function
calls described in this chapter.
Generally, these functions will run in one of two modes:
Asynchronous
functions return data in the event handlers in section
Synchronous
functions return data in the return value. If the data is not available immediately, the
call will block until a wait time has elapsed.
9.1
getChallengeToken
This function retrieves a challenge token from the device. A challenge token consists of a random nonce
or timestamp. A challenge token must be used within the time allowed by the device (generally 5
minutes) of being issued. Only one token can be active at a time. Attempts to use a token for requests
other than the one specified will cause the token to be revoked/erased.
byte[] IDeviceConfiguration.getChallengeToken(byte[] data);
Parameter
Description
data
Byte array containing the request ID to be protected.
Return Value:
Returns a byte array containing the challenge token.
9.2
getConfigInfo
This function retrieves device configuration information. For an example, see appendix
IDeviceConfiguration Walk Through
byte[] IDeviceConfiguration.getConfigInfo(
byte configType,
byte[] data);
Parameter
Description
configType
Type of configuration. For DynaFlex, this is the first number of the
Property OID.
data
Configuration data to be sent to the device. For DynaFlex, this is the
remainder of the constructed OID. For constructing the OID see
D998200383 DynaFlex Family Programmer’s Manual (COMMANDS)
Return Value:
Returns an array of bytes containing the configuration information.
9.3
getDeviceInfo
This function retrieves device specific information.
String IDeviceConfiguration.getDeviceInfo(
Parameter
Description
infoType
Enumerated information type.