|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cryptware.jsmartosapi.SmartOS
public class SmartOS
Base class for all SmartOS smart cards
| Field Summary | |
|---|---|
static int |
LIFECYCLE_FORMATTED
Lifecycle formatted |
static int |
LIFECYCLE_UNFORMATTED
Lifecycle unformatted |
static int |
MODE_CARDID
Mode CardId |
static int |
MODE_CARDINFO
Mode CardInfo |
static int |
MODE_CARDLIFECYCLE
Mode CardLifeCycle |
static int |
MODE_FORMAT_KEY_ERR_COUNT
Mode Card FormatKeyErrorCounter |
| Constructor Summary | |
|---|---|
SmartOS(SmartCard sc)
Constructs a SmartOS object |
|
| Method Summary | |
|---|---|
ResponseAPDU |
ChangeReferenceData(byte id,
java.lang.String pin)
ChangeReferenceData Command Sends a Change Reference Data Command APDU with specified pin |
ResponseAPDU |
Format(java.lang.String key)
Sends a Format Command APDU with specified key |
ResponseAPDU |
GetData(byte mode)
GetData Command Sends a Get Data Command APDU with specified mode |
ResponseAPDU |
VerifyPIN(byte id,
java.lang.String pin)
VerifyPIN Command Sends a Verify PIN Command APDU with specified PIN |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MODE_CARDINFO
public static final int MODE_CARDID
public static final int MODE_CARDLIFECYCLE
public static final int MODE_FORMAT_KEY_ERR_COUNT
public static final int LIFECYCLE_UNFORMATTED
public static final int LIFECYCLE_FORMATTED
| Constructor Detail |
|---|
public SmartOS(SmartCard sc)
sc - SmartCard object used to send commands| Method Detail |
|---|
public ResponseAPDU Format(java.lang.String key)
key - Format Key (must be 10 bytes long)
public ResponseAPDU GetData(byte mode)
mode - Mode value:
public ResponseAPDU VerifyPIN(byte id,
java.lang.String pin)
id - the PIN identifier: pin - the PIN
public ResponseAPDU ChangeReferenceData(byte id,
java.lang.String pin)
id - the PIN identifier: pin - the PIN
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||