public class DukptTrackData extends TrackData
DukptTrackData
class represents the track data after swiping
a card from the reader using DUKPT mode.BATTERY_STATUS_FULL, BATTERY_STATUS_LOW, mBatteryStatus, mTrack1ErrorCode, mTrack1Length, mTrack2ErrorCode, mTrack2Length, TRACK_ERROR_ES, TRACK_ERROR_LRC, TRACK_ERROR_PARITY, TRACK_ERROR_SS, TRACK_ERROR_SUCCESS
Constructor and Description |
---|
DukptTrackData()
Creates an instance of
DukptTrackData . |
DukptTrackData(byte[] buffer)
Initializes the track data from the byte array.
|
DukptTrackData(byte[] buffer,
int offset,
int byteCount)
Initializes the track data from the byte array.
|
Modifier and Type | Method and Description |
---|---|
void |
fromByteArray(byte[] buffer,
int offset,
int byteCount)
Initializes the track data from the byte array.
|
byte[] |
getKeySerialNumber()
Gets the key serial number.
|
byte[] |
getTrack1Data()
Gets the track 1 data.
|
byte[] |
getTrack1Mac()
Gets the track 1 MAC.
|
java.lang.String |
getTrack1MaskedData()
Gets the track 1 masked data.
|
byte[] |
getTrack2Data()
Gets the track 2 data.
|
byte[] |
getTrack2Mac()
Gets the track 2 MAC.
|
java.lang.String |
getTrack2MaskedData()
Gets the track 2 masked data.
|
fromByteArray, getBatteryStatus, getTrack1ErrorCode, getTrack1Length, getTrack2ErrorCode, getTrack2Length
public DukptTrackData()
DukptTrackData
.public DukptTrackData(byte[] buffer)
buffer
- the buffer.public DukptTrackData(byte[] buffer, int offset, int byteCount)
buffer
- the buffer.offset
- the offset.byteCount
- the number of bytes.public void fromByteArray(byte[] buffer, int offset, int byteCount)
TrackData
fromByteArray
in class TrackData
buffer
- the buffer.offset
- the offset.byteCount
- the number of bytes.public byte[] getTrack1Data()
public byte[] getTrack1Mac()
public byte[] getTrack2Data()
public byte[] getTrack2Mac()
public java.lang.String getTrack1MaskedData()
public java.lang.String getTrack2MaskedData()
public byte[] getKeySerialNumber()
Copyright © 2013-2018, Advanced Card Systems Ltd. All rights reserved.