public class SmartCardMRTDConnection extends java.lang.Object implements ApduConnection
Modifier and Type | Field and Description |
---|---|
(package private) long |
endtime |
IsoDepCardHandler |
idch |
(package private) long |
starttime |
Constructor and Description |
---|
SmartCardMRTDConnection(BasicIOChannel ioChannel,
java.lang.String[] pace) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Cierra la conexión con la tarjeta inteligente actualmente insertada en el lector.
|
java.lang.String |
getCanNumber() |
PaceOperator |
getPace()
Para DNIe 4.0
|
boolean |
isDNIe40Based() |
boolean |
isOpen()
Indica si la conexión está abierta o no.
|
void |
open()
Abre la conexión con la tarjeta inteligente actualmente insertada en el lector.
|
DG1_Dnie |
readDG1() |
DG11 |
readDG11() |
DG13 |
readDG13() |
DG2 |
readDG2() |
DG7 |
readDG7() |
EF_COM |
readEFCOM() |
EF_SOD |
readEFSOD() |
byte[] |
reset()
Reinicializa la conexión con la tarjeta inteligente.
|
public IsoDepCardHandler idch
long starttime
long endtime
public SmartCardMRTDConnection(@NotNull BasicIOChannel ioChannel, @NotNull java.lang.String[] pace) throws java.io.IOException
ioChannel
- pace
- java.io.IOException
public java.lang.String getCanNumber()
public boolean isDNIe40Based()
public void open() throws ApduConnectionException
ApduConnection
open
in interface ApduConnection
ApduConnectionException
- Cuando ocurre cualquier problema abriendo la conexiónApduConnection.close()
public void close() throws ApduConnectionException
ApduConnection
close
in interface ApduConnection
ApduConnectionException
- Cuando ocurre cualquier problema cerrando la conexiónApduConnection.open()
public byte[] reset() throws ApduConnectionException
ApduConnection
reset
in interface ApduConnection
ApduConnectionException
- Cuando ocurre cualquier problema reinicializando la conexiónpublic PaceOperator getPace()
public EF_COM readEFCOM() throws java.io.IOException
java.io.IOException
public EF_SOD readEFSOD() throws java.io.IOException
java.io.IOException
public DG1_Dnie readDG1() throws java.io.IOException
java.io.IOException
public DG11 readDG11() throws java.io.IOException
TlvException
java.io.IOException
public DG13 readDG13() throws java.io.IOException
TlvException
java.io.IOException
public DG2 readDG2() throws java.io.IOException
java.io.IOException
public DG7 readDG7() throws java.io.IOException
java.io.IOException
public boolean isOpen()
ApduConnection
isOpen
in interface ApduConnection
true
si la conexión esta abierta, false
si está cerrada