beautypg.com

Getsessionid, Getksn, Getdevicename – MagTek Audio Reader for Android Devices User Manual

Page 15: Setdevicetype

background image

9

getSessionID

Not suported on Audio Reader. This 8-byte Binary field contains the encrypted version of the
current Session ID. Its primary purpose is to prevent replays. After a card is read, this property
will be encrypted, along with the card data, and supplied as part of the transaction message. The
clear text version of this will never be transmitted. To avoid replay, the application sets the
Session ID property before a transaction and verifies that the Encrypted Session ID returned with
card data decrypts to the value set.

-

public String getSessionID()

Parameters

Return Value

Empty String

getKSN

Get stored key serial number. This 10-byte Binary field contains the DUKPT Key Serial
Number used to encrypt the encrypted fields in this message. This 80-bit field includes the
Initial Key Serial Number in the leftmost 59 bits and a value for the Encryption Counter in the
rightmost 21 bits. If no keys are loaded, all bytes will have the value 0x00.

-

public String getKSN()

Parameters

Return Value

Return stored key serial number.

getDeviceName

Get the associated name of the Bluetooth Device.
-

public String getDeviceName()


Parameters

Return Value

Return associated name of the Bluetooth device.

setDeviceType

Set the type of device (Bluetooth or Audio).
-

public void setDeviceType(int

lpiDeviceType

)


Parameters

lpiDeviceType: