com.cryptware.jsmartosapi
Class SmartOSK1

java.lang.Object
  extended by com.cryptware.jsmartosapi.SmartOS
      extended by com.cryptware.jsmartosapi.SmartOSK1

public class SmartOSK1
extends SmartOS


Field Summary
static byte PIN
          PIN identifier
static byte PRIVATE_MEMORY
          Private memory identifier
static byte PUBLIC_MEMORY
          Public memory identifier
static byte PUK
          PUK memory identifier
 
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
SmartOSK1(SmartCard sc)
          Constructor
 
Method Summary
 ResponseAPDU ReadBinary(byte hi, byte low, byte len)
          ReadBinary Command
Sends a Read Binary Command APDU with specified offset
 ResponseAPDU UpdateBinary(short hi, short low, byte[] toWrite)
          UpdateBinary Command
Sends a Update Binary 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_MEMORY

public static final byte PUBLIC_MEMORY
Public memory identifier

See Also:
Constant Field Values

PRIVATE_MEMORY

public static final byte PRIVATE_MEMORY
Private memory identifier

See Also:
Constant Field Values

PIN

public static final byte PIN
PIN identifier

See Also:
Constant Field Values

PUK

public static final byte PUK
PUK memory identifier

See Also:
Constant Field Values
Constructor Detail

SmartOSK1

public SmartOSK1(SmartCard sc)
Constructor

Parameters:
sc - the smart card
Method Detail

ReadBinary

public ResponseAPDU ReadBinary(byte hi,
                               byte low,
                               byte len)
ReadBinary Command
Sends a Read Binary Command APDU with specified offset

Parameters:
hi - highest byte of the offset
low - offset lowest byte of the offset
len - number of bytes to read
Returns:
the response

UpdateBinary

public ResponseAPDU UpdateBinary(short hi,
                                 short low,
                                 byte[] toWrite)
UpdateBinary Command
Sends a Update Binary Command APDU with specified offset and data

Parameters:
hi - highest byte of the offset
low - offset lowest byte of the offset
toWrite - bytes to write
Returns:
the response