-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test applets for ServiceLayerTester.
- Loading branch information
1 parent
4296a17
commit ffd7dfb
Showing
53 changed files
with
3,128 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
samples/ServiceLayerTester/JavaCardApplets/AuthenticationApplet/README
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+4.45 KB
samples/ServiceLayerTester/JavaCardApplets/AuthenticationApplet/bin/authenticationtester.cap
Binary file not shown.
7 changes: 7 additions & 0 deletions
7
samples/ServiceLayerTester/JavaCardApplets/AuthenticationApplet/compile.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
9 changes: 9 additions & 0 deletions
9
samples/ServiceLayerTester/JavaCardApplets/AuthenticationApplet/compile.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
9 changes: 9 additions & 0 deletions
9
samples/ServiceLayerTester/JavaCardApplets/AuthenticationApplet/convert.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
||
|
11 changes: 11 additions & 0 deletions
11
samples/ServiceLayerTester/JavaCardApplets/AuthenticationApplet/convert.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
Oops, something went wrong.