public class EMVCard extends Card
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
myATR |
static byte[] |
PAY1_SYS_DDF01 |
static byte[] |
PAY2_SYS_DDF01 |
PROTOCOL_ANY, PROTOCOL_RAW, PROTOCOL_T0, PROTOCOL_T1, PROTOCOL_T15| Constructor and Description |
|---|
EMVCard() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getChallenge() |
byte[] |
GetData(byte[] tag) |
byte[] |
GetData(byte[] tag,
int LE) |
int |
GetPinTryCounter() |
byte[] |
GetProcessingOptions(byte[] PDOL) |
boolean |
IdentifyCard(byte[] ATR)
Subclasses should override this method to identify the right card in the reader.
|
void |
internalAuthenticate(byte[] data) |
byte[] |
ReadRecord(byte SFI,
byte no,
int len) |
byte[] |
Select_1PAY_SYS_DDF01() |
byte[] |
Select_2PAY_SYS_DDF01() |
void |
SelectFile(byte[] id)
Basic.
|
void |
SelectMF(int id) |
void |
VerifyPIN(byte[] pin,
boolean transmitInPlaintext) |
void |
VerifyPIN(long pin,
boolean transmitInPlaintext) |
void |
VerifyPIN(java.lang.String pin,
boolean transmitInPlaintext) |
AttachReader, Disconnect, finalize, GetSW1SW2, GetSW1SW2Bytes, isPresent, Select, SelectApplication, Transmit, Transmitprotected byte[] myATR
public static final byte[] PAY1_SYS_DDF01
public static final byte[] PAY2_SYS_DDF01
public boolean IdentifyCard(byte[] ATR)
Cardexample:
protected boolean IdentifyCard(byte[] ATR){
myATR = ATR;
if (SelectPSE() != null)
return true;
else
return false;
}
IdentifyCard in class CardATR - Answer to reset of the cardpublic void SelectFile(byte[] id)
throws SCException
SCExceptionpublic byte[] Select_1PAY_SYS_DDF01()
public byte[] Select_2PAY_SYS_DDF01()
public void SelectMF(int id)
throws SCException
SCExceptionpublic byte[] ReadRecord(byte SFI,
byte no,
int len)
throws SCException
SCExceptionpublic byte[] GetProcessingOptions(byte[] PDOL)
throws SCException
SCExceptionpublic void internalAuthenticate(byte[] data)
throws SCException
SCExceptionpublic byte[] getChallenge()
throws SCException
SCExceptionpublic byte[] GetData(byte[] tag,
int LE)
throws SCException
SCExceptionpublic byte[] GetData(byte[] tag)
throws SCException
SCExceptionpublic void VerifyPIN(byte[] pin,
boolean transmitInPlaintext)
throws SCException
SCExceptionpublic int GetPinTryCounter()
throws SCException
SCExceptionpublic void VerifyPIN(java.lang.String pin,
boolean transmitInPlaintext)
throws SCException
SCExceptionpublic void VerifyPIN(long pin,
boolean transmitInPlaintext)
throws SCException
SCExceptionCopyright © 2025. All rights reserved.