* rename hardwallet to keycard * rename hardwallet to keycard * rename hardwallet to keycard * change constants * add convenience GlobalPlatform methods * add javadoc to all classes
24 lines
508 B
Java
24 lines
508 B
Java
package im.status.keycard.io;
|
|
|
|
import java.io.IOException;
|
|
|
|
/**
|
|
* A channel to transcieve ISO7816-4 APDUs.
|
|
*/
|
|
public interface CardChannel {
|
|
/**
|
|
* Sends the given C-APDU and returns an R-APDU.
|
|
*
|
|
* @param cmd the command to send
|
|
* @return the card response
|
|
* @throws IOException communication error
|
|
*/
|
|
APDUResponse send(APDUCommand cmd) throws IOException;
|
|
|
|
/**
|
|
* True if connected, false otherwise
|
|
* @return true if connected, false otherwise
|
|
*/
|
|
boolean isConnected();
|
|
}
|