use of es.gob.jmulticard.card.iso7816four.Iso7816FourCardException in project jmulticard by ctt-gob-es.
the class Dnie method getIccCertEncoded.
/**
* {@inheritDoc}
*/
@Override
public byte[] getIccCertEncoded() throws IOException {
byte[] iccCertEncoded;
try {
selectMasterFile();
iccCertEncoded = selectFileByIdAndRead(CERT_ICC_FILE_ID);
} catch (final ApduConnectionException e) {
throw new IOException(// $NON-NLS-1$
"Error en el envio de APDU para la seleccion del certificado de componente de la tarjeta: " + e, // $NON-NLS-1$
e);
} catch (final Iso7816FourCardException e) {
// $NON-NLS-1$
throw new IOException("Error en la seleccion del certificado de componente de la tarjeta: " + e, e);
}
return iccCertEncoded;
}
Aggregations