ds.ov2.test
Class Test_applet

java.lang.Object
  extended by javacard.framework.Applet
      extended by ds.ov2.util.Protocol_applet
          extended by ds.ov2.test.Test_applet

public class Test_applet
extends Protocol_applet

Main test applet class. Root class/object of the test applet. Extends Protocol_applet with applet specific code.

CPP Preprocessing
This class uses the following cpp defines: PACKAGE, PUBLIC
Execution Environment:
card
Author:
Hendrik Tews
Version:
$Revision: 1.24 $
Last Commit:
$Date: 2009-05-20 12:04:09 $ by $Author: tews $

Field Summary
private  APDU_byte_array cap_creation_time
          APDU container for the fifth installation argument, the cap-file creation time as long as returned by File.lastModified().
private  APDU_short double_bignat_size
          APDU container for the third installation argument.
private  APDU_Serializable[] install_arguments
          Array for all installation APDU containers.
private  APDU_short long_bignat_size
          APDU container for the second installation argument.
private  APDU_short max_vector_length
          APDU container for the fourth installation argument.
private  APDU_short short_bignat_size
          APDU container for the first installation argument.
 
Constructor Summary
Test_applet(byte[] bytes, short start, byte len)
          Allocate/initialize everything for the test applet.
 
Method Summary
static void install(byte[] bytes, short start, byte len)
          Applet install method.
 
Methods inherited from class ds.ov2.util.Protocol_applet
process, select, set_registered_protocols
 
Methods inherited from class javacard.framework.Applet
deselect, getShareableInterfaceObject, register, register, selectingApplet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

short_bignat_size

private APDU_short short_bignat_size
APDU container for the first installation argument. Only used during installation.


long_bignat_size

private APDU_short long_bignat_size
APDU container for the second installation argument. Only used during installation.


double_bignat_size

private APDU_short double_bignat_size
APDU container for the third installation argument. Only used during installation.


max_vector_length

private APDU_short max_vector_length
APDU container for the fourth installation argument. Only used during installation.


cap_creation_time

private APDU_byte_array cap_creation_time
APDU container for the fifth installation argument, the cap-file creation time as long as returned by File.lastModified(). Used in the status protocol.


install_arguments

private APDU_Serializable[] install_arguments
Array for all installation APDU containers. Only used during installation.

Constructor Detail

Test_applet

Test_applet(byte[] bytes,
            short start,
            byte len)
Allocate/initialize everything for the test applet. The arguments are the same as for install. They should contain four installation arguments: the size of short (exponent) bignats, the size of long (base) bignats, the size of double-sized bignates and the (base) vector length. See also Test_host.make_installation_arguments(java.lang.String).

Parameters:
bytes - array with installation arguments
start - start offset of the installation arguments
len - of installation arguments
Method Detail

install

public static void install(byte[] bytes,
                           short start,
                           byte len)
Applet install method. Expects three installation arguments: the size of short (exponent) bignats, the size of long (base) bignats and the (base) vector length. See also Test_host.make_installation_arguments(java.lang.String).

Parameters:
bytes - array with installation arguments
start - start offset of the installation arguments
len - of installation arguments