Class MSRService
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.msr.MSRService
- All Implemented Interfaces:
jpos.loader.JposServiceInstance,jpos.services.BaseService,jpos.services.MSRService110,jpos.services.MSRService111,jpos.services.MSRService112,jpos.services.MSRService113,jpos.services.MSRService114,jpos.services.MSRService115,jpos.services.MSRService116,jpos.services.MSRService12,jpos.services.MSRService13,jpos.services.MSRService14,jpos.services.MSRService15,jpos.services.MSRService16,jpos.services.MSRService17,jpos.services.MSRService18,jpos.services.MSRService19
MSR service implementation. For more details about getter, setter and method implementations,
see JposBase.
-
Field Summary
FieldsModifier and TypeFieldDescriptionInstance of a class implementing the MSRInterface for magnetic stripe reader 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 TypeMethodDescriptionvoidauthenticateDevice(byte[] response)voidCommon method clearInputProperties, see UPOS specificationvoiddeauthenticateDevice(byte[] response)byte[]intintbooleanbooleanbooleanbooleanbooleanintbyte[]intintbooleanbooleanintintintbooleangetTitle()byte[]byte[]byte[]intbyte[]byte[]byte[]intbyte[]byte[]intbyte[]byte[]intintintbooleanvoidretrieveCardProperty(String name, String[] value)voidretrieveDeviceAuthenticationData(byte[] challenge)voidretrieveDeviceAuthenticationData(byte[][] challenge)voidsetDataEncryptionAlgorithm(int i)voidsetDecodeData(boolean b)voidsetErrorReportingType(int i)voidsetParseDecodeData(boolean b)voidsetTracksToRead(int i)voidsetTracksToWrite(int i)voidsetTransmitSentinels(boolean b)voidvoidvoidwriteTracks(byte[][] data, int timeout)Methods 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, 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.MSRService12
clearInput, getAutoDisable, getDataCount, getDataEventEnabled, setAutoDisable, setDataEventEnabledMethods inherited from interface jpos.services.MSRService13
getCapPowerReporting, getPowerNotify, getPowerState, setPowerNotifyMethods inherited from interface jpos.services.MSRService18
getCapStatisticsReporting, getCapUpdateStatistics, resetStatistics, retrieveStatistics, updateStatisticsMethods inherited from interface jpos.services.MSRService19
compareFirmwareVersion, getCapCompareFirmwareVersion, getCapUpdateFirmware, updateFirmware
-
Field Details
-
MSRInterface
Instance of a class implementing the MSRInterface for magnetic stripe reader specific setter and method calls bound to the property set. Almost always the same object as Data.
-
-
Constructor Details
-
MSRService
Constructor. Stores given property set and device implementation object.- Parameters:
props- Property set.device- Device implementation object.
-
-
Method Details
-
getCapCardAuthentication
- Specified by:
getCapCardAuthenticationin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getCapDataEncryption
public int getCapDataEncryption() throws jpos.JposException- Specified by:
getCapDataEncryptionin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getCapDeviceAuthentication
public int getCapDeviceAuthentication() throws jpos.JposException- Specified by:
getCapDeviceAuthenticationin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getCapTrackDataMasking
public boolean getCapTrackDataMasking() throws jpos.JposException- Specified by:
getCapTrackDataMaskingin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getCapWritableTracks
public int getCapWritableTracks() throws jpos.JposException- Specified by:
getCapWritableTracksin interfacejpos.services.MSRService110- Throws:
jpos.JposException
-
getCapTransmitSentinels
public boolean getCapTransmitSentinels() throws jpos.JposException- Specified by:
getCapTransmitSentinelsin interfacejpos.services.MSRService15- Throws:
jpos.JposException
-
getCapISO
public boolean getCapISO() throws jpos.JposException- Specified by:
getCapISOin interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getCapJISOne
public boolean getCapJISOne() throws jpos.JposException- Specified by:
getCapJISOnein interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getCapJISTwo
public boolean getCapJISTwo() throws jpos.JposException- Specified by:
getCapJISTwoin interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getAdditionalSecurityInformation
public byte[] getAdditionalSecurityInformation() throws jpos.JposException- Specified by:
getAdditionalSecurityInformationin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getCardAuthenticationData
public byte[] getCardAuthenticationData() throws jpos.JposException- Specified by:
getCardAuthenticationDatain interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getCardAuthenticationDataLength
public int getCardAuthenticationDataLength() throws jpos.JposException- Specified by:
getCardAuthenticationDataLengthin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getCardPropertyList
- Specified by:
getCardPropertyListin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getCardType
- Specified by:
getCardTypein interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getCardTypeList
- Specified by:
getCardTypeListin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getDataEncryptionAlgorithm
public int getDataEncryptionAlgorithm() throws jpos.JposException- Specified by:
getDataEncryptionAlgorithmin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
setDataEncryptionAlgorithm
public void setDataEncryptionAlgorithm(int i) throws jpos.JposException- Specified by:
setDataEncryptionAlgorithmin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getDeviceAuthenticated
public boolean getDeviceAuthenticated() throws jpos.JposException- Specified by:
getDeviceAuthenticatedin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getDeviceAuthenticationProtocol
public int getDeviceAuthenticationProtocol() throws jpos.JposException- Specified by:
getDeviceAuthenticationProtocolin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getTrack1EncryptedData
public byte[] getTrack1EncryptedData() throws jpos.JposException- Specified by:
getTrack1EncryptedDatain interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getTrack1EncryptedDataLength
public int getTrack1EncryptedDataLength() throws jpos.JposException- Specified by:
getTrack1EncryptedDataLengthin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getTrack2EncryptedData
public byte[] getTrack2EncryptedData() throws jpos.JposException- Specified by:
getTrack2EncryptedDatain interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getTrack2EncryptedDataLength
public int getTrack2EncryptedDataLength() throws jpos.JposException- Specified by:
getTrack2EncryptedDataLengthin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getTrack3EncryptedData
public byte[] getTrack3EncryptedData() throws jpos.JposException- Specified by:
getTrack3EncryptedDatain interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getTrack3EncryptedDataLength
public int getTrack3EncryptedDataLength() throws jpos.JposException- Specified by:
getTrack3EncryptedDataLengthin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getTrack4EncryptedData
public byte[] getTrack4EncryptedData() throws jpos.JposException- Specified by:
getTrack4EncryptedDatain interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getTrack4EncryptedDataLength
public int getTrack4EncryptedDataLength() throws jpos.JposException- Specified by:
getTrack4EncryptedDataLengthin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getWriteCardType
- Specified by:
getWriteCardTypein interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
setWriteCardType
- Specified by:
setWriteCardTypein interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
getEncodingMaxLength
public int getEncodingMaxLength() throws jpos.JposException- Specified by:
getEncodingMaxLengthin interfacejpos.services.MSRService110- Throws:
jpos.JposException
-
getTracksToWrite
public int getTracksToWrite() throws jpos.JposException- Specified by:
getTracksToWritein interfacejpos.services.MSRService110- Throws:
jpos.JposException
-
setTracksToWrite
public void setTracksToWrite(int i) throws jpos.JposException- Specified by:
setTracksToWritein interfacejpos.services.MSRService110- Throws:
jpos.JposException
-
getTrack4Data
public byte[] getTrack4Data() throws jpos.JposException- Specified by:
getTrack4Datain interfacejpos.services.MSRService15- Throws:
jpos.JposException
-
getTransmitSentinels
public boolean getTransmitSentinels() throws jpos.JposException- Specified by:
getTransmitSentinelsin interfacejpos.services.MSRService15- Throws:
jpos.JposException
-
setTransmitSentinels
public void setTransmitSentinels(boolean b) throws jpos.JposException- Specified by:
setTransmitSentinelsin interfacejpos.services.MSRService15- Throws:
jpos.JposException
-
getAccountNumber
- Specified by:
getAccountNumberin interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getDecodeData
public boolean getDecodeData() throws jpos.JposException- Specified by:
getDecodeDatain interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
setDecodeData
public void setDecodeData(boolean b) throws jpos.JposException- Specified by:
setDecodeDatain interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getErrorReportingType
public int getErrorReportingType() throws jpos.JposException- Specified by:
getErrorReportingTypein interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
setErrorReportingType
public void setErrorReportingType(int i) throws jpos.JposException- Specified by:
setErrorReportingTypein interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getExpirationDate
- Specified by:
getExpirationDatein interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getFirstName
- Specified by:
getFirstNamein interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getMiddleInitial
- Specified by:
getMiddleInitialin interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getParseDecodeData
public boolean getParseDecodeData() throws jpos.JposException- Specified by:
getParseDecodeDatain interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
setParseDecodeData
public void setParseDecodeData(boolean b) throws jpos.JposException- Specified by:
setParseDecodeDatain interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getServiceCode
- Specified by:
getServiceCodein interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getSuffix
- Specified by:
getSuffixin interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getSurname
- Specified by:
getSurnamein interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getTitle
- Specified by:
getTitlein interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getTrack1Data
public byte[] getTrack1Data() throws jpos.JposException- Specified by:
getTrack1Datain interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getTrack1DiscretionaryData
public byte[] getTrack1DiscretionaryData() throws jpos.JposException- Specified by:
getTrack1DiscretionaryDatain interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getTrack2Data
public byte[] getTrack2Data() throws jpos.JposException- Specified by:
getTrack2Datain interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getTrack2DiscretionaryData
public byte[] getTrack2DiscretionaryData() throws jpos.JposException- Specified by:
getTrack2DiscretionaryDatain interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getTrack3Data
public byte[] getTrack3Data() throws jpos.JposException- Specified by:
getTrack3Datain interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
getTracksToRead
public int getTracksToRead() throws jpos.JposException- Specified by:
getTracksToReadin interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
setTracksToRead
public void setTracksToRead(int i) throws jpos.JposException- Specified by:
setTracksToReadin interfacejpos.services.MSRService12- Throws:
jpos.JposException
-
clearInputProperties
public void clearInputProperties() throws jpos.JposExceptionDescription copied from class:JposBaseCommon method clearInputProperties, see UPOS specification- Specified by:
clearInputPropertiesin interfacejpos.services.MSRService110- Overrides:
clearInputPropertiesin classJposBase- Throws:
jpos.JposException- see UPOS specification
-
authenticateDevice
public void authenticateDevice(byte[] response) throws jpos.JposException- Specified by:
authenticateDevicein interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
deauthenticateDevice
public void deauthenticateDevice(byte[] response) throws jpos.JposException- Specified by:
deauthenticateDevicein interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
retrieveCardProperty
- Specified by:
retrieveCardPropertyin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
retrieveDeviceAuthenticationData
public void retrieveDeviceAuthenticationData(byte[][] challenge) throws jpos.JposException- Specified by:
retrieveDeviceAuthenticationDatain interfacejpos.services.MSRService113- Throws:
jpos.JposException
-
retrieveDeviceAuthenticationData
public void retrieveDeviceAuthenticationData(byte[] challenge) throws jpos.JposException- Specified by:
retrieveDeviceAuthenticationDatain interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
updateKey
- Specified by:
updateKeyin interfacejpos.services.MSRService112- Throws:
jpos.JposException
-
writeTracks
public void writeTracks(byte[][] data, int timeout) throws jpos.JposException- Specified by:
writeTracksin interfacejpos.services.MSRService110- Throws:
jpos.JposException
-