From 6cb4a071eab9a3b8cf78b8ec7e407aa148f2d038 Mon Sep 17 00:00:00 2001 From: mcentner Date: Wed, 1 Jul 2009 13:03:41 +0000 Subject: Major refactoring of SMCC git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@381 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- smcc/pom.xml | 5 + smcc/src/main/java/at/gv/egiz/smcc/ACOS04Card.java | 30 - smcc/src/main/java/at/gv/egiz/smcc/ACOSCard.java | 1089 ++++++++++--------- .../at/gv/egiz/smcc/AbstractSignatureCard.java | 541 +--------- .../at/gv/egiz/smcc/CardNotSupportedException.java | 44 +- .../java/at/gv/egiz/smcc/ChangePINProvider.java | 33 +- .../gv/egiz/smcc/ChangeReferenceDataAPDUSpec.java | 95 ++ .../at/gv/egiz/smcc/ExclSignatureCardProxy.java | 110 ++ smcc/src/main/java/at/gv/egiz/smcc/Exclusive.java | 28 + .../main/java/at/gv/egiz/smcc/LogCardChannel.java | 129 +++ .../at/gv/egiz/smcc/NewReferenceDataAPDUSpec.java | 60 ++ .../at/gv/egiz/smcc/PINConfirmationException.java | 2 + .../java/at/gv/egiz/smcc/PINFormatException.java | 2 + .../java/at/gv/egiz/smcc/PINMgmtSignatureCard.java | 41 + .../gv/egiz/smcc/PINOperationAbortedException.java | 2 + .../src/main/java/at/gv/egiz/smcc/PINProvider.java | 44 +- smcc/src/main/java/at/gv/egiz/smcc/PINSpec.java | 34 +- .../src/main/java/at/gv/egiz/smcc/STARCOSCard.java | 1110 ++++++++------------ smcc/src/main/java/at/gv/egiz/smcc/SWCard.java | 61 +- .../main/java/at/gv/egiz/smcc/SignatureCard.java | 69 +- .../at/gv/egiz/smcc/SignatureCardException.java | 45 +- .../java/at/gv/egiz/smcc/SignatureCardFactory.java | 49 +- .../main/java/at/gv/egiz/smcc/VerifyAPDUSpec.java | 200 ++++ smcc/src/main/java/at/gv/egiz/smcc/ccid/CCID.java | 28 +- .../java/at/gv/egiz/smcc/ccid/DefaultReader.java | 357 ++++++- .../at/gv/egiz/smcc/conf/SMCCConfiguration.java | 2 + .../java/at/gv/egiz/smcc/util/ISO7816Utils.java | 359 +++++++ .../egiz/smcc/util/TransparentFileInputStream.java | 194 ++++ .../test/java/at/gv/egiz/smcc/ACOSCardTest.java | 135 --- .../test/java/at/gv/egiz/smcc/AbstractAppl.java | 56 + smcc/src/test/java/at/gv/egiz/smcc/CardAppl.java | 43 + .../test/java/at/gv/egiz/smcc/CardChannelEmul.java | 52 + smcc/src/test/java/at/gv/egiz/smcc/CardEmul.java | 106 ++ .../java/at/gv/egiz/smcc/CardTerminalEmul.java | 64 ++ smcc/src/test/java/at/gv/egiz/smcc/CardTest.java | 298 ++++++ .../test/java/at/gv/egiz/smcc/CardTestSuite.java | 29 + smcc/src/test/java/at/gv/egiz/smcc/File.java | 38 + smcc/src/test/java/at/gv/egiz/smcc/PIN.java | 41 + .../test/java/at/gv/egiz/smcc/STARCOSCardTest.java | 267 ----- .../egiz/smcc/TransparentFileInputStreamTest.java | 208 ++++ .../test/java/at/gv/egiz/smcc/acos/A03ApplDEC.java | 151 +++ .../test/java/at/gv/egiz/smcc/acos/A03ApplSIG.java | 77 ++ .../at/gv/egiz/smcc/acos/A03CardChannelEmul.java | 98 ++ .../java/at/gv/egiz/smcc/acos/A03CardEmul.java | 36 + .../java/at/gv/egiz/smcc/acos/A03CardTest.java | 91 ++ .../test/java/at/gv/egiz/smcc/acos/A04ApplDEC.java | 296 ++++++ .../test/java/at/gv/egiz/smcc/acos/A04ApplSIG.java | 87 ++ .../at/gv/egiz/smcc/acos/A04CardChannelEmul.java | 75 ++ .../java/at/gv/egiz/smcc/acos/A04CardEmul.java | 37 + .../java/at/gv/egiz/smcc/acos/A04CardTest.java | 143 +++ .../test/java/at/gv/egiz/smcc/acos/ACOSAppl.java | 79 ++ .../java/at/gv/egiz/smcc/acos/ACOSApplDEC.java | 334 ++++++ .../java/at/gv/egiz/smcc/acos/ACOSApplSIG.java | 302 ++++++ .../at/gv/egiz/smcc/acos/ACOSCardChannelEmul.java | 261 +++++ .../java/at/gv/egiz/smcc/acos/ACOSCardEmul.java | 38 + .../java/at/gv/egiz/smcc/acos/ACOSCardTest.java | 243 +++++ .../at/gv/egiz/smcc/acos/ACOSCardTestSuite.java | 27 + .../java/at/gv/egiz/smcc/starcos/STARCOSAppl.java | 95 ++ .../starcos/STARCOSApplGewoehnlicheSignatur.java | 332 ++++++ .../gv/egiz/smcc/starcos/STARCOSApplInfobox.java | 160 +++ .../smcc/starcos/STARCOSApplSichereSignatur.java | 347 ++++++ .../egiz/smcc/starcos/STARCOSCardChannelEmul.java | 375 +++++++ .../at/gv/egiz/smcc/starcos/STARCOSCardEmul.java | 50 + .../at/gv/egiz/smcc/starcos/STARCOSCardTest.java | 297 ++++++ .../at/gv/egiz/smcc/util/ISO7816UtilsTest.java | 175 +++ 65 files changed, 7956 insertions(+), 2350 deletions(-) delete mode 100644 smcc/src/main/java/at/gv/egiz/smcc/ACOS04Card.java create mode 100644 smcc/src/main/java/at/gv/egiz/smcc/ChangeReferenceDataAPDUSpec.java create mode 100644 smcc/src/main/java/at/gv/egiz/smcc/ExclSignatureCardProxy.java create mode 100644 smcc/src/main/java/at/gv/egiz/smcc/Exclusive.java create mode 100644 smcc/src/main/java/at/gv/egiz/smcc/LogCardChannel.java create mode 100644 smcc/src/main/java/at/gv/egiz/smcc/NewReferenceDataAPDUSpec.java create mode 100644 smcc/src/main/java/at/gv/egiz/smcc/PINMgmtSignatureCard.java create mode 100644 smcc/src/main/java/at/gv/egiz/smcc/VerifyAPDUSpec.java create mode 100644 smcc/src/main/java/at/gv/egiz/smcc/util/ISO7816Utils.java create mode 100644 smcc/src/main/java/at/gv/egiz/smcc/util/TransparentFileInputStream.java delete mode 100644 smcc/src/test/java/at/gv/egiz/smcc/ACOSCardTest.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/AbstractAppl.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/CardAppl.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/CardChannelEmul.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/CardEmul.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/CardTerminalEmul.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/CardTest.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/CardTestSuite.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/File.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/PIN.java delete mode 100644 smcc/src/test/java/at/gv/egiz/smcc/STARCOSCardTest.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/TransparentFileInputStreamTest.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/A03ApplDEC.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/A03ApplSIG.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/A03CardChannelEmul.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/A03CardEmul.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/A03CardTest.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/A04ApplDEC.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/A04ApplSIG.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/A04CardChannelEmul.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/A04CardEmul.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/A04CardTest.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/ACOSAppl.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/ACOSApplDEC.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/ACOSApplSIG.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/ACOSCardChannelEmul.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/ACOSCardEmul.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/ACOSCardTest.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/acos/ACOSCardTestSuite.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/starcos/STARCOSAppl.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/starcos/STARCOSApplGewoehnlicheSignatur.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/starcos/STARCOSApplInfobox.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/starcos/STARCOSApplSichereSignatur.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/starcos/STARCOSCardChannelEmul.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/starcos/STARCOSCardEmul.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/starcos/STARCOSCardTest.java create mode 100644 smcc/src/test/java/at/gv/egiz/smcc/util/ISO7816UtilsTest.java (limited to 'smcc') diff --git a/smcc/pom.xml b/smcc/pom.xml index 6a9f52a3..ce414318 100644 --- a/smcc/pom.xml +++ b/smcc/pom.xml @@ -32,6 +32,11 @@ junit test + + iaik + iaik_jce_full_signed + test +