use secure channel if open

This commit is contained in:
Michele Balistreri 2022-07-25 12:30:27 +02:00
parent 953c84514a
commit 31f4ab5a90
1 changed files with 2 additions and 2 deletions

View File

@ -278,8 +278,8 @@ public class KeycardCommandSet {
* @throws IOException communication error
*/
public APDUResponse identifyCard(byte[] challenge) throws IOException {
APDUCommand identifyCard = new APDUCommand(0x80, INS_IDENTIFY_CARD, 0, 0, challenge);
return apduChannel.send(identifyCard);
APDUCommand identifyCard = secureChannel.protectedCommand(0x80, INS_IDENTIFY_CARD, 0, 0, challenge);
return secureChannel.transmit(apduChannel, identifyCard);
}
/**