Search in sources :

Example 1 with ExternalAuthentication

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());
    }
}
Also used : CardCommandAPDU(org.openecard.common.apdu.common.CardCommandAPDU) ProtocolException(org.openecard.common.sal.protocol.exception.ProtocolException) APDUException(org.openecard.common.apdu.exception.APDUException) ExternalAuthentication(org.openecard.common.apdu.ExternalAuthentication)

Aggregations

ExternalAuthentication (org.openecard.common.apdu.ExternalAuthentication)1 CardCommandAPDU (org.openecard.common.apdu.common.CardCommandAPDU)1 APDUException (org.openecard.common.apdu.exception.APDUException)1 ProtocolException (org.openecard.common.sal.protocol.exception.ProtocolException)1