Search in sources :

Example 1 with MSESetATCA

use of org.openecard.sal.protocol.eac.apdu.MSESetATCA in project open-ecard by ecsec.

the class ChipAuthentication method mseSetAT.

/**
 * Initializes the Chip Authentication protocol.
 * Sends an MSE:Set AT APDU. (Protocol step 1)
 * See BSI-TR-03110, version 2.10, part 3, B.11.1.
 *
 * @param oID Chip Authentication object identifier
 * @param keyID Key identifier
 * @throws ProtocolException
 */
public void mseSetAT(byte[] oID, byte[] keyID) throws ProtocolException {
    try {
        CardCommandAPDU mseSetAT = new MSESetATCA(oID, keyID);
        mseSetAT.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) MSESetATCA(org.openecard.sal.protocol.eac.apdu.MSESetATCA)

Aggregations

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 MSESetATCA (org.openecard.sal.protocol.eac.apdu.MSESetATCA)1