Field Summary |
|
final static byte | INS_MSE INS byte for command APDU. |
final static byte | INS_NEW INS byte for command APDU. |
final static byte | INS_PSO INS byte for command APDU. |
final static byte | INS_READ INS byte for command APDU. |
final static byte | INS_SELECT INS byte for command APDU. |
final static byte | INS_UPDATE INS byte for command APDU. |
final static byte | INS_VERIFY INS byte for command APDU. |
byte[] | PIN_REFs PIN identifiers. |
OwnerPIN[] | PINs PIN objects. |
DFile | base Root DF for WIM application. |
Cipher | cipher Cipher object. |
File | current Currently selected file. |
MessageDigest | digest MessageDigest object for key hash calculation. |
final static short | digestLength DigestInfo structure size for RSA signature. |
boolean | isKeyFileSet Flag that indicates that private key path was set properly. |
boolean | isSERestored Flag that indicates that SE is restored. |
short | keyNum Private key number for signature generation. |
PrivateKey[] | keys Private keys. |
static byte[] | signBuffer Temporaru buffer for RSA signature. |
static boolean | supportKeyGeneration If false, key generation is disabled. |
DFile | top Root DF for entire file structure. |
static short | unusedKeys Number of unused keys. |
static boolean | verifyPINs If false, applet always report that PINs are validated. |
final static byte | x0 Constant that is used to avoid '(short) x' notation. |
final static byte | x1 Constant that is used to avoid '(short) x' notation. |
final static byte | x2 Constant that is used to avoid '(short) x' notation. |
final static byte | x3 Constant that is used to avoid '(short) x' notation. |
final static byte | x4 Constant that is used to avoid '(short) x' notation. |
final static byte | x5 Constant that is used to avoid '(short) x' notation. |
final static byte | x6 Constant that is used to avoid '(short) x' notation. |
final static byte | x8 Constant that is used to avoid '(short) x' notation. |
Method Summary |
|
public void | deselect() Called by the JCRE to inform this applet that it has been
deselected. |
static byte[] | encodePublicKey(RSAPublicKey pk, byte[] data) Generates DER encoded RSA public key. |
static short | getDERSize(short i) Returns the size of DER object for given value size. |
File | getFile(byte[] data, short index, short l) Returns file object specified by path in the buffer. |
byte[] | getKeyHash(RSAPublicKey pk, byte[] data) Calculates identifier for public RSA key. |
void | init() Initialises the WIM data structures. |
public static void | install(byte[] bArray, short bOffset, byte bLength) To create an instance of the Applet subclass, the JCRE will call
this static method first. |
public boolean | isValidated(OwnerPIN pin) Verifies that PIN is validated. |
void | manageSE(APDU apdu) Hanldes MANAGE SECURITY ENVIRONMENT APDUs. |
void | newKey(APDU apdu) Allocates new key and, if necessary, PIN.
Parameters: apdu - the command APDU. |
public void | process(APDU apdu) Main entry point. |
static short | putLength(byte[] data, short offset, short length) Places encoded length of DER object into the buffer. |
void | read(APDU apdu) Handles READ BINARY APDU. |
File | readFile(DFile parent) Creates new file object. |
public boolean | select() Called by the JCRE to inform this applet that it has been
selected. |
File | select(short id) Selects the file specified by file identifier. |
void | selectFile(APDU apdu) Handles SELECT FILE APDU. |
void | sign(APDU apdu) Handles PSO-CDS APDU command. |
void | update(APDU apdu) Handles UPDATE BINARY apdu. |
void | verify(APDU apdu) Handles PIN related APDUs. |