|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream java.io.FilterOutputStream java.io.DataOutputStream com.bankframe.services.devices.MCADeviceProtocol com.bankframe.services.devices.MTPinPad.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(java.io.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 java.lang.String |
dataToAsciiData(java.lang.String theRawData)
This method converts the raw IntelliPIN message data into ascii string. |
static byte[] |
displaySingleString(java.lang.String firstMessage,
java.lang.String secondMessage)
This method generates a display string message |
static byte[] |
enableDefaultDisplay()
This method generates enable default display message |
static java.lang.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(java.lang.String displayNumber,
java.lang.String lineOneText,
java.lang.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(java.io.ByteArrayOutputStream buffer)
buffer
- The byte array bufferMethod Detail |
public static byte[] cancelSessionRequest() throws java.io.IOException
java.io.IOException
- if an error occurspublic static byte[] requestSoftSwitch(char switchNumber) throws java.io.IOException
switchNumber
- The switch number: 'A'-'G'
java.io.IOException
- if an error occurspublic static byte[] setSoftSwitch(char switchNumber, byte theSettingData) throws java.io.IOException
switchNumber
- The switch number: 'A'-'G'theSettingData
- the setting to set as described in the
Magtek IntelliPIN Programming Reference Guide
java.io.IOException
- if an error occurspublic static byte[] cardDataEntryRequest(byte[] firstMessage, byte[] secondMessage) throws java.io.IOException
firstMessage
- The first message to displaysecondMessage
- The second message to display
java.io.IOException
- if an error occurspublic static byte[] enableDefaultDisplay() throws java.io.IOException
java.io.IOException
- on erropublic static byte[] asciiArrayToByteArray(byte[] bytes) throws java.lang.NumberFormatException
bytes
- The ascii characters.
java.lang.NumberFormatException
- on errorpublic static byte[] byteArrayToCharArray(byte[] bytes)
bytes
- The actual values.
public static byte[] loadMasterKey(byte[] masterKey) throws java.io.IOException
masterKey
- the master key
java.io.IOException
- on errorpublic static byte[] pinEntryRequest(byte[] accountNumber, char keyNumber, byte[] transactionAmount) throws java.io.IOException
accountNumber
- The account number used during encryption.(optional)keyNumber
- the key number:transactionAmount
- transaction decimal amountjava.io.IOException
- on errorpublic static java.lang.String getControlChars(byte messageByte)
messageByte
- The byte to encode
public static java.lang.String dataToAsciiData(java.lang.String theRawData)
theRawData
- IntelliPIN raw message string
public static byte[] replaceDefaultDisplay(java.lang.String displayNumber, java.lang.String lineOneText, java.lang.String lineTwoText) throws java.io.IOException
displayNumber
- The display number "00" - "11"lineOneText
- first messagelineTwoText
- second message
java.io.IOException
- on errorpublic static byte[] displaySingleString(java.lang.String firstMessage, java.lang.String secondMessage) throws java.io.IOException
firstMessage
- The first messagesecondMessage
- The second message
java.io.IOException
- on error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |