use of org.openecard.common.apdu.ExternalAuthentication in project open-ecard by ecsec.
the class TerminalAuthentication method externalAuthentication.
/**
* Performs an External Authentication.
* Sends an External Authentication APDU. (Protocol step 4)
* See BSI-TR-03110, version 2.10, part 3, B.11.7.
*
* @param terminalSignature Terminal signature
* @throws ProtocolException
*/
public void externalAuthentication(byte[] terminalSignature) throws ProtocolException {
try {
CardCommandAPDU externalAuthentication = new ExternalAuthentication(terminalSignature);
externalAuthentication.transmit(dispatcher, slotHandle);
} catch (APDUException e) {
throw new ProtocolException(e.getResult());
}
}
Aggregations