Class CeresSc5
- java.lang.Object
-
- es.gob.jmulticard.card.AbstractSmartCard
-
- es.gob.jmulticard.card.iso7816four.AbstractIso7816FourCard
-
- es.gob.jmulticard.card.iso7816eight.AbstractIso7816EightCard
-
- es.gob.jmulticard.card.dnie.Dnie
-
- es.gob.jmulticard.card.dnie.ceressc.CeresSc5
-
- All Implemented Interfaces:
Card,CryptoCard,Cwa14890Card,Dni
public final class CeresSc5 extends Dnie
Tarjetas CERES v5.
-
-
Field Summary
-
Fields inherited from class es.gob.jmulticard.card.dnie.Dnie
rawConnection
-
-
Constructor Summary
Constructors Constructor Description CeresSc5(ApduConnection conn, javax.security.auth.callback.PasswordCallback pwc, CryptoHelper cryptoHlpr, javax.security.auth.callback.CallbackHandler ch)Construye una clase que representa una tarjeta FNMT CERES v5.x con canal EAC 2.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCardName()Obtiene el nombre de la tarjeta.protected Cwa14890PrivateConstantsgetCwa14890PrivateConstants()Obtiene las constantes privadas CWA-14890 para el cifrado de canal.protected Cwa14890PublicConstantsgetCwa14890PublicConstants()Obtiene las constantes públicas CWA-14890 para el cifrado de canal.private static ApduConnectiongetPaceConnection(ApduConnection con, javax.security.auth.callback.CallbackHandler ch, CryptoHelper cryptoHelper)-
Methods inherited from class es.gob.jmulticard.card.dnie.Dnie
changePIN, cipherData, connect, externalAuthentication, getAliases, getCertificate, getChrCCvIfd, getCryptoHelper, getIccCertPublicKey, getIdesp, getIfdKeyLength, getIfdPrivateKey, getInternalAuthenticateMessage, getInternalPasswordCallback, getPasswordCallback, getPinMessage, getPinRetriesLeft, getPrivateKey, getRefIccPrivateKey, getSerialNumber, isSecurityChannelOpen, needsPinForLoadingCerts, openSecureChannelIfNotAlreadyOpened, openSecureChannelIfNotAlreadyOpened, selectMasterFile, setCallbackHandler, setKeysToAuthentication, setPasswordCallback, sign, signInternal, toString, verifyIcc, verifyIfdCertificateChain, verifyPin
-
Methods inherited from class es.gob.jmulticard.card.iso7816eight.AbstractIso7816EightCard
verifyCertificate
-
Methods inherited from class es.gob.jmulticard.card.iso7816four.AbstractIso7816FourCard
getChallenge, readAllRecords, readBinaryComplete, selectFileById, selectFileByIdAndRead, selectFileByLocationAndRead, selectFileByName, selectFileByName, setPublicKeyToVerification
-
Methods inherited from class es.gob.jmulticard.card.AbstractSmartCard
getCla, getConnection, sendArbitraryApdu, setConnection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface es.gob.jmulticard.card.cwa14890.Cwa14890Card
getChallenge
-
-
-
-
Constructor Detail
-
CeresSc5
public CeresSc5(ApduConnection conn, javax.security.auth.callback.PasswordCallback pwc, CryptoHelper cryptoHlpr, javax.security.auth.callback.CallbackHandler ch) throws ApduConnectionException, IcaoException
Construye una clase que representa una tarjeta FNMT CERES v5.x con canal EAC 2.- Parameters:
conn- Conexión con la tarjeta.pwc- PasswordCallback para obtener el PIN del DNIe.cryptoHlpr- Funcionalidades criptográficas de utilidad que pueden variar entre máquinas virtuales.ch- Gestor de callbacks para la solicitud de datos al usuario.- Throws:
ApduConnectionException- Si la conexión con la tarjeta se proporciona cerrada y no es posible abrirla.IcaoException- Si se producen errores abriendo el canal PACE.
-
-
Method Detail
-
getPaceConnection
private static ApduConnection getPaceConnection(ApduConnection con, javax.security.auth.callback.CallbackHandler ch, CryptoHelper cryptoHelper) throws ApduConnectionException, IcaoException
- Throws:
ApduConnectionExceptionIcaoException
-
getCardName
public java.lang.String getCardName()
Description copied from class:AbstractSmartCardObtiene el nombre de la tarjeta.- Overrides:
getCardNamein classDnie- Returns:
- Nombre de la tarjeta.
-
getCwa14890PublicConstants
protected Cwa14890PublicConstants getCwa14890PublicConstants()
Description copied from class:DnieObtiene las constantes públicas CWA-14890 para el cifrado de canal.- Overrides:
getCwa14890PublicConstantsin classDnie- Returns:
- Constantes públicas CWA-14890 para el cifrado de canal.
-
getCwa14890PrivateConstants
protected Cwa14890PrivateConstants getCwa14890PrivateConstants()
Description copied from class:DnieObtiene las constantes privadas CWA-14890 para el cifrado de canal.- Overrides:
getCwa14890PrivateConstantsin classDnie- Returns:
- Constantes privadas CWA-14890 para el cifrado de canal.
-
-