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 TypeMethodDescriptionvoid
authenticateDevice(byte[] response)
void
Common method clearInputProperties, see UPOS specificationvoid
deauthenticateDevice(byte[] response)
byte[]
int
int
boolean
boolean
boolean
boolean
boolean
int
byte[]
int
int
boolean
boolean
int
int
int
boolean
getTitle()
byte[]
byte[]
byte[]
int
byte[]
byte[]
byte[]
int
byte[]
byte[]
int
byte[]
byte[]
int
int
int
boolean
void
retrieveCardProperty(String name, String[] value)
void
retrieveDeviceAuthenticationData(byte[] challenge)
void
retrieveDeviceAuthenticationData(byte[][] challenge)
void
setDataEncryptionAlgorithm(int i)
void
setDecodeData(boolean b)
void
setErrorReportingType(int i)
void
setParseDecodeData(boolean b)
void
setTracksToRead(int i)
void
setTracksToWrite(int i)
void
setTransmitSentinels(boolean b)
void
void
void
writeTracks(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, updateStatistics
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jpos.services.BaseService
checkHealth, claim, close, directIO, getCheckHealthText, getClaimed, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getPhysicalDeviceDescription, getPhysicalDeviceName, getState, open, release, setDeviceEnabled, setFreezeEvents
Methods inherited from interface jpos.loader.JposServiceInstance
deleteInstance
Methods inherited from interface jpos.services.MSRService12
clearInput, getAutoDisable, getDataCount, getDataEventEnabled, setAutoDisable, setDataEventEnabled
Methods inherited from interface jpos.services.MSRService13
getCapPowerReporting, getPowerNotify, getPowerState, setPowerNotify
Methods inherited from interface jpos.services.MSRService18
getCapStatisticsReporting, getCapUpdateStatistics, resetStatistics, retrieveStatistics, updateStatistics
Methods 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:
getCapCardAuthentication
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getCapDataEncryption
public int getCapDataEncryption() throws jpos.JposException- Specified by:
getCapDataEncryption
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getCapDeviceAuthentication
public int getCapDeviceAuthentication() throws jpos.JposException- Specified by:
getCapDeviceAuthentication
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getCapTrackDataMasking
public boolean getCapTrackDataMasking() throws jpos.JposException- Specified by:
getCapTrackDataMasking
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getCapWritableTracks
public int getCapWritableTracks() throws jpos.JposException- Specified by:
getCapWritableTracks
in interfacejpos.services.MSRService110
- Throws:
jpos.JposException
-
getCapTransmitSentinels
public boolean getCapTransmitSentinels() throws jpos.JposException- Specified by:
getCapTransmitSentinels
in interfacejpos.services.MSRService15
- Throws:
jpos.JposException
-
getCapISO
public boolean getCapISO() throws jpos.JposException- Specified by:
getCapISO
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getCapJISOne
public boolean getCapJISOne() throws jpos.JposException- Specified by:
getCapJISOne
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getCapJISTwo
public boolean getCapJISTwo() throws jpos.JposException- Specified by:
getCapJISTwo
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getAdditionalSecurityInformation
public byte[] getAdditionalSecurityInformation() throws jpos.JposException- Specified by:
getAdditionalSecurityInformation
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getCardAuthenticationData
public byte[] getCardAuthenticationData() throws jpos.JposException- Specified by:
getCardAuthenticationData
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getCardAuthenticationDataLength
public int getCardAuthenticationDataLength() throws jpos.JposException- Specified by:
getCardAuthenticationDataLength
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getCardPropertyList
- Specified by:
getCardPropertyList
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getCardType
- Specified by:
getCardType
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getCardTypeList
- Specified by:
getCardTypeList
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getDataEncryptionAlgorithm
public int getDataEncryptionAlgorithm() throws jpos.JposException- Specified by:
getDataEncryptionAlgorithm
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
setDataEncryptionAlgorithm
public void setDataEncryptionAlgorithm(int i) throws jpos.JposException- Specified by:
setDataEncryptionAlgorithm
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getDeviceAuthenticated
public boolean getDeviceAuthenticated() throws jpos.JposException- Specified by:
getDeviceAuthenticated
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getDeviceAuthenticationProtocol
public int getDeviceAuthenticationProtocol() throws jpos.JposException- Specified by:
getDeviceAuthenticationProtocol
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getTrack1EncryptedData
public byte[] getTrack1EncryptedData() throws jpos.JposException- Specified by:
getTrack1EncryptedData
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getTrack1EncryptedDataLength
public int getTrack1EncryptedDataLength() throws jpos.JposException- Specified by:
getTrack1EncryptedDataLength
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getTrack2EncryptedData
public byte[] getTrack2EncryptedData() throws jpos.JposException- Specified by:
getTrack2EncryptedData
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getTrack2EncryptedDataLength
public int getTrack2EncryptedDataLength() throws jpos.JposException- Specified by:
getTrack2EncryptedDataLength
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getTrack3EncryptedData
public byte[] getTrack3EncryptedData() throws jpos.JposException- Specified by:
getTrack3EncryptedData
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getTrack3EncryptedDataLength
public int getTrack3EncryptedDataLength() throws jpos.JposException- Specified by:
getTrack3EncryptedDataLength
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getTrack4EncryptedData
public byte[] getTrack4EncryptedData() throws jpos.JposException- Specified by:
getTrack4EncryptedData
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getTrack4EncryptedDataLength
public int getTrack4EncryptedDataLength() throws jpos.JposException- Specified by:
getTrack4EncryptedDataLength
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getWriteCardType
- Specified by:
getWriteCardType
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
setWriteCardType
- Specified by:
setWriteCardType
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
getEncodingMaxLength
public int getEncodingMaxLength() throws jpos.JposException- Specified by:
getEncodingMaxLength
in interfacejpos.services.MSRService110
- Throws:
jpos.JposException
-
getTracksToWrite
public int getTracksToWrite() throws jpos.JposException- Specified by:
getTracksToWrite
in interfacejpos.services.MSRService110
- Throws:
jpos.JposException
-
setTracksToWrite
public void setTracksToWrite(int i) throws jpos.JposException- Specified by:
setTracksToWrite
in interfacejpos.services.MSRService110
- Throws:
jpos.JposException
-
getTrack4Data
public byte[] getTrack4Data() throws jpos.JposException- Specified by:
getTrack4Data
in interfacejpos.services.MSRService15
- Throws:
jpos.JposException
-
getTransmitSentinels
public boolean getTransmitSentinels() throws jpos.JposException- Specified by:
getTransmitSentinels
in interfacejpos.services.MSRService15
- Throws:
jpos.JposException
-
setTransmitSentinels
public void setTransmitSentinels(boolean b) throws jpos.JposException- Specified by:
setTransmitSentinels
in interfacejpos.services.MSRService15
- Throws:
jpos.JposException
-
getAccountNumber
- Specified by:
getAccountNumber
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getDecodeData
public boolean getDecodeData() throws jpos.JposException- Specified by:
getDecodeData
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
setDecodeData
public void setDecodeData(boolean b) throws jpos.JposException- Specified by:
setDecodeData
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getErrorReportingType
public int getErrorReportingType() throws jpos.JposException- Specified by:
getErrorReportingType
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
setErrorReportingType
public void setErrorReportingType(int i) throws jpos.JposException- Specified by:
setErrorReportingType
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getExpirationDate
- Specified by:
getExpirationDate
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getFirstName
- Specified by:
getFirstName
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getMiddleInitial
- Specified by:
getMiddleInitial
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getParseDecodeData
public boolean getParseDecodeData() throws jpos.JposException- Specified by:
getParseDecodeData
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
setParseDecodeData
public void setParseDecodeData(boolean b) throws jpos.JposException- Specified by:
setParseDecodeData
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getServiceCode
- Specified by:
getServiceCode
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getSuffix
- Specified by:
getSuffix
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getSurname
- Specified by:
getSurname
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getTitle
- Specified by:
getTitle
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getTrack1Data
public byte[] getTrack1Data() throws jpos.JposException- Specified by:
getTrack1Data
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getTrack1DiscretionaryData
public byte[] getTrack1DiscretionaryData() throws jpos.JposException- Specified by:
getTrack1DiscretionaryData
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getTrack2Data
public byte[] getTrack2Data() throws jpos.JposException- Specified by:
getTrack2Data
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getTrack2DiscretionaryData
public byte[] getTrack2DiscretionaryData() throws jpos.JposException- Specified by:
getTrack2DiscretionaryData
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getTrack3Data
public byte[] getTrack3Data() throws jpos.JposException- Specified by:
getTrack3Data
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
getTracksToRead
public int getTracksToRead() throws jpos.JposException- Specified by:
getTracksToRead
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
setTracksToRead
public void setTracksToRead(int i) throws jpos.JposException- Specified by:
setTracksToRead
in interfacejpos.services.MSRService12
- Throws:
jpos.JposException
-
clearInputProperties
public void clearInputProperties() throws jpos.JposExceptionDescription copied from class:JposBase
Common method clearInputProperties, see UPOS specification- Specified by:
clearInputProperties
in interfacejpos.services.MSRService110
- Overrides:
clearInputProperties
in classJposBase
- Throws:
jpos.JposException
- see UPOS specification
-
authenticateDevice
public void authenticateDevice(byte[] response) throws jpos.JposException- Specified by:
authenticateDevice
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
deauthenticateDevice
public void deauthenticateDevice(byte[] response) throws jpos.JposException- Specified by:
deauthenticateDevice
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
retrieveCardProperty
- Specified by:
retrieveCardProperty
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
retrieveDeviceAuthenticationData
public void retrieveDeviceAuthenticationData(byte[][] challenge) throws jpos.JposException- Specified by:
retrieveDeviceAuthenticationData
in interfacejpos.services.MSRService113
- Throws:
jpos.JposException
-
retrieveDeviceAuthenticationData
public void retrieveDeviceAuthenticationData(byte[] challenge) throws jpos.JposException- Specified by:
retrieveDeviceAuthenticationData
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
updateKey
- Specified by:
updateKey
in interfacejpos.services.MSRService112
- Throws:
jpos.JposException
-
writeTracks
public void writeTracks(byte[][] data, int timeout) throws jpos.JposException- Specified by:
writeTracks
in interfacejpos.services.MSRService110
- Throws:
jpos.JposException
-