cn.com.BTPaySDK
Class IDTMSRData

java.lang.Object
  extended by cn.com.BTPaySDK.IDTMSRData

public class IDTMSRData
extends java.lang.Object

This class provides all information of card data.
Application can get the card data by calling the Properties of class IDTMSRData when finish swiping.


Field Summary
 byte captureEncodeType
          Get the swiped card decoded status.
0x00:decoded data success;
Bit0:1-track1 data error;
Bit1:1-track2 data error;
Bit2:1-track3 data error;
Bit3:1-track1 encrypted data error;
Bit4:1-track2 encrypted data error;
Bit5:1-track3 encrypted data error;
Bit6:1-KSN error;
 byte captureEncryptType
          Get the swiped card encrypted type.
0x01:TDES;
0x02:AES;
 byte[] cardData
          Get the swiped card data.
Containing complete unparsed swipe data as received from MSR.
 byte cardType
          Get the swiped card type.
MSR card type:
0x80:ISO/ABA format
0x81:AAMVA format
0x83:Other
0x84:Raw; undecoded format
 byte[] encTrack1
          Get the swiped card Track1 data.
A byte array containing Track1 data.
 byte[] encTrack2
          Get the swiped card Track2 data.
 byte[] encTrack3
          Get the swiped card Track3 data.
 byte[] KSN
          Get the swiped card KSN (Key Serial Number).
A byte array containing 10 bytes.
 java.lang.String track1
          Get the swiped card Track1 encrypted data.
A string containing Track1 encrypted data expressed as hex characters.
 int track1Length
          Get the swiped card length of Track1 data.
 java.lang.String track2
          Get the swiped card Track2 encrypted data.
A string containing Track2 encrypted data expressed as hex characters.
 int track2Length
          Get the swiped card length of Track2 data.
 java.lang.String track3
          Get the swiped card Track3 encrypted data.
A string containing Track3 encrypted data expressed as hex characters.
 int track3Length
          Get the swiped card length of Track3 data.
 
Constructor Summary
IDTMSRData()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cardData

public byte[] cardData
Get the swiped card data.
Containing complete unparsed swipe data as received from MSR.


encTrack1

public byte[] encTrack1
Get the swiped card Track1 data.
A byte array containing Track1 data.


encTrack2

public byte[] encTrack2
Get the swiped card Track2 data.
A byte array containing Track2 data.


encTrack3

public byte[] encTrack3
Get the swiped card Track3 data.
A byte array containing Track3 data.


track1

public java.lang.String track1
Get the swiped card Track1 encrypted data.
A string containing Track1 encrypted data expressed as hex characters.


track2

public java.lang.String track2
Get the swiped card Track2 encrypted data.
A string containing Track2 encrypted data expressed as hex characters.


track3

public java.lang.String track3
Get the swiped card Track3 encrypted data.
A string containing Track3 encrypted data expressed as hex characters.


KSN

public byte[] KSN
Get the swiped card KSN (Key Serial Number).
A byte array containing 10 bytes.


track1Length

public int track1Length
Get the swiped card length of Track1 data.


track2Length

public int track2Length
Get the swiped card length of Track2 data.


track3Length

public int track3Length
Get the swiped card length of Track3 data.


cardType

public byte cardType
Get the swiped card type.
MSR card type:
0x80:ISO/ABA format
0x81:AAMVA format
0x83:Other
0x84:Raw; undecoded format


captureEncodeType

public byte captureEncodeType
Get the swiped card decoded status.
0x00:decoded data success;
Bit0:1-track1 data error;
Bit1:1-track2 data error;
Bit2:1-track3 data error;
Bit3:1-track1 encrypted data error;
Bit4:1-track2 encrypted data error;
Bit5:1-track3 encrypted data error;
Bit6:1-KSN error;


captureEncryptType

public byte captureEncryptType
Get the swiped card encrypted type.
0x01:TDES;
0x02:AES;

Constructor Detail

IDTMSRData

public IDTMSRData()