use of es.gob.jmulticard.apdu.dnie.RetriesLeftApduCommand in project jmulticard by ctt-gob-es.
the class Dnie method getPinRetriesLeft.
private int getPinRetriesLeft() throws PinException {
final CommandApdu verifyCommandApdu = new RetriesLeftApduCommand();
final ResponseApdu verifyResponse;
try {
verifyResponse = getConnection().transmit(verifyCommandApdu);
} catch (final ApduConnectionException e) {
throw new PinException(// $NON-NLS-1$
"Error obteniendo el PIN del CallbackHandler: " + e);
}
return verifyResponse.getStatusWord().getLsb() - (byte) 0xC0;
}
use of es.gob.jmulticard.apdu.dnie.RetriesLeftApduCommand in project jmulticard by ctt-gob-es.
the class Ceres method getPinRetriesLeft.
private int getPinRetriesLeft() throws PinException {
final CommandApdu verifyCommandApdu = new RetriesLeftApduCommand();
final ResponseApdu verifyResponse;
try {
verifyResponse = getConnection().transmit(verifyCommandApdu);
} catch (final ApduConnectionException e) {
throw new PinException(// $NON-NLS-1$
"Error obteniendo el PIN del CallbackHandler: " + e, // $NON-NLS-1$
e);
}
return verifyResponse.getStatusWord().getLsb() - (byte) 0xC0;
}
Aggregations