|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cryptware.jscapi.SmartCard
public class SmartCard
Implements a Smart Card interface
Field Summary | |
---|---|
static java.lang.String |
PROTOCOL_DEFAULT
Use the default transmission parameters / card clock freq. |
static java.lang.String |
PROTOCOL_RAW
Raw Protocol |
static java.lang.String |
PROTOCOL_T0
T=0 Protocol |
static java.lang.String |
PROTOCOL_T1
T=1 Protocol |
static java.lang.String |
PROTOCOL_Tx
This is the mask of ISO defined transmission protocols (T=0, T=1) |
Method Summary | |
---|---|
void |
disconnect(boolean reset)
Disconnects from this smart card |
byte[] |
getATR()
Gets the ATR of this smart card |
java.lang.String |
getProtocol()
Gets the protocol of this smart card |
Reader |
getReader()
Get the reader that contains this smart card /** |
boolean |
isPresent()
Check if the smart card is still present in the reader |
ResponseAPDU |
send(CommandAPDU apdu)
Sends a command APDU to the smart card |
byte[] |
sendControl(int controlCode,
byte[] data)
Sends a control command to the smart card |
boolean |
WaitForSmartCardRemoved()
Stops execution and waits for smart card removal |
boolean |
WaitForSmartCardRemoved(int timeout)
Stops execution and waits for smart card removal in the given timeout |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROTOCOL_T0
public static final java.lang.String PROTOCOL_T1
public static final java.lang.String PROTOCOL_RAW
public static final java.lang.String PROTOCOL_Tx
public static final java.lang.String PROTOCOL_DEFAULT
Method Detail |
---|
public byte[] getATR()
public java.lang.String getProtocol()
public Reader getReader()
public boolean isPresent()
public void disconnect(boolean reset)
reset
- specifies if the smart card must be resetpublic boolean WaitForSmartCardRemoved()
public boolean WaitForSmartCardRemoved(int timeout)
timeout
-
public byte[] sendControl(int controlCode, byte[] data)
controlCode
- The control codedata
- The data to send
public ResponseAPDU send(CommandAPDU apdu)
apdu
- the command APDU to send
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |