Class PINPadService
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.pinpad.PINPadService
- All Implemented Interfaces:
jpos.loader.JposServiceInstance,jpos.services.BaseService,jpos.services.PINPadService110,jpos.services.PINPadService111,jpos.services.PINPadService112,jpos.services.PINPadService113,jpos.services.PINPadService114,jpos.services.PINPadService115,jpos.services.PINPadService116,jpos.services.PINPadService13,jpos.services.PINPadService14,jpos.services.PINPadService15,jpos.services.PINPadService16,jpos.services.PINPadService17,jpos.services.PINPadService18,jpos.services.PINPadService19
PINPad service implementation. For more details about getter, setter and method implementations,
see JposBase.
-
Field Summary
FieldsModifier and TypeFieldDescriptionInstance of a class implementing the PINPadInterface for PIN pad specific setter and method calls bound to the property set.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
Device, DeviceInterface, Props -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeginEFTTransaction(String pinPadSystem, int transactionHost)voidcomputeMAC(String inMsg, String[] outMsg)voidvoidendEFTTransaction(int completionCode)longintbooleanintbooleanbooleanintintbooleanintbyte[]byte[]byte[]byte[]intbooleanReset EFT transaction, to be called whenever the PINPad needs to be reset, for example after claim or timeout.voidsetAccountNumber(String accountNumber)voidsetAmount(long amount)voidsetMaximumPINLength(int maximumPINLength)voidsetMerchantID(String merchantID)voidsetMinimumPINLength(int minimumPINLength)voidsetPrompt(int prompt)voidsetPromptLanguage(String promptLanguage)voidsetTerminalID(String terminalID)voidsetTrack1Data(byte[] track1Data)voidsetTrack2Data(byte[] track2Data)voidsetTrack3Data(byte[] track3Data)voidsetTrack4Data(byte[] track4Data)voidsetTransactionType(int transactionType)voidvoidMethods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
callNowOrLater, check, check, check, check, checkBusy, checkClaimed, checkEnabled, checkEnabledUnclaimed, checkFirstEnabled, checkHealth, checkNoChangedOrClaimed, checkOpened, claim, clearInput, clearInputProperties, clearOutput, close, compareFirmwareVersion, deepToString, deleteInstance, directIO, getAsyncMode, getAutoDisable, getCapCompareFirmwareVersion, getCapPowerReporting, getCapStatisticsReporting, getCapUpdateFirmware, getCapUpdateStatistics, getCheckHealthText, getClaimed, getDataCount, getDataEventEnabled, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getOutputID, getPhysicalDeviceDescription, getPhysicalDeviceName, getPowerNotify, getPowerState, getPropertyString, getState, logAsyncCall, logCall, logCall, logGet, logGet, logPreCall, logPreCall, logPreSet, logSet, open, release, removeOuterArraySpecifier, resetStatistics, retrieveStatistics, setAsyncMode, setAutoDisable, setDataEventEnabled, setDeviceEnabled, setFreezeEvents, setPowerNotify, signalRelease, startClaiming, updateFirmware, updateStatisticsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jpos.services.BaseService
checkHealth, claim, close, directIO, getCheckHealthText, getClaimed, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getPhysicalDeviceDescription, getPhysicalDeviceName, getState, open, release, setDeviceEnabled, setFreezeEventsMethods inherited from interface jpos.loader.JposServiceInstance
deleteInstanceMethods inherited from interface jpos.services.PINPadService110
clearInputPropertiesMethods inherited from interface jpos.services.PINPadService13
clearInput, getCapPowerReporting, getDataCount, getDataEventEnabled, getPowerNotify, getPowerState, setDataEventEnabled, setPowerNotifyMethods inherited from interface jpos.services.PINPadService18
getCapStatisticsReporting, getCapUpdateStatistics, resetStatistics, retrieveStatistics, updateStatisticsMethods inherited from interface jpos.services.PINPadService19
compareFirmwareVersion, getCapCompareFirmwareVersion, getCapUpdateFirmware, updateFirmware
-
Field Details
-
PINPad
Instance of a class implementing the PINPadInterface for PIN pad specific setter and method calls bound to the property set. Almost always the same object as Data.
-
-
Constructor Details
-
PINPadService
Constructor. Stores given property set and device implementation object.- Parameters:
props- Property set.device- Device implementation object.
-
-
Method Details
-
resetEFTTransaction
public boolean resetEFTTransaction() throws jpos.JposExceptionReset EFT transaction, to be called whenever the PINPad needs to be reset, for example after claim or timeout. The default implementation resets PINEntryEnabled and the service property EFTTransactionStarted and clears the data event queue.
This method returns true if a pending transaction has been reset, false if no transaction was pending.- Returns:
- True if EFT transaction has been reset, false if PINpad was still idle.
- Throws:
jpos.JposException- If an error occurred
-
getCapDisplay
public int getCapDisplay() throws jpos.JposException- Specified by:
getCapDisplayin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getCapLanguage
public int getCapLanguage() throws jpos.JposException- Specified by:
getCapLanguagein interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getCapKeyboard
public boolean getCapKeyboard() throws jpos.JposException- Specified by:
getCapKeyboardin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getCapMACCalculation
public boolean getCapMACCalculation() throws jpos.JposException- Specified by:
getCapMACCalculationin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getCapTone
public boolean getCapTone() throws jpos.JposException- Specified by:
getCapTonein interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getAccountNumber
- Specified by:
getAccountNumberin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getAdditionalSecurityInformation
- Specified by:
getAdditionalSecurityInformationin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getAmount
public long getAmount() throws jpos.JposException- Specified by:
getAmountin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getAvailableLanguagesList
- Specified by:
getAvailableLanguagesListin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getAvailablePromptsList
- Specified by:
getAvailablePromptsListin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getEncryptedPIN
- Specified by:
getEncryptedPINin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getMaximumPINLength
public int getMaximumPINLength() throws jpos.JposException- Specified by:
getMaximumPINLengthin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getMerchantID
- Specified by:
getMerchantIDin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getMinimumPINLength
public int getMinimumPINLength() throws jpos.JposException- Specified by:
getMinimumPINLengthin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getPINEntryEnabled
public boolean getPINEntryEnabled() throws jpos.JposException- Specified by:
getPINEntryEnabledin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getPrompt
public int getPrompt() throws jpos.JposException- Specified by:
getPromptin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getPromptLanguage
- Specified by:
getPromptLanguagein interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getTerminalID
- Specified by:
getTerminalIDin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getTrack1Data
public byte[] getTrack1Data() throws jpos.JposException- Specified by:
getTrack1Datain interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getTrack2Data
public byte[] getTrack2Data() throws jpos.JposException- Specified by:
getTrack2Datain interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getTrack3Data
public byte[] getTrack3Data() throws jpos.JposException- Specified by:
getTrack3Datain interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
getTrack4Data
public byte[] getTrack4Data() throws jpos.JposException- Specified by:
getTrack4Datain interfacejpos.services.PINPadService15- Throws:
jpos.JposException
-
getTransactionType
public int getTransactionType() throws jpos.JposException- Specified by:
getTransactionTypein interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
setAccountNumber
- Specified by:
setAccountNumberin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
setAmount
public void setAmount(long amount) throws jpos.JposException- Specified by:
setAmountin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
setMaximumPINLength
public void setMaximumPINLength(int maximumPINLength) throws jpos.JposException- Specified by:
setMaximumPINLengthin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
setMerchantID
- Specified by:
setMerchantIDin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
setMinimumPINLength
public void setMinimumPINLength(int minimumPINLength) throws jpos.JposException- Specified by:
setMinimumPINLengthin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
setPrompt
public void setPrompt(int prompt) throws jpos.JposException- Specified by:
setPromptin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
setPromptLanguage
- Specified by:
setPromptLanguagein interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
setTerminalID
- Specified by:
setTerminalIDin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
setTrack1Data
public void setTrack1Data(byte[] track1Data) throws jpos.JposException- Specified by:
setTrack1Datain interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
setTrack2Data
public void setTrack2Data(byte[] track2Data) throws jpos.JposException- Specified by:
setTrack2Datain interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
setTrack3Data
public void setTrack3Data(byte[] track3Data) throws jpos.JposException- Specified by:
setTrack3Datain interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
setTrack4Data
public void setTrack4Data(byte[] track4Data) throws jpos.JposException- Specified by:
setTrack4Datain interfacejpos.services.PINPadService15- Throws:
jpos.JposException
-
setTransactionType
public void setTransactionType(int transactionType) throws jpos.JposException- Specified by:
setTransactionTypein interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
beginEFTTransaction
public void beginEFTTransaction(String pinPadSystem, int transactionHost) throws jpos.JposException- Specified by:
beginEFTTransactionin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
computeMAC
- Specified by:
computeMACin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
enablePINEntry
public void enablePINEntry() throws jpos.JposException- Specified by:
enablePINEntryin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
endEFTTransaction
public void endEFTTransaction(int completionCode) throws jpos.JposException- Specified by:
endEFTTransactionin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
updateKey
- Specified by:
updateKeyin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-
verifyMAC
- Specified by:
verifyMACin interfacejpos.services.PINPadService13- Throws:
jpos.JposException
-