|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.services.devices.MCASerialPort com.bankframe.services.devices.MTPinPad.MagTekIntelliPIN
This class provides support for a MagTek IntelliPIN Plus card-swipe device
Field Summary |
Fields inherited from class com.bankframe.services.devices.MCASerialPort |
SERIALPORT_BAUD, SERIALPORT_COMMDRIVER, SERIALPORT_DATABITS, SERIALPORT_FLOWCONTROL, SERIALPORT_NAME, SERIALPORT_PARITY, SERIALPORT_STOPBITS |
Fields inherited from interface javax.comm.CommPortOwnershipListener |
PORT_OWNED, PORT_OWNERSHIP_REQUESTED, PORT_UNOWNED |
Constructor Summary | |
MagTekIntelliPIN(java.lang.String deviceName)
MagTekIntelliPIN constructor |
|
MagTekIntelliPIN(java.lang.String deviceName,
boolean decryptPinData)
MagTekIntelliPIN constructor |
Method Summary | |
void |
addPinPadListener(PinPadListener ppl)
This method adds a PinPad listener to this object to be notified when a card has been swiped. |
void |
cancelSessionRequest()
This method generates cancel Session Request message |
boolean |
cardDataEntryRequest(java.lang.String firstMessage,
java.lang.String secondMessage,
long timeOut)
This method generates a card data entry request message and waits for a card to be swiped. |
void |
displaySingleString(java.lang.String firstMessage,
java.lang.String secondMessage)
This method shows two strings on IntelliPIN display |
void |
enableDefaultDisplay()
This method enables default display messages removing any made with replaceDefaultDisplay |
void |
loadMasterKey(byte[] masterKey)
This method sends the PinPad the Master Encryption Key This is always the first request sent to IntelliPIN pinpad. |
void |
open(byte[] theMasterKey,
long masterKeyResponseTimeout)
This method opens the IntelliPIN device It calls the base MCASerialPort open() method which connects to the serial port and which calls setup() This method then passes the specified Master Key to the opened IntelliPIN device. |
void |
open(long masterKeyResponseTimeout)
This method opens the IntelliPIN device It calls the base MCASerialPort open() method which connects to the serial port and which calls setup() A Master Encryption Key is created and passed to the opened IntelliPIN device. |
boolean |
pinEntryRequest(java.lang.String accountNumber,
char keyNumber,
java.lang.String transactionAmount,
long timeOut)
This method shows pin entry request and waits for a pin to be entered. |
void |
removePinPadListener(PinPadListener ppl)
This method removes a PinPad listener |
void |
replaceDefaultDisplay(java.lang.String displayNumber,
java.lang.String lineOneText,
java.lang.String lineTwoText)
This method replaces default display message |
java.lang.String |
requestSoftSwitch(char switchNumber,
long timeOut)
This method generates a Requests Soft Switch. |
boolean |
setSoftSwitch(char switchNumber,
byte theSettingData,
long timeOut)
This method generates a Set Soft Switch. |
boolean |
waitConditionCardData(long timeOut)
This method blocks until card data is available or the timout expires It waits in one second intervals until the timeout value is passed or data becomes available. |
boolean |
waitConditionKeyLoaded(long timeOut)
This method waits for Key loaded condition It waits in one second intervals until the timeout value is passed or the condition is met. |
boolean |
waitConditionPinData(long timeOut)
This method waits until PIN data is available It waits in one second intervals until the timeout value is passed or the condition is met. |
boolean |
waitConditionRequestSettings(long timeOut)
This method waits for the Request Soft Switch response. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MagTekIntelliPIN(java.lang.String deviceName) throws DeviceException
deviceName
- The device namepublic MagTekIntelliPIN(java.lang.String deviceName, boolean decryptPinData) throws DeviceException
deviceName
- The device namedecryptPinData
- specifies if the pin data from the physical device
is to be decrypted immediately by the client (true) or left encrypted for later use (false)Method Detail |
public void open(long masterKeyResponseTimeout) throws DeviceException
masterKeyResponseTimeout
- time-out in milliseconds to wait for response from device after loading Master key.
DeviceException
- if an error occurspublic void open(byte[] theMasterKey, long masterKeyResponseTimeout) throws DeviceException
theMasterKey
- Master Key, a DES standard encryption key, 8 bytes in length.masterKeyResponseTimeout
- time-out in milliseconds to wait for response from device after loading Master key.
DeviceException
- if an error occurspublic void addPinPadListener(PinPadListener ppl) throws DeviceException
DeviceException
- if an error occurspublic void removePinPadListener(PinPadListener ppl)
ppl
- The PinPad listenerpublic boolean waitConditionCardData(long timeOut)
public boolean waitConditionKeyLoaded(long timeOut)
timeOut
- timeout value in milliseconds
public boolean waitConditionPinData(long timeOut)
timeOut
- timeout period in milliseconds
public boolean waitConditionRequestSettings(long timeOut)
timeOut
- The timeout period in milliseconds
public boolean setSoftSwitch(char switchNumber, byte theSettingData, long timeOut) throws DeviceException
switchNumber
- 'A'-'G'theSettingData
- The setting to settimeOut
- The time-out period for a response from IntelliPIN physical device.
DeviceException
- if an error occurspublic java.lang.String requestSoftSwitch(char switchNumber, long timeOut) throws DeviceException
switchNumber
- The switch number: 'A'-'G'timeOut
- The timeout period in milliseconds
DeviceException
- if an error occurspublic void cancelSessionRequest() throws DeviceException
DeviceException
- if an error occurspublic boolean cardDataEntryRequest(java.lang.String firstMessage, java.lang.String secondMessage, long timeOut) throws DeviceException
firstMessage
- The first message to displaysecondMessage
- The second message to displaytimeOut
- The time-out period in milliseconds
DeviceException
- if an error occurspublic void loadMasterKey(byte[] masterKey) throws DeviceException
masterKey
- the master key
DeviceException
- if an error occurspublic boolean pinEntryRequest(java.lang.String accountNumber, char keyNumber, java.lang.String transactionAmount, long timeOut) throws DeviceException
accountNumber
- account number used during encryption.(optional)keyNumber
- the key numbertransactionAmount
- The transaction decimal amount
(to two decimal places, e.g., 123 = 1.23,
omit the decimal point and commas) (optional)timeOut
- timeout period for pin to be entered.
DeviceException
public void replaceDefaultDisplay(java.lang.String displayNumber, java.lang.String lineOneText, java.lang.String lineTwoText) throws DeviceException
displayNumber
- display number "00" - "11"lineOneText
- first messagelineTwoText
- second message
DeviceException
- on errorpublic void enableDefaultDisplay() throws DeviceException
DeviceException
- if an error occurspublic void displaySingleString(java.lang.String firstMessage, java.lang.String secondMessage) throws DeviceException
firstMessage
- The first message to displaysecondMessage
- The second message to display
DeviceException
- on error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |