|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
com.bankframe.services.devices.MCADeviceProtocol
com.bankframe.services.devices.MTPinPad.MagTekIntelliPINDeviceProtocol
public class MagTekIntelliPINDeviceProtocol
This class produces messages and codes for sending to a MagTek IntelliPIN card swiper using the serial port output stream
Field Summary |
---|
Constructor Summary | |
---|---|
MagTekIntelliPINDeviceProtocol(ByteArrayOutputStream buffer)
MagTekIntelliPINDeviceProtocol constructor |
Method Summary | |
---|---|
static byte[] |
asciiArrayToByteArray(byte[] bytes)
This method converts an array of ascii characters into the actual values that the ascii characters represent. |
static byte[] |
byteArrayToCharArray(byte[] bytes)
This method converts an array of actual values into their ascii character representation. |
static byte[] |
cancelSessionRequest()
This method generates cancel Session Request message |
static byte[] |
cardDataEntryRequest(byte[] firstMessage,
byte[] secondMessage)
This method generates card data entry request message |
static String |
dataToAsciiData(String theRawData)
This method converts the raw IntelliPIN message data into ascii string. |
static byte[] |
displaySingleString(String firstMessage,
String secondMessage)
This method generates a display string message |
static byte[] |
enableDefaultDisplay()
This method generates enable default display message |
static String |
getControlChars(byte messageByte)
Converts the byte into a the PinPad text equivalent message If the byte value isn't a PinPad code it is shown as hex text. |
static byte[] |
loadMasterKey(byte[] masterKey)
This method generates the message to load the PinPad with the Master Encryption Key This is always the first request sent to IntelliPIN pinpad. |
static byte[] |
pinEntryRequest(byte[] accountNumber,
char keyNumber,
byte[] transactionAmount)
This method generates pin entry request |
static byte[] |
replaceDefaultDisplay(String displayNumber,
String lineOneText,
String lineTwoText)
This method generates replace default display message |
static byte[] |
requestSoftSwitch(char switchNumber)
This method generates the Request Soft Switch message |
static byte[] |
setSoftSwitch(char switchNumber,
byte theSettingData)
This method generates Set Soft Switch message |
Methods inherited from class com.bankframe.services.devices.MCADeviceProtocol |
---|
dataToHexData, getHexString, internalbuffer |
Methods inherited from class java.io.DataOutputStream |
---|
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Methods inherited from class java.io.FilterOutputStream |
---|
close, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.DataOutput |
---|
write |
Constructor Detail |
---|
public MagTekIntelliPINDeviceProtocol(ByteArrayOutputStream buffer)
buffer
- The byte array bufferMethod Detail |
---|
public static byte[] cancelSessionRequest() throws IOException
IOException
- if an error occurspublic static byte[] requestSoftSwitch(char switchNumber) throws IOException
switchNumber
- The switch number: 'A'-'G'
IOException
- if an error occurspublic static byte[] setSoftSwitch(char switchNumber, byte theSettingData) throws IOException
switchNumber
- The switch number: 'A'-'G'theSettingData
- the setting to set as described in the
Magtek IntelliPIN Programming Reference Guide
IOException
- if an error occurspublic static byte[] cardDataEntryRequest(byte[] firstMessage, byte[] secondMessage) throws IOException
firstMessage
- The first message to displaysecondMessage
- The second message to display
IOException
- if an error occurspublic static byte[] enableDefaultDisplay() throws IOException
IOException
- on erropublic static byte[] asciiArrayToByteArray(byte[] bytes) throws NumberFormatException
bytes
- The ascii characters.
NumberFormatException
- on errorpublic static byte[] byteArrayToCharArray(byte[] bytes)
bytes
- The actual values.
public static byte[] loadMasterKey(byte[] masterKey) throws IOException
masterKey
- the master key
IOException
- on errorpublic static byte[] pinEntryRequest(byte[] accountNumber, char keyNumber, byte[] transactionAmount) throws IOException
accountNumber
- The account number used during encryption.(optional)keyNumber
- the key number:transactionAmount
- transaction decimal amountIOException
- on errorpublic static String getControlChars(byte messageByte)
messageByte
- The byte to encode
public static String dataToAsciiData(String theRawData)
theRawData
- IntelliPIN raw message string
public static byte[] replaceDefaultDisplay(String displayNumber, String lineOneText, String lineTwoText) throws IOException
displayNumber
- The display number "00" - "11"lineOneText
- first messagelineTwoText
- second message
IOException
- on errorpublic static byte[] displaySingleString(String firstMessage, String secondMessage) throws IOException
firstMessage
- The first messagesecondMessage
- The second message
IOException
- on error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |