|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cryptware.jsmartosapi.SmartOS
com.cryptware.jsmartosapi.SmartOSKW
public class SmartOSKW
Class for SmartOSK1 smart cards
| Field Summary | |
|---|---|
static int |
ADMIN_PIN
Admin PIN |
static int |
MODE_FORMAT_ADMIN_PIN_ERR_COUNT
Mode CardAdminPINErrorCounter |
static int |
MODE_FORMAT_USER_PIN_ERR_COUNT
Mode CardUserPINErrorCounter |
static int |
USER_PIN
User PIN |
| Fields inherited from class com.cryptware.jsmartosapi.SmartOS |
|---|
LIFECYCLE_FORMATTED, LIFECYCLE_UNFORMATTED, MODE_CARDID, MODE_CARDINFO, MODE_CARDLIFECYCLE, MODE_FORMAT_KEY_ERR_COUNT |
| Constructor Summary | |
|---|---|
SmartOSKW(SmartCard sc)
Constructor |
|
| Method Summary | |
|---|---|
ResponseAPDU |
DecreaseBalance(int amount)
DecreaseBalance Command Decreases the balance by the specified value |
ResponseAPDU |
GetBalance()
GetBalance Command |
ResponseAPDU |
IncreaseBalance(int amount)
IncreaseBalance Command Increases the balance by the specified value |
ResponseAPDU |
ReadOwnerData(byte hi,
byte low,
byte len)
ReadOwnerData Command Sends a Read Owner Data Command APDU with specified offset |
ResponseAPDU |
SetBalance(int balance)
SetBalance Command Set the balance to the specified value |
ResponseAPDU |
WriteOwnerData(byte hi,
byte low,
byte[] toWrite)
WriteOwnerData Command Sends a Write Owner Data Command APDU with specified offset and data |
| Methods inherited from class com.cryptware.jsmartosapi.SmartOS |
|---|
ChangeReferenceData, Format, GetData, VerifyPIN |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int USER_PIN
public static final int ADMIN_PIN
public static final int MODE_FORMAT_USER_PIN_ERR_COUNT
public static final int MODE_FORMAT_ADMIN_PIN_ERR_COUNT
| Constructor Detail |
|---|
public SmartOSKW(SmartCard sc)
sc - | Method Detail |
|---|
public ResponseAPDU ReadOwnerData(byte hi,
byte low,
byte len)
hi - highest byte of the offsetlow - offset lowest byte of the offsetlen - number of bytes to read
public ResponseAPDU WriteOwnerData(byte hi,
byte low,
byte[] toWrite)
hi - highest byte of the offsetlow - offset lowest byte of the offsettoWrite - bytes to write
public ResponseAPDU SetBalance(int balance)
balance -
public ResponseAPDU GetBalance()
public ResponseAPDU IncreaseBalance(int amount)
amount - Amount to add
public ResponseAPDU DecreaseBalance(int amount)
amount - to subtract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||