Skip to content

Commit

Permalink
Add test applets for ServiceLayerTester.
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Nov 28, 2013
1 parent 4296a17 commit ffd7dfb
Show file tree
Hide file tree
Showing 53 changed files with 3,128 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
V1.00

Information on the shell-scripts (Linux) and batch-files (Windows)
to compile and convert the JavaCardApplet


The paths to the Sun Java Development Kit and Sun Java Card Development Kit
used in the shell-script(s) and batch-file(s) are:

./java_card_kit-2_2_1 (Sun Java Card Development Kit)
./jdk (Sun Java Development Kit)

The directories for the Sun JDK and the Sun Java Card Dev. Kit in
this package are empty.
You need to download it from the following links:

Sun Java Development Kit
http://java.sun.com/javase/downloads/index.jsp

Sun Java Card Development Kit:
http://www.oracle.com/technetwork/java/javame/javacard/download/devkit/index.html

In case you have already a Sun JDK or the Sun Java Card Dev. Kit 2.2.1 installed
in a different directory you may alternatively adapt the environment variables set in the script(s).



Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set JAVA_HOME=.\jdk
set JC_HOME=.\java_card_kit-2_2_1
set JAVA_SOURCE_ROOT=.\src

:: following call to javac must be on one line !
%JAVA_HOME%\bin\javac -g -source 1.3 -target 1.1 -classpath %JC_HOME%\lib\api.jar %JAVA_SOURCE_ROOT%\com\gieseckedevrient\javacard\authenticationtester\*.java

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

export JAVA_HOME=$PWD/jdk
export JC_HOME=$PWD/java_card_kit-2_2_1
export JAVA_SOURCE_ROOT=$PWD/src
export PATH=$PATH:$JC_HOME/bin

#following call to javac must be on one line
$JAVA_HOME/bin/javac -g -source 1.3 -target 1.1 -classpath $JC_HOME/lib/api.jar $JAVA_SOURCE_ROOT/com/gieseckedevrient/javacard/authenticationtester/*.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
set JAVA_HOME=.\jdk
set JC_HOME=.\java_card_kit-2_2_1
set JAVA_SOURCE_ROOT=.\src

:: following call to converter must be on one line !
%JC_HOME%\bin\converter -classdir %JAVA_SOURCE_ROOT% -noverify -i -out EXP JCA CAP -exportpath %JC_HOME%\api_export_files -applet 0xD2:0x76:0x00:0x01:0x18:0x00:0x03:0xFF:0x34:0x00:0x7E:0x89:0xAA:0x00:0x80:0x09 com.gieseckedevrient.javacard.authenticationtester.AuthenticationServiceApplet com.gieseckedevrient.javacard.authenticationtester 0xD2:0x76:0x00:0x01:0x18:0x00:0x03:0xFF:0x34:0x00:0x7E:0x89:0xAA:0x00:0x80:0x00 1.0



Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

export JAVA_HOME=$PWD/jdk
export JC_HOME=$PWD/java_card_kit-2_2_1
export JAVA_SOURCE_ROOT=$PWD/src
export PATH=$PATH:$JC_HOME/bin

#following to converter must be on one line
$JAVA_HOME/bin/java -classpath $JC_HOME/lib/converter.jar:$JC_HOME/lib/api.jar com.sun.javacard.converter.Converter -noverify -i -classdir ./src -out CAP -exportpath $JC_HOME/api_export_files -applet 0xD2:0x76:0x00:0x01:0x18:0x00:0x03:0xFF:0x34:0x00:0x7E:0x89:0xAA:0x00:0x80:0x09 com.gieseckedevrient.javacard.authenticationtester.AuthenticationServiceApplet com.gieseckedevrient.javacard.authenticationtester 0xD2:0x76:0x00:0x01:0x18:0x00:0x03:0xFF:0x34:0x00:0x7E:0x89:0xAA:0x00:0x80:0x00 1.0

cp $JAVA_SOURCE_ROOT/com/gieseckedevrient/javacard/authenticationtester/javacard/authenticationtester.cap .
Loading

0 comments on commit ffd7dfb

Please sign in to comment.