Class IcaoMrtdWithBac
- All Implemented Interfaces:
Card, CryptoCard, Cwa14890Card, Dni, MrtdLds1
Pasaporte accedido de forma inalámbrica mediante BAC.
-
Field Summary
Fields inherited from class Dnie
rawConnectionFields inherited from interface MrtdLds1
FILE_ATR_INFO_LOCATION, FILE_CARD_ACCESS_LOCATION, FILE_CARD_SECURITY_LOCATION, FILE_COM_LOCATION, FILE_DG01_LOCATION, FILE_DG02_LOCATION, FILE_DG03_LOCATION, FILE_DG04_LOCATION, FILE_DG05_LOCATION, FILE_DG06_LOCATION, FILE_DG07_LOCATION, FILE_DG08_LOCATION, FILE_DG09_LOCATION, FILE_DG10_LOCATION, FILE_DG11_LOCATION, FILE_DG12_LOCATION, FILE_DG13_LOCATION, FILE_DG14_LOCATION, FILE_DG15_LOCATION, FILE_DG16_LOCATION, FILE_DIR_LOCATION, FILE_SOD_LOCATION -
Constructor Summary
ConstructorsConstructorDescriptionIcaoMrtdWithBac(ApduConnection conn, CryptoHelper cryptoHlpr) Construye una clase que representa un MRTD accedido de forma inalámbrica mediante BAC.. -
Method Summary
Modifier and TypeMethodDescriptionObtiene el nombre de la tarjeta.voidEstablece y abre el canal seguro CWA-14890 si no lo estaba ya.byte[]sign(byte[] data, String signAlgorithm, PrivateKeyReference privateKeyReference) Realiza una firma electrónica.toString()Methods inherited from class Dnie3
checkSecurityObjects, getAtrInfo, getCardAccess, getCardSecurity, getCom, getDg1, getDg10, getDg11, getDg12, getDg13, getDg14, getDg15, getDg16, getDg2, getDg3, getDg4, getDg5, getDg6, getDg7, getDg8, getDg9, getDir, getPinRetriesLeft, getSod, needsPinForLoadingCerts, openPinChannel, openSecureChannelIfNotAlreadyOpened, openUserChannelMethods inherited from class Dnie
changePIN, cipherData, connect, externalAuthentication, getAliases, getCertificate, getChrCCvIfd, getCryptoHelper, getCwa14890PrivateConstants, getCwa14890PublicConstants, getIccCertPublicKey, getIdesp, getIfdKeyLength, getIfdPrivateKey, getInternalAuthenticateMessage, getInternalPasswordCallback, getPasswordCallback, getPinMessage, getPrivateKey, getRefIccPrivateKey, getSerialNumber, isSecurityChannelOpen, selectMasterFile, setCallbackHandler, setKeysToAuthentication, setPasswordCallback, signInternal, verifyIcc, verifyIfdCertificateChain, verifyPinMethods inherited from class AbstractIso7816EightCard
verifyCertificateMethods inherited from class AbstractIso7816FourCard
getChallenge, readAllRecords, readBinaryComplete, selectFileById, selectFileByIdAndRead, selectFileByLocationAndRead, selectFileByName, selectFileByName, setPublicKeyToVerificationMethods inherited from class AbstractSmartCard
getCla, getConnection, sendArbitraryApdu, setConnectionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Cwa14890Card
getChallenge
-
Constructor Details
-
IcaoMrtdWithBac
Construye una clase que representa un MRTD accedido de forma inalámbrica mediante BAC..- Parameters:
conn- Conexión con el lector NFC.cryptoHlpr- Clase de utilidad de funciones criptográficas.- Throws:
ApduConnectionException- Si no se puede establecer la conexión NFC.
-
-
Method Details
-
getCardName
Description copied from class:AbstractSmartCardObtiene el nombre de la tarjeta.- Overrides:
getCardNamein classDnie3- Returns:
- Nombre de la tarjeta.
-
openSecureChannelIfNotAlreadyOpened
public void openSecureChannelIfNotAlreadyOpened()Description copied from class:DnieEstablece y abre el canal seguro CWA-14890 si no lo estaba ya.- Overrides:
openSecureChannelIfNotAlreadyOpenedin classDnie3
-
toString
-
sign
Description copied from interface:CryptoCardRealiza una firma electrónica.- Specified by:
signin interfaceCryptoCard- Overrides:
signin classDnie- Parameters:
data- Datos a firmar.signAlgorithm- Algoritmo de firma.privateKeyReference- Referencia a la clave privada de firma.- Returns:
- Datos firmados (en el algoritmo y formato que determine la tarjeta).
-