diff options
author | mcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2010-06-16 11:19:41 +0000 |
---|---|---|
committer | mcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2010-06-16 11:19:41 +0000 |
commit | 265b0aca555d9880361b754b6a18ce70b5be28cd (patch) | |
tree | 158387c96aa33e53beec0caab6bb938148c15587 /smcc/src/test/resources | |
parent | 1615a1e0bea092641bd72351876f6aa6edba655e (diff) | |
download | mocca-265b0aca555d9880361b754b6a18ce70b5be28cd.tar.gz mocca-265b0aca555d9880361b754b6a18ce70b5be28cd.tar.bz2 mocca-265b0aca555d9880361b754b6a18ce70b5be28cd.zip |
Refactored smart card unit tests to use Spring to configure smart card emulators.
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@754 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'smcc/src/test/resources')
29 files changed, 2361 insertions, 0 deletions
diff --git a/smcc/src/test/resources/IdentityLink.bin b/smcc/src/test/resources/IdentityLink.bin Binary files differdeleted file mode 100644 index 16c7375b..00000000 --- a/smcc/src/test/resources/IdentityLink.bin +++ /dev/null diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/spring/PropertyEditorTest.xml b/smcc/src/test/resources/at/gv/egiz/smcc/spring/PropertyEditorTest.xml new file mode 100644 index 00000000..32d9d58a --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/spring/PropertyEditorTest.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd"> + + <bean name="testBean" class="at.gv.egiz.smcc.test.spring.ByteArrayPropertyDependable"> + <property name="bytes"> + <value> + 00:01:02:03:04:05:06:07:08:09:0A:0B:0C:0D:0E:0F + f0-e0-d0-c0-b0-a0-90-80-70-60-50-40-30-20-10-00 + </value> + </property> + </bean> + + <bean class="org.springframework.beans.factory.config.CustomEditorConfigurer"> + <property name="propertyEditorRegistrars"> + <list> + <bean class="at.gv.egiz.smcc.test.spring.ByteArrayPropertyEditorRegistrar"></bean> + </list> + </property> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOS.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOS.xml new file mode 100644 index 00000000..0dfb8ea5 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOS.xml @@ -0,0 +1,342 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:util="http://www.springframework.org/schema/util" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <bean name="privateKeyDEC" class="at.gv.egiz.smcc.test.spring.PrivateKeyFactoryBean"> + <property name="algorithm" value="RSA" /> + <property name="encodedKey"> + <value> + 30:82:03:97:02:01:00:30 0d:06:09:2a:86:48:86:f7 + 0d:01:01:01:05:00:04:82 03:81:30:82:03:7d:02:01 + 00:02:81:c1:00:8e:e9:1a 66:1e:0d:12:65:f1:63:5f + b7:e4:57:57:5b:c4:5d:98 5e:32:36:ca:82:45:1d:41 + 36:66:2c:bb:35:95:96:22 01:0c:01:07:fd:d1:7c:34 + 70:7c:47:91:e2:72:14:97 54:2e:c3:de:c4:79:0d:e6 + cc:61:2f:0b:48:36:3e:8b 36:ec:46:a9:55:c2:28:c9 + c4:13:ba:ca:34:d0:a0:ae 4e:06:c9:30:f4:68:4d:d1 + d2:ff:a5:6a:81:03:6d:e0 7b:35:c4:1a:d3:89:5f:09 + 51:6a:61:7c:75:21:6e:4e 3a:70:38:2c:11:07:37:b6 + 16:15:ea:82:9e:42:71:9c f1:fe:dd:49:6a:fd:ce:69 + 91:7c:65:5d:d5:ca:a0:90 b5:06:5a:4b:a4:b2:d6:6d + 95:65:eb:e8:ba:33:88:c1 18:f6:2d:ea:0d:d3:26:a4 + f5:10:31:7e:5a:e2:f6:5e 55:82:29:ba:8d:2c:47:5d + 99:5c:cc:41:27:02:03:01 00:01:02:81:c0:3b:6d:9a + 09:bf:13:66:84:38:06:40 06:a3:90:e2:86:09:b9:76 + 24:2d:b3:75:31:08:f6:aa 68:a9:c2:8e:33:31:3a:56 + 77:a2:fb:46:cc:78:f1:b2 88:d8:55:96:c7:d8:f2:d1 + 1f:33:b7:46:0a:e3:e0:31 0a:ea:9a:fa:91:13:e5:9c + 54:c1:9a:7c:ce:69:c8:36 67:30:61:2b:b7:1c:ce:c4 + cd:33:ab:34:8d:5e:56:86 1b:bd:2d:97:84:dc:a6:aa + 38:da:cc:c3:58:37:fa:3e d6:75:b2:19:0c:ea:70:fa + fe:48:fe:5c:f4:3c:c2:a5 5c:a3:dc:52:1c:62:ec:a2 + be:4d:34:78:b1:fd:75:ce 87:49:18:9c:2d:f1:a4:d6 + dc:46:75:5c:56:33:82:65 54:05:1c:45:a1:b1:1c:d8 + 6e:58:82:40:66:e4:29:de cc:63:dc:b1:19:d1:b6:b3 + ad:90:58:09:c8:8a:a6:0e 17:99:1d:0a:e1:02:61:00 + f6:6c:1b:3c:78:41:f9:13 3f:0d:be:de:21:84:a2:d2 + 96:a7:70:30:f1:4c:01:94 86:aa:7c:70:0b:14:11:80 + d5:21:e6:c7:82:3d:23:ce 92:c7:20:98:3a:13:ed:e7 + 7f:47:1b:2c:85:92:f5:ee 8f:b2:73:4b:c5:77:88:df + 23:54:35:bc:08:1b:07:4d 48:ee:2e:8a:ef:c9:f1:9d + 8e:74:32:e1:23:ef:3f:f7 ff:32:a2:61:db:a6:c1:b7 + 02:61:00:94:77:0e:f5:c7 f2:b3:a4:22:94:2e:f2:f4 + 9d:ec:fc:3e:ba:74:59:48 b2:87:36:83:9f:d9:ed:32 + 1a:4a:85:1c:97:d8:db:4a 81:13:04:5a:f2:e1:ef:98 + c1:fa:4a:93:cd:a1:f8:fc 9b:4f:40:bd:3e:7a:69:17 + 3b:6f:06:c8:6a:55:eb:fb ca:c1:13:40:e0:ef:44:b4 + ca:cf:91:ba:37:4a:70:eb a4:2e:a8:c9:1c:33:98:e7 + 41:bc:11:02:61:00:a9:e1 05:35:be:c1:dc:70:04:3b + f9:a5:30:fe:3b:31:6a:62 ab:d9:51:bf:d0:27:10:5f + 5f:c1:ee:21:3b:9f:d1:4e b9:c6:38:66:e5:d4:77:23 + 87:b8:e9:f0:eb:45:78:5d 10:c2:b4:a3:07:a0:1a:b8 + 2e:fb:c1:7a:12:85:a1:d9 5f:e1:ec:c4:95:58:16:3a + fd:23:13:03:e8:e9:71:57 71:eb:fb:d5:e8:07:93:8a + d8:9f:15:c9:f4:29:02:60 53:19:ad:22:ff:8f:26:e4 + 29:82:be:20:b9:b1:27:f4 2c:fc:5a:a1:9b:22:6a:b2 + a5:cc:34:c4:22:b6:3a:9d f5:5a:3d:44:c9:98:23:d7 + dd:3c:74:20:93:65:88:3e 74:2a:b6:8d:d2:7e:f0:46 + 71:66:e6:47:aa:7c:56:f1 f9:fe:23:27:da:a1:2b:9f + 26:42:81:4a:f8:d3:48:89 ee:2c:82:9b:60:1a:5f:0f + 94:ba:17:5b:6f:9e:08:b1 02:61:00:d1:0a:b8:9e:b6 + 03:a2:56:10:18:4a:3f:b7 c6:ca:46:7a:89:8e:e8:e5 + 6f:a9:3f:a8:27:75:f0:85 8d:92:8e:f1:54:e3:0e:82 + 0f:d4:a9:e3:90:c9:da:f0 5d:2e:2a:ed:c4:a4:6f:79 + e9:4b:dd:19:c2:a3:85:96 48:9b:ec:ad:51:a6:7b:cd + 01:bb:a5:a0:03:14:0a:30 69:43:c4:ba:d1:32:30:5d + 84:be:ad:61:32:cc:3c:cb e5:20:fd + </value> + </property> + </bean> + + <bean name="publicKeyDEC" class="at.gv.egiz.smcc.test.spring.PublicKeyFactoryBean"> + <property name="algorithm" value="RSA" /> + <property name="encodedKey"> + <value> + 30:81:df:30:0d:06:09:2a 86:48:86:f7:0d:01:01:01 + 05:00:03:81:cd:00:30:81 c9:02:81:c1:00:8e:e9:1a + 66:1e:0d:12:65:f1:63:5f b7:e4:57:57:5b:c4:5d:98 + 5e:32:36:ca:82:45:1d:41 36:66:2c:bb:35:95:96:22 + 01:0c:01:07:fd:d1:7c:34 70:7c:47:91:e2:72:14:97 + 54:2e:c3:de:c4:79:0d:e6 cc:61:2f:0b:48:36:3e:8b + 36:ec:46:a9:55:c2:28:c9 c4:13:ba:ca:34:d0:a0:ae + 4e:06:c9:30:f4:68:4d:d1 d2:ff:a5:6a:81:03:6d:e0 + 7b:35:c4:1a:d3:89:5f:09 51:6a:61:7c:75:21:6e:4e + 3a:70:38:2c:11:07:37:b6 16:15:ea:82:9e:42:71:9c + f1:fe:dd:49:6a:fd:ce:69 91:7c:65:5d:d5:ca:a0:90 + b5:06:5a:4b:a4:b2:d6:6d 95:65:eb:e8:ba:33:88:c1 + 18:f6:2d:ea:0d:d3:26:a4 f5:10:31:7e:5a:e2:f6:5e + 55:82:29:ba:8d:2c:47:5d 99:5c:cc:41:27:02:03:01 + 00:01 + </value> + </property> + </bean> + + <bean name="certificateSS" class="at.gv.egiz.smcc.test.spring.ByteArrayFactoryBean"> + <property name="bytes"> + <value> + 30:82:05:2b:30:82:04:13 a0:03:02:01:02:02:03:02 + 05:52:30:0d:06:09:2a:86 48:86:f7:0d:01:01:05:05 + 00:30:81:a1:31:0b:30:09 06:03:55:04:06:13:02:41 + 54:31:48:30:46:06:03:55 04:0a:0c:3f:41:2d:54:72 + 75:73:74:20:47:65:73:2e 20:66:2e:20:53:69:63:68 + 65:72:68:65:69:74:73:73 79:73:74:65:6d:65:20:69 + 6d:20:65:6c:65:6b:74:72 2e:20:44:61:74:65:6e:76 + 65:72:6b:65:68:72:20:47 6d:62:48:31:23:30:21:06 + 03:55:04:0b:0c:1a:61:2d 73:69:67:6e:2d:50:72:65 + 6d:69:75:6d:2d:54:65:73 74:2d:53:69:67:2d:30:32 + 31:23:30:21:06:03:55:04 03:0c:1a:61:2d:73:69:67 + 6e:2d:50:72:65:6d:69:75 6d:2d:54:65:73:74:2d:53 + 69:67:2d:30:32:30:1e:17 0d:30:39:30:31:31:33:30 + 39:34:35:31:32:5a:17:0d 31:32:31:32:33:31:30:39 + 34:35:31:32:5a:30:70:31 0b:30:09:06:03:55:04:06 + 13:02:41:54:31:1f:30:1d 06:03:55:04:03:0c:16:58 + 58:58:4f:74:74:6f:20:58 58:58:4f:74:74:61:6b:72 + 69:6e:67:65:72:31:17:30 15:06:03:55:04:04:0c:0e + 58:58:58:4f:74:74:61:6b 72:69:6e:67:65:72:31:10 + 30:0e:06:03:55:04:2a:0c 07:58:58:58:4f:74:74:6f + 31:15:30:13:06:03:55:04 05:13:0c:39:37:30:30:31 + 36:38:36:36:31:37:34:30 59:30:13:06:07:2a:86:48 + ce:3d:02:01:06:08:2a:86 48:ce:3d:03:01:01:03:42 + 00:04:6b:de:5f:5e:d5:2b be:1e:b9:82:19:75:f4:3b + c1:34:e9:db:0b:25:31:33 fa:8b:72:d4:9f:21:f5:62 + b9:f6:50:db:cc:bf:43:b9 5e:75:2a:37:be:32:a6:83 + b1:5c:c3:9d:f0:ab:e6:8f e4:97:83:57:89:e0:13:e3 + 13:a8:a3:82:02:65:30:82 02:61:30:13:06:03:55:1d + 23:04:0c:30:0a:80:08:46 06:9f:8e:41:8e:15:bd:30 + 27:06:08:2b:06:01:05:05 07:01:03:01:01:ff:04:18 + 30:16:30:08:06:06:04:00 8e:46:01:01:30:0a:06:08 + 2b:06:01:05:05:07:0b:01 30:81:84:06:08:2b:06:01 + 05:05:07:01:01:04:78:30 76:30:2c:06:08:2b:06:01 + 05:05:07:30:01:86:20:68 74:74:70:3a:2f:2f:6f:63 + 73:70:2d:74:65:73:74:2e 61:2d:74:72:75:73:74:2e + 61:74:2f:6f:63:73:70:30 46:06:08:2b:06:01:05:05 + 07:30:02:86:3a:68:74:74 70:3a:2f:2f:77:77:77:2e + 61:2d:74:72:75:73:74:2e 61:74:2f:63:65:72:74:73 + 2f:61:2d:73:69:67:6e:2d 50:72:65:6d:69:75:6d:2d + 54:65:73:74:2d:53:69:67 2d:30:32:2e:63:72:74:30 + 81:9d:06:03:55:1d:20:04 81:95:30:81:92:30:81:85 + 06:06:2a:28:00:11:01:03 30:7b:30:3d:06:08:2b:06 + 01:05:05:07:02:01:16:31 68:74:74:70:3a:2f:2f:77 + 77:77:2e:61:2d:74:72:75 73:74:2e:61:74:2f:64:6f + 63:73:2f:63:70:2f:61:2d 73:69:67:6e:2d:70:72:65 + 6d:69:75:6d:2d:74:65:73 74:30:3a:06:08:2b:06:01 + 05:05:07:02:02:30:2e:1a 2c:44:69:65:73:65:73:20 + 5a:65:72:74:69:66:69:6b 61:74:20:64:69:65:6e:74 + 20:6e:75:72:20:7a:75:20 54:65:73:74:7a:77:65:63 + 6b:65:6e:20:21:30:08:06 06:04:00:8b:30:01:01:30 + 81:a4:06:03:55:1d:1f:04 81:9c:30:81:99:30:81:96 + a0:81:93:a0:81:90:86:81 8d:6c:64:61:70:3a:2f:2f + 6c:64:61:70:2d:74:65:73 74:2e:61:2d:74:72:75:73 + 74:2e:61:74:2f:6f:75:3d 61:2d:73:69:67:6e:2d:50 + 72:65:6d:69:75:6d:2d:54 65:73:74:2d:53:69:67:2d + 30:32:2c:6f:3d:41:2d:54 72:75:73:74:2c:63:3d:41 + 54:3f:63:65:72:74:69:66 69:63:61:74:65:72:65:76 + 6f:63:61:74:69:6f:6e:6c 69:73:74:3f:62:61:73:65 + 3f:6f:62:6a:65:63:74:63 6c:61:73:73:3d:65:69:64 + 43:65:72:74:69:66:69:63 61:74:69:6f:6e:41:75:74 + 68:6f:72:69:74:79:30:11 06:03:55:1d:0e:04:0a:04 + 08:46:08:da:9e:68:f8:e5 81:30:0e:06:03:55:1d:0f + 01:01:ff:04:04:03:02:06 c0:30:25:06:03:55:1d:11 + 04:1e:30:1c:81:1a:74:68 6f:6d:61:73:2e:72:6f:65 + 73:73:6c:65:72:40:65:67 69:7a:2e:67:76:2e:61:74 + 30:09:06:03:55:1d:13:04 02:30:00:30:0d:06:09:2a + 86:48:86:f7:0d:01:01:05 05:00:03:82:01:01:00:d8 + ec:e5:5c:17:42:e8:2f:04 1f:e2:04:57:07:30:dc:4f + 61:7d:d8:89:36:31:26:45 55:64:d3:55:1b:83:51:a0 + 39:1b:6a:7e:fa:7e:2c:d0 d3:86:7b:8d:29:8f:a3:83 + d2:72:ce:43:cf:c1:27:f1 4d:11:e2:67:be:6e:34:7d + 04:1f:ba:55:34:ea:c2:cf 0f:64:7b:84:e0:55:05:82 + dd:9d:d7:eb:91:78:69:49 58:70:ff:83:70:a0:b3:b7 + 3d:0f:8e:e9:1b:21:ef:31 0b:e3:ac:c6:0f:57:4f:d8 + d6:b2:d0:ca:d9:6f:3f:6e 83:8c:ff:47:ca:bc:81:60 + 5f:e2:dd:bd:89:b2:52:ac c3:8b:44:99:70:e7:2c:52 + 21:aa:a2:0f:38:c6:98:4d 48:da:65:41:a4:ad:41:7c + 99:14:e5:cb:51:d7:ab:76 b1:20:ce:32:1b:11:5c:ef + 8b:4f:f3:46:5b:11:d7:91 b6:41:d3:23:b6:03:a8:98 + 40:76:13:5d:4c:b2:e9:fe 90:27:04:fc:10:45:8b:10 + c3:b2:4b:3c:d2:5b:0f:e8 fb:b9:45:af:05:c4:ba:c7 + fc:a5:7d:db:4f:a9:76:e2 fa:c7:e0:ad:70:aa:40:15 + 64:01:ba:c6:c3:83:65:95 3c:05:53:88:e7:19:98 + </value> + </property> + </bean> + + <bean name="certificateGS" class="at.gv.egiz.smcc.test.spring.ByteArrayFactoryBean"> + <property name="bytes"> + <value> + 30:82:05:7f:30:82:04:67 a0:03:02:01:02:02:03:02 + 05:51:30:0d:06:09:2a:86 48:86:f7:0d:01:01:05:05 + 00:30:81:a1:31:0b:30:09 06:03:55:04:06:13:02:41 + 54:31:48:30:46:06:03:55 04:0a:0c:3f:41:2d:54:72 + 75:73:74:20:47:65:73:2e 20:66:2e:20:53:69:63:68 + 65:72:68:65:69:74:73:73 79:73:74:65:6d:65:20:69 + 6d:20:65:6c:65:6b:74:72 2e:20:44:61:74:65:6e:76 + 65:72:6b:65:68:72:20:47 6d:62:48:31:23:30:21:06 + 03:55:04:0b:0c:1a:61:2d 73:69:67:6e:2d:50:72:65 + 6d:69:75:6d:2d:54:65:73 74:2d:45:6e:63:2d:30:32 + 31:23:30:21:06:03:55:04 03:0c:1a:61:2d:73:69:67 + 6e:2d:50:72:65:6d:69:75 6d:2d:54:65:73:74:2d:45 + 6e:63:2d:30:32:30:1e:17 0d:30:39:30:31:31:33:30 + 39:34:35:31:32:5a:17:0d 31:32:31:32:33:31:30:39 + 34:35:31:32:5a:30:70:31 0b:30:09:06:03:55:04:06 + 13:02:41:54:31:1f:30:1d 06:03:55:04:03:0c:16:58 + 58:58:4f:74:74:6f:20:58 58:58:4f:74:74:61:6b:72 + 69:6e:67:65:72:31:17:30 15:06:03:55:04:04:0c:0e + 58:58:58:4f:74:74:61:6b 72:69:6e:67:65:72:31:10 + 30:0e:06:03:55:04:2a:0c 07:58:58:58:4f:74:74:6f + 31:15:30:13:06:03:55:04 05:13:0c:39:37:30:30:31 + 36:38:36:36:31:37:34:30 81:df:30:0d:06:09:2a:86 + 48:86:f7:0d:01:01:01:05 00:03:81:cd:00:30:81:c9 + 02:81:c1:00:ae:e6:07:1d b9:56:0a:98:1a:de:52:f2 + 77:dc:5e:76:7f:e5:c1:79 b9:51:97:08:20:4e:a6:a3 + ab:df:49:21:2b:65:4f:7c 26:e8:b9:47:df:03:0f:f7 + 4e:f4:47:3d:32:61:05:33 0f:dc:97:3e:bf:9b:f2:f8 + b3:e2:c4:4d:e0:48:6a:1b d2:fe:fa:ee:24:08:dc:60 + 2a:78:6c:1d:d3:74:43:1f 1f:4e:d2:0f:89:3c:e3:1e + fa:31:5a:c2:04:24:d1:e5 51:c4:94:26:d1:32:1e:df + 64:aa:af:2c:85:25:88:8f 80:e4:05:74:d5:da:69:88 + 4a:0c:6a:85:5f:67:51:6c 5c:1c:41:88:4c:ad:83:c9 + 10:97:45:00:3f:bd:1d:2f 28:2e:78:97:05:a5:41:42 + 37:08:60:0b:66:b1:b8:dd 98:03:03:33:c9:15:f7:5b + 35:a5:aa:7a:5e:e9:a7:60 ba:d8:0d:6d:b3:85:70:0e + 38:6f:f0:fd:02:03:01:00 01:a3:82:02:32:30:82:02 + 2e:30:13:06:03:55:1d:23 04:0c:30:0a:80:08:4b:5d + 02:5c:6d:58:24:67:30:81 84:06:08:2b:06:01:05:05 + 07:01:01:04:78:30:76:30 2c:06:08:2b:06:01:05:05 + 07:30:01:86:20:68:74:74 70:3a:2f:2f:6f:63:73:70 + 2d:74:65:73:74:2e:61:2d 74:72:75:73:74:2e:61:74 + 2f:6f:63:73:70:30:46:06 08:2b:06:01:05:05:07:30 + 02:86:3a:68:74:74:70:3a 2f:2f:77:77:77:2e:61:2d + 74:72:75:73:74:2e:61:74 2f:63:65:72:74:73:2f:61 + 2d:73:69:67:6e:2d:50:72 65:6d:69:75:6d:2d:54:65 + 73:74:2d:45:6e:63:2d:30 32:2e:63:72:74:30:81:93 + 06:03:55:1d:20:04:81:8b 30:81:88:30:81:85:06:06 + 2a:28:00:11:01:03:30:7b 30:3d:06:08:2b:06:01:05 + 05:07:02:01:16:31:68:74 74:70:3a:2f:2f:77:77:77 + 2e:61:2d:74:72:75:73:74 2e:61:74:2f:64:6f:63:73 + 2f:63:70:2f:61:2d:73:69 67:6e:2d:70:72:65:6d:69 + 75:6d:2d:74:65:73:74:30 3a:06:08:2b:06:01:05:05 + 07:02:02:30:2e:1a:2c:44 69:65:73:65:73:20:5a:65 + 72:74:69:66:69:6b:61:74 20:64:69:65:6e:74:20:6e + 75:72:20:7a:75:20:54:65 73:74:7a:77:65:63:6b:65 + 6e:20:21:30:81:a4:06:03 55:1d:1f:04:81:9c:30:81 + 99:30:81:96:a0:81:93:a0 81:90:86:81:8d:6c:64:61 + 70:3a:2f:2f:6c:64:61:70 2d:74:65:73:74:2e:61:2d + 74:72:75:73:74:2e:61:74 2f:6f:75:3d:61:2d:73:69 + 67:6e:2d:50:72:65:6d:69 75:6d:2d:54:65:73:74:2d + 45:6e:63:2d:30:32:2c:6f 3d:41:2d:54:72:75:73:74 + 2c:63:3d:41:54:3f:63:65 72:74:69:66:69:63:61:74 + 65:72:65:76:6f:63:61:74 69:6f:6e:6c:69:73:74:3f + 62:61:73:65:3f:6f:62:6a 65:63:74:63:6c:61:73:73 + 3d:65:69:64:43:65:72:74 69:66:69:63:61:74:69:6f + 6e:41:75:74:68:6f:72:69 74:79:30:11:06:03:55:1d + 0e:04:0a:04:08:4a:24:43 c0:85:2a:b4:51:30:0e:06 + 03:55:1d:0f:01:01:ff:04 04:03:02:04:b0:30:25:06 + 03:55:1d:11:04:1e:30:1c 81:1a:74:68:6f:6d:61:73 + 2e:72:6f:65:73:73:6c:65 72:40:65:67:69:7a:2e:67 + 76:2e:61:74:30:09:06:03 55:1d:13:04:02:30:00:30 + 0d:06:09:2a:86:48:86:f7 0d:01:01:05:05:00:03:82 + 01:01:00:4a:36:02:b3:ab 02:e9:e1:af:3f:d5:cd:3d + 51:08:b8:73:23:68:0c:22 32:cd:be:c8:77:bc:47:37 + dd:89:7c:22:24:2f:23:ea 3e:c2:f4:59:78:a6:be:cd + 71:aa:b5:bc:e3:bc:3f:f1 fa:1a:43:2b:91:35:67:a5 + 62:9d:55:85:e0:3f:ed:00 67:80:6a:fb:46:8a:ed:48 + 03:e7:9d:5c:ac:df:ec:2d 53:8b:01:db:14:91:21:af + a7:91:69:7e:97:68:cc:2a 06:1a:bc:53:35:de:d7:62 + 12:bd:54:b5:4c:3c:af:55 a4:5b:28:61:68:03:c6:72 + c0:a2:3f:84:02:f8:3d:70 3f:de:9d:6a:71:16:87:9d + 93:3d:46:41:a9:6a:ca:87 d4:d1:3f:1d:6e:6a:bf:02 + 9b:fb:4a:47:e0:20:4a:2d 5a:0c:6b:25:d6:2d:d4:53 + 08:41:a9:16:a2:a0:ef:13 a8:ec:7e:99:15:f9:1a:18 + 5e:75:c7:5d:40:d4:84:4a d2:f7:7c:65:12:c7:ae:bc + 9d:3e:ce:42:fe:e4:98:10 63:0d:aa:2d:73:7d:46:19 + ca:78:94:e5:11:83:87:b2 f7:59:90:47:86:57:cf:c7 + 7b:8f:ac:20:bd:46:ea:a2 10:e1:72:3e:e3:72:20:24 + a5:2f:c5 + </value> + </property> + </bean> + + <bean name="identityLink" class="at.gv.egiz.smcc.test.spring.ByteArrayFactoryBean"> + <property name="bytes"> + <value> + 30:82:02:11:02:01:01:0c 26:68:74:74:70:3a:2f:2f + 77:77:77:2e:61:2d:74:72 75:73:74:2e:61:74:2f:7a + 6d:72:2f:70:65:72:73:62 32:30:34:2e:78:73:6c:0c + 29:73:7a:72:2e:62:6d:69 2e:67:76:2e:61:74:2d:41 + 73:73:65:72:74:69:6f:6e 49:44:31:32:33:36:33:35 + 36:33:36:36:37:39:39:39 31:39:0c:19:32:30:30:39 + 2d:30:33:2d:30:36:54:31 36:3a:31:39:3a:32:36:2b + 30:31:3a:30:30:a0:42:30 40:0c:18:45:68:42:53:36 + 54:6f:31:49:6c:54:4b:4f 4a:45:39:75:62:74:48:69 + 51:3d:3d:0c:0a:58:58:58 c5:90:7a:67:c3:bc:72:0c + 0c:58:58:58:54:c3:bc:7a 65:6b:c3:a7:69:0c:0a:31 + 39:37:33:2d:30:36:2d:30 34:30:0a:a0:03:02:01:00 + a0:03:02:01:01:03:82:01 01:00:9f:a5:68:a9:14:4c + a4:5d:9d:09:99:2e:e7:45 2e:42:49:02:16:d9:cb:90 + 43:27:03:43:6d:b4:8c:dc 1c:77:d4:2e:a1:40:e7:e0 + 03:60:15:f7:db:03:5e:ca e4:35:ba:2b:fd:e6:b8:d8 + b7:2a:80:dd:38:e0:8a:69 ad:67:60:65:42:c9:41:60 + 94:de:84:54:ad:b3:f4:f7 44:d5:f3:d3:b6:87:8a:22 + 38:00:cb:a4:4f:96:c2:28 c2:8d:91:95:b4:ea:00:59 + 2e:ec:78:d8:0f:26:04:ee ed:13:bf:81:68:81:43:be + 15:0e:ba:f9:6a:18:eb:95 ad:b4:0f:3c:94:63:32:81 + 90:cf:3f:95:ff:8d:86:ed e4:75:d5:09:32:17:38:b2 + 68:35:49:8c:a6:d0:3e:de 6e:47:68:bf:98:33:ae:59 + 9f:e0:19:9b:5b:1b:8f:74 d2:9c:01:1a:df:af:f8:96 + 91:cb:f8:bf:06:c7:d5:17 95:ef:c5:97:37:1b:b0:a1 + 4f:9f:01:82:90:4a:6a:04 db:31:1a:58:eb:cd:68:e3 + 68:0b:a0:11:44:08:a0:5c fc:61:15:1f:bb:22:87:18 + a3:07:9b:0d:13:7c:ff:30 cf:f3:af:e4:45:05:a0:8e + 6b:ef:70:f5:4b:68:8f:61 d6:f5:a0:17:03:15:00:8e + a8:df:a9:77:fd:9b:4b:91 89:34:84:f3:24:b2:5a:39 + a9:f2:17:a1:17:03:15:00 db:a2:fd:a4:e7:65:2e:7e + b0:c8:fa:4d:13:28:df:b1 58:3b:9e:29:a2:17:03:15 + 00:68:a0:17:18:b7:b3:c3 60:77:82:8d:f1:5e:10:c3 + 2d:78:2c:11:0b + </value> + </property> + </bean> + + <bean class="org.springframework.beans.factory.config.CustomEditorConfigurer"> + <property name="propertyEditorRegistrars"> + <list> + <bean class="at.gv.egiz.smcc.test.spring.ByteArrayPropertyEditorRegistrar"></bean> + </list> + </property> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA03.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA03.xml new file mode 100644 index 00000000..e750d1a1 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA03.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ACOS.xml" /> + <import resource="ACOSA03ApplSIG.xml" /> + <import resource="ACOSA03ApplDEC.xml" /> + + <bean name="acosA03" class="at.gv.egiz.smcc.CardEmul" + abstract="true"> + <property name="atr" + value="3b:bf:11:00:81:31:fe:45:45:50:41:00:00:00:00:00:00:00:00:00:00:00:00:f1" /> + <property name="basicChannel" ref="cardChannel" /> + <property name="applications"> + <list> + <ref bean="applSIG" /> + <ref bean="applDEC" /> + </list> + </property> + </bean> + + <bean name="cardChannel" class="at.gv.egiz.smcc.acos.A03CardChannelEmul"> + <property name="cardEmul" ref="card" /> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA03ApplDEC.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA03ApplDEC.xml new file mode 100644 index 00000000..91bc2722 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA03ApplDEC.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ACOS.xml" /> + + <bean name="applDEC" + class="at.gv.egiz.smcc.acos.A03ApplDEC"> + <property name="aid" value="a0:00:00:01:18:45:4e" /> + <property name="fid" value="df:71" /> + <property name="fcx" + value="6f:1a:84:07:a0:00:00:01:18:4e:43:85:0f:50:0d:44:49:47:53:49:47:20:43:43:20:45:4e:43" /> + <property name="files"> + <list> + <ref bean="EF_C_CH_EKEY" /> + <ref bean="EF_Infobox" /> + </list> + </property> + <property name="pins"> + <map> + <entry key="0x81" value-ref="geheimhaltungsPIN" /> + <entry key="0x83" value-ref="infoboxPIN" /> + </map> + </property> + </bean> + + <bean name="infoboxPIN" class="at.gv.egiz.smcc.PIN"> + <property name="pin" value="30:30:30:30:00:00:00:00" /> + <property name="kfpc" value="10" /> + </bean> + + <bean name="geheimhaltungsPIN" class="at.gv.egiz.smcc.PIN"> + <property name="pin" value="31:32:33:34:00:00:00:00" /> + <property name="kfpc" value="10" /> + </bean> + + <bean name="EF_C_CH_EKEY" + class="at.gv.egiz.smcc.test.spring.CertificateFileFactoryBean"> + <property name="fid" value="c0:01" /> + <property name="fileSize" value="2000" /> + <property name="fcx" + value="6f:07:80:02:07:d0:82:01 01" /> + <property name="certificate" ref="certificateGS" /> + </bean> + + <bean name="EF_Infobox" + class="at.gv.egiz.smcc.test.spring.InfoboxContainerFileFactoryBean"> + <property name="fid" value="c0:02" /> + <property name="fileSize" value="1500" /> + <property name="fcx" + value="6f:07:80:02:05:dc:82:01:01" /> + <property name="identityLink" ref="identityLink"/> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA03ApplSIG.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA03ApplSIG.xml new file mode 100644 index 00000000..ef113311 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA03ApplSIG.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ACOS.xml" /> + + <bean name="applSIG" class="at.gv.egiz.smcc.acos.A03ApplSIG"> + <property name="aid" value="a0:00:00:01:18:45:43" /> + <property name="fid" value="df:70" /> + <property name="fcx" + value="6f:1a:84:07:a0:00:00:01:18:45:43:85:0f:50:0d:44:49:47:53:49:47:20:43:43:20:45:43:43" /> + <property name="files"> + <list> + <ref bean="EF_C_CH_DS" /> + </list> + </property> + <property name="pins"> + <map> + <entry key="0x81" value-ref="signaturPIN" /> + </map> + </property> + </bean> + + <bean name="signaturPIN" class="at.gv.egiz.smcc.PIN"> + <property name="pin" value="31:32:33:34:35:36:00:00" /> + <property name="kfpc" value="3" /> + </bean> + + <bean name="EF_C_CH_DS" + class="at.gv.egiz.smcc.test.spring.CertificateFileFactoryBean"> + <property name="fid" value="c0:02" /> + <property name="fileSize" value="2000" /> + <property name="fcx" + value="6f:07:80:02:07:d0:82:01:01" /> + <property name="certificate" ref="certificateSS" /> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA03Test.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA03Test.xml new file mode 100644 index 00000000..dd7218a6 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA03Test.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:util="http://www.springframework.org/schema/util" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ACOSA03.xml"/> + + <bean name="card" parent="acosA03"/> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04.xml new file mode 100644 index 00000000..12763029 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ACOS.xml" /> + <import resource="ACOSA04ApplSIG.xml" /> + <import resource="ACOSA04ApplDEC.xml" /> + + <bean name="acosA04" class="at.gv.egiz.smcc.CardEmul" + abstract="true"> + <property name="atr" + value="3b:bf:11:00:81:31:fe:45:45:50:41:00:00:00:00:00:00:00:00:00:00:00:00:f1" /> + <property name="basicChannel" ref="cardChannel" /> + <property name="applications"> + <list> + <ref bean="applSIG" /> + <ref bean="applDEC" /> + </list> + </property> + </bean> + + <bean name="cardChannel" class="at.gv.egiz.smcc.acos.A04CardChannelEmul"> + <property name="cardEmul" ref="card" /> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04ApplDEC.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04ApplDEC.xml new file mode 100644 index 00000000..eeaaeb69 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04ApplDEC.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ACOS.xml" /> + + <bean name="applDEC" class="at.gv.egiz.smcc.acos.A04ApplDEC"> + <property name="aid" value="a0:00:00:01:18:45:4e" /> + <property name="fid" value="df:71" /> + <property name="fcx" + value="6f:1a:84:07:a0:00:00:01:18:4e:43:85:0f:50:0d:44:49:47:53:49:47:20:43:43:20:45:4e:43" /> + <property name="privateKey" ref="privateKeyDEC" /> + <property name="files"> + <list> + <ref bean="EF_C_CH_EKEY" /> + <ref bean="EF_Infobox" /> + </list> + </property> + <property name="pins"> + <map> + <entry key="0x81" value-ref="geheimhaltungsPIN" /> + </map> + </property> + </bean> + + <bean name="geheimhaltungsPIN" class="at.gv.egiz.smcc.PIN"> + <property name="pin" value="31:32:33:34:00:00:00:00" /> + <property name="kfpc" value="10" /> + </bean> + + <bean name="EF_C_CH_EKEY" + class="at.gv.egiz.smcc.test.spring.CertificateFileFactoryBean"> + <property name="fid" value="c0:01" /> + <property name="fileSize" value="2000" /> + <property name="fcx" value="6f:07:80:02:07:d0:82:01 01" /> + <property name="certificate" ref="certificateGS" /> + </bean> + + <bean name="EF_Infobox" + class="at.gv.egiz.smcc.test.spring.InfoboxContainerFileFactoryBean"> + <property name="fid" value="c0:02" /> + <property name="fileSize" value="1500" /> + <property name="fcx" value="6f:07:80:02:05:dc:82:01:01" /> + <property name="container" value="true" /> + <property name="identityLink" ref="identityLink" /> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04ApplSIG.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04ApplSIG.xml new file mode 100644 index 00000000..a2ade8fc --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04ApplSIG.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ACOS.xml" /> + + <bean name="applSIG" class="at.gv.egiz.smcc.acos.A04ApplSIG"> + <property name="aid" value="a0:00:00:01:18:45:43" /> + <property name="fid" value="df:70" /> + <property name="fcx" + value="6f:1a:84:07:a0:00:00:01:18:45:43:85:0f:50:0d:44:49:47:53:49:47:20:43:43:20:45:43:43" /> + <property name="files"> + <list> + <ref bean="EF_INFO" /> + <ref bean="EF_C_CH_DS" /> + </list> + </property> + <property name="pins"> + <map> + <entry key="0x81" value-ref="signaturPIN" /> + </map> + </property> + </bean> + + <bean name="signaturPIN" class="at.gv.egiz.smcc.PIN"> + <property name="pin" value="31:32:33:34:35:36:00:00" /> + <property name="kfpc" value="3" /> + </bean> + + <bean name="EF_INFO" class="at.gv.egiz.smcc.File"> + <property name="fid" value="d0:02" /> + <property name="fcx" + value="6f:07:80:02:00:08:82:01:01:" /> + <property name="file"> + <value> + 02:00:00:00:00:00:00:00 + </value> + </property> + </bean> + + <bean name="EF_C_CH_DS" + class="at.gv.egiz.smcc.test.spring.CertificateFileFactoryBean"> + <property name="fid" value="c0:02" /> + <property name="fileSize" value="2000" /> + <property name="fcx" + value="6f:07:80:02:07:d0:82:01:01" /> + <property name="certificate" ref="certificateSS" /> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04InfoboxContainerEncryptedTest.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04InfoboxContainerEncryptedTest.xml new file mode 100644 index 00000000..21a92a99 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04InfoboxContainerEncryptedTest.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ACOSA04.xml" /> + + <bean name="card" parent="acosA04"> + <property name="applications"> + <list> + <ref bean="applDECInfoboxContainerEncrypted" /> + <ref bean="applSIG" /> + </list> + </property> + </bean> + + <bean name="applDECInfoboxContainerEncrypted" parent="applDEC"> + <property name="files"> + <list> + <ref bean="EF_C_CH_EKEY" /> + <bean parent="EF_Infobox"> + <property name="kid" value="-1" /> + <property name="container" value="true" /> + <property name="publicKey" ref="publicKeyDEC" /> + </bean> + </list> + </property> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04InvalidTest.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04InvalidTest.xml new file mode 100644 index 00000000..c661892c --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04InvalidTest.xml @@ -0,0 +1,263 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ACOSA04.xml" /> + + <bean name="card" parent="acosA04"> + <property name="applications"> + <list> + <ref bean="applDEC_invalid" /> + <ref bean="applSIG_invalid" /> + </list> + </property> + </bean> + + <bean name="applDEC_invalid" parent="applDEC"> + <property name="files"> + <list> + <bean class="at.gv.egiz.smcc.test.spring.CertificateFileFactoryBean"> + <property name="fid" value="c0:01" /> + <property name="fileSize" value="2000" /> + <property name="fcx" value="6f:07:80:02:07:d0:82:01 01" /> + <property name="certificate"> + <value> + 75:73:74:20:47:65:73:2e 20:66:2e:20:53:69:63:68 + 65:72:68:65:69:74:73:73 79:73:74:65:6d:65:20:69 + 6d:20:65:6c:65:6b:74:72 2e:20:44:61:74:65:6e:76 + 65:72:6b:65:68:72:20:47 6d:62:48:31:23:30:21:06 + 03:55:04:0b:0c:1a:61:2d 73:69:67:6e:2d:50:72:65 + 6d:69:75:6d:2d:54:65:73 74:2d:45:6e:63:2d:30:32 + 31:23:30:21:06:03:55:04 03:0c:1a:61:2d:73:69:67 + 6e:2d:50:72:65:6d:69:75 6d:2d:54:65:73:74:2d:45 + 6e:63:2d:30:32:30:1e:17 0d:30:39:30:31:31:33:30 + 39:34:35:31:32:5a:17:0d 31:32:31:32:33:31:30:39 + 34:35:31:32:5a:30:70:31 0b:30:09:06:03:55:04:06 + 13:02:41:54:31:1f:30:1d 06:03:55:04:03:0c:16:58 + 58:58:4f:74:74:6f:20:58 58:58:4f:74:74:61:6b:72 + 69:6e:67:65:72:31:17:30 15:06:03:55:04:04:0c:0e + 58:58:58:4f:74:74:61:6b 72:69:6e:67:65:72:31:10 + 30:0e:06:03:55:04:2a:0c 07:58:58:58:4f:74:74:6f + 31:15:30:13:06:03:55:04 05:13:0c:39:37:30:30:31 + 36:38:36:36:31:37:34:30 81:df:30:0d:06:09:2a:86 + 48:86:f7:0d:01:01:01:05 00:03:81:cd:00:30:81:c9 + 02:81:c1:00:ae:e6:07:1d b9:56:0a:98:1a:de:52:f2 + 77:dc:5e:76:7f:e5:c1:79 b9:51:97:08:20:4e:a6:a3 + ab:df:49:21:2b:65:4f:7c 26:e8:b9:47:df:03:0f:f7 + 4e:f4:47:3d:32:61:05:33 0f:dc:97:3e:bf:9b:f2:f8 + b3:e2:c4:4d:e0:48:6a:1b d2:fe:fa:ee:24:08:dc:60 + 2a:78:6c:1d:d3:74:43:1f 1f:4e:d2:0f:89:3c:e3:1e + fa:31:5a:c2:04:24:d1:e5 51:c4:94:26:d1:32:1e:df + 64:aa:af:2c:85:25:88:8f 80:e4:05:74:d5:da:69:88 + 4a:0c:6a:85:5f:67:51:6c 5c:1c:41:88:4c:ad:83:c9 + 10:97:45:00:3f:bd:1d:2f 28:2e:78:97:05:a5:41:42 + 37:08:60:0b:66:b1:b8:dd 98:03:03:33:c9:15:f7:5b + 35:a5:aa:7a:5e:e9:a7:60 ba:d8:0d:6d:b3:85:70:0e + 38:6f:f0:fd:02:03:01:00 01:a3:82:02:32:30:82:02 + 2e:30:13:06:03:55:1d:23 04:0c:30:0a:80:08:4b:5d + 02:5c:6d:58:24:67:30:81 84:06:08:2b:06:01:05:05 + 07:01:01:04:78:30:76:30 2c:06:08:2b:06:01:05:05 + 07:30:01:86:20:68:74:74 70:3a:2f:2f:6f:63:73:70 + 2d:74:65:73:74:2e:61:2d 74:72:75:73:74:2e:61:74 + 2f:6f:63:73:70:30:46:06 08:2b:06:01:05:05:07:30 + 02:86:3a:68:74:74:70:3a 2f:2f:77:77:77:2e:61:2d + 74:72:75:73:74:2e:61:74 2f:63:65:72:74:73:2f:61 + 2d:73:69:67:6e:2d:50:72 65:6d:69:75:6d:2d:54:65 + 73:74:2d:45:6e:63:2d:30 32:2e:63:72:74:30:81:93 + 06:03:55:1d:20:04:81:8b 30:81:88:30:81:85:06:06 + 2a:28:00:11:01:03:30:7b 30:3d:06:08:2b:06:01:05 + 05:07:02:01:16:31:68:74 74:70:3a:2f:2f:77:77:77 + 2e:61:2d:74:72:75:73:74 2e:61:74:2f:64:6f:63:73 + 2f:63:70:2f:61:2d:73:69 67:6e:2d:70:72:65:6d:69 + 75:6d:2d:74:65:73:74:30 3a:06:08:2b:06:01:05:05 + 07:02:02:30:2e:1a:2c:44 69:65:73:65:73:20:5a:65 + 72:74:69:66:69:6b:61:74 20:64:69:65:6e:74:20:6e + 75:72:20:7a:75:20:54:65 73:74:7a:77:65:63:6b:65 + 6e:20:21:30:81:a4:06:03 55:1d:1f:04:81:9c:30:81 + 99:30:81:96:a0:81:93:a0 81:90:86:81:8d:6c:64:61 + 70:3a:2f:2f:6c:64:61:70 2d:74:65:73:74:2e:61:2d + 74:72:75:73:74:2e:61:74 2f:6f:75:3d:61:2d:73:69 + 67:6e:2d:50:72:65:6d:69 75:6d:2d:54:65:73:74:2d + 45:6e:63:2d:30:32:2c:6f 3d:41:2d:54:72:75:73:74 + 2c:63:3d:41:54:3f:63:65 72:74:69:66:69:63:61:74 + 65:72:65:76:6f:63:61:74 69:6f:6e:6c:69:73:74:3f + 62:61:73:65:3f:6f:62:6a 65:63:74:63:6c:61:73:73 + 3d:65:69:64:43:65:72:74 69:66:69:63:61:74:69:6f + 6e:41:75:74:68:6f:72:69 74:79:30:11:06:03:55:1d + 0e:04:0a:04:08:4a:24:43 c0:85:2a:b4:51:30:0e:06 + 03:55:1d:0f:01:01:ff:04 04:03:02:04:b0:30:25:06 + 03:55:1d:11:04:1e:30:1c 81:1a:74:68:6f:6d:61:73 + 2e:72:6f:65:73:73:6c:65 72:40:65:67:69:7a:2e:67 + 76:2e:61:74:30:09:06:03 55:1d:13:04:02:30:00:30 + 0d:06:09:2a:86:48:86:f7 0d:01:01:05:05:00:03:82 + 01:01:00:4a:36:02:b3:ab 02:e9:e1:af:3f:d5:cd:3d + 51:08:b8:73:23:68:0c:22 32:cd:be:c8:77:bc:47:37 + dd:89:7c:22:24:2f:23:ea 3e:c2:f4:59:78:a6:be:cd + 71:aa:b5:bc:e3:bc:3f:f1 fa:1a:43:2b:91:35:67:a5 + 62:9d:55:85:e0:3f:ed:00 67:80:6a:fb:46:8a:ed:48 + 03:e7:9d:5c:ac:df:ec:2d 53:8b:01:db:14:91:21:af + a7:91:69:7e:97:68:cc:2a 06:1a:bc:53:35:de:d7:62 + 12:bd:54:b5:4c:3c:af:55 a4:5b:28:61:68:03:c6:72 + c0:a2:3f:84:02:f8:3d:70 3f:de:9d:6a:71:16:87:9d + 93:3d:46:41:a9:6a:ca:87 d4:d1:3f:1d:6e:6a:bf:02 + 9b:fb:4a:47:e0:20:4a:2d 5a:0c:6b:25:d6:2d:d4:53 + 08:41:a9:16:a2:a0:ef:13 a8:ec:7e:99:15:f9:1a:18 + 5e:75:c7:5d:40:d4:84:4a d2:f7:7c:65:12:c7:ae:bc + 9d:3e:ce:42:fe:e4:98:10 63:0d:aa:2d:73:7d:46:19 + ca:78:94:e5:11:83:87:b2 f7:59:90:47:86:57:cf:c7 + 7b:8f:ac:20:bd:46:ea:a2 10:e1:72:3e:e3:72:20:24 + a5:2f:c5 + </value> + </property> + </bean> + <bean + class="at.gv.egiz.smcc.test.spring.InfoboxContainerFileFactoryBean"> + <property name="fid" value="c0:02" /> + <property name="fileSize" value="1500" /> + <property name="fcx" value="6f:07:80:02:05:dc:82:01:01" /> + <property name="identityLink"> + <value> + 73:73:65:72:74:69:6f:6e 49:44:31:32:33:36:33:35 + 36:33:36:36:37:39:39:39 31:39:0c:19:32:30:30:39 + 2d:30:33:2d:30:36:54:31 36:3a:31:39:3a:32:36:2b + 30:31:3a:30:30:a0:42:30 40:0c:18:45:68:42:53:36 + 54:6f:31:49:6c:54:4b:4f 4a:45:39:75:62:74:48:69 + 51:3d:3d:0c:0a:58:58:58 c5:90:7a:67:c3:bc:72:0c + 0c:58:58:58:54:c3:bc:7a 65:6b:c3:a7:69:0c:0a:31 + 39:37:33:2d:30:36:2d:30 34:30:0a:a0:03:02:01:00 + a0:03:02:01:01:03:82:01 01:00:9f:a5:68:a9:14:4c + a4:5d:9d:09:99:2e:e7:45 2e:42:49:02:16:d9:cb:90 + 43:27:03:43:6d:b4:8c:dc 1c:77:d4:2e:a1:40:e7:e0 + 03:60:15:f7:db:03:5e:ca e4:35:ba:2b:fd:e6:b8:d8 + b7:2a:80:dd:38:e0:8a:69 ad:67:60:65:42:c9:41:60 + 94:de:84:54:ad:b3:f4:f7 44:d5:f3:d3:b6:87:8a:22 + 38:00:cb:a4:4f:96:c2:28 c2:8d:91:95:b4:ea:00:59 + 2e:ec:78:d8:0f:26:04:ee ed:13:bf:81:68:81:43:be + 15:0e:ba:f9:6a:18:eb:95 ad:b4:0f:3c:94:63:32:81 + 90:cf:3f:95:ff:8d:86:ed e4:75:d5:09:32:17:38:b2 + 68:35:49:8c:a6:d0:3e:de 6e:47:68:bf:98:33:ae:59 + 9f:e0:19:9b:5b:1b:8f:74 d2:9c:01:1a:df:af:f8:96 + 91:cb:f8:bf:06:c7:d5:17 95:ef:c5:97:37:1b:b0:a1 + 4f:9f:01:82:90:4a:6a:04 db:31:1a:58:eb:cd:68:e3 + 68:0b:a0:11:44:08:a0:5c fc:61:15:1f:bb:22:87:18 + a3:07:9b:0d:13:7c:ff:30 cf:f3:af:e4:45:05:a0:8e + 6b:ef:70:f5:4b:68:8f:61 d6:f5:a0:17:03:15:00:8e + a8:df:a9:77:fd:9b:4b:91 89:34:84:f3:24:b2:5a:39 + a9:f2:17:a1:17:03:15:00 db:a2:fd:a4:e7:65:2e:7e + b0:c8:fa:4d:13:28:df:b1 58:3b:9e:29:a2:17:03:15 + 00:68:a0:17:18:b7:b3:c3 60:77:82:8d:f1:5e:10:c3 + 2d:78:2c:11:0b + </value> + </property> + </bean> + </list> + </property> + </bean> + + <bean name="applSIG_invalid" parent="applSIG"> + <property name="files"> + <list> + <ref bean="EF_INFO" /> + <bean parent="EF_C_CH_DS"> + <property name="certificate"> + <value> + 75:73:74:20:47:65:73:2e 20:66:2e:20:53:69:63:68 + 65:72:68:65:69:74:73:73 79:73:74:65:6d:65:20:69 + 6d:20:65:6c:65:6b:74:72 2e:20:44:61:74:65:6e:76 + 65:72:6b:65:68:72:20:47 6d:62:48:31:23:30:21:06 + 03:55:04:0b:0c:1a:61:2d 73:69:67:6e:2d:50:72:65 + 6d:69:75:6d:2d:54:65:73 74:2d:53:69:67:2d:30:32 + 31:23:30:21:06:03:55:04 03:0c:1a:61:2d:73:69:67 + 6e:2d:50:72:65:6d:69:75 6d:2d:54:65:73:74:2d:53 + 69:67:2d:30:32:30:1e:17 0d:30:39:30:31:31:33:30 + 39:34:35:31:32:5a:17:0d 31:32:31:32:33:31:30:39 + 34:35:31:32:5a:30:70:31 0b:30:09:06:03:55:04:06 + 13:02:41:54:31:1f:30:1d 06:03:55:04:03:0c:16:58 + 58:58:4f:74:74:6f:20:58 58:58:4f:74:74:61:6b:72 + 69:6e:67:65:72:31:17:30 15:06:03:55:04:04:0c:0e + 58:58:58:4f:74:74:61:6b 72:69:6e:67:65:72:31:10 + 30:0e:06:03:55:04:2a:0c 07:58:58:58:4f:74:74:6f + 31:15:30:13:06:03:55:04 05:13:0c:39:37:30:30:31 + 36:38:36:36:31:37:34:30 59:30:13:06:07:2a:86:48 + ce:3d:02:01:06:08:2a:86 48:ce:3d:03:01:01:03:42 + 00:04:6b:de:5f:5e:d5:2b be:1e:b9:82:19:75:f4:3b + c1:34:e9:db:0b:25:31:33 fa:8b:72:d4:9f:21:f5:62 + b9:f6:50:db:cc:bf:43:b9 5e:75:2a:37:be:32:a6:83 + b1:5c:c3:9d:f0:ab:e6:8f e4:97:83:57:89:e0:13:e3 + 13:a8:a3:82:02:65:30:82 02:61:30:13:06:03:55:1d + 23:04:0c:30:0a:80:08:46 06:9f:8e:41:8e:15:bd:30 + 27:06:08:2b:06:01:05:05 07:01:03:01:01:ff:04:18 + 30:16:30:08:06:06:04:00 8e:46:01:01:30:0a:06:08 + 2b:06:01:05:05:07:0b:01 30:81:84:06:08:2b:06:01 + 05:05:07:01:01:04:78:30 76:30:2c:06:08:2b:06:01 + 05:05:07:30:01:86:20:68 74:74:70:3a:2f:2f:6f:63 + 73:70:2d:74:65:73:74:2e 61:2d:74:72:75:73:74:2e + 61:74:2f:6f:63:73:70:30 46:06:08:2b:06:01:05:05 + 07:30:02:86:3a:68:74:74 70:3a:2f:2f:77:77:77:2e + 61:2d:74:72:75:73:74:2e 61:74:2f:63:65:72:74:73 + 2f:61:2d:73:69:67:6e:2d 50:72:65:6d:69:75:6d:2d + 54:65:73:74:2d:53:69:67 2d:30:32:2e:63:72:74:30 + 81:9d:06:03:55:1d:20:04 81:95:30:81:92:30:81:85 + 06:06:2a:28:00:11:01:03 30:7b:30:3d:06:08:2b:06 + 01:05:05:07:02:01:16:31 68:74:74:70:3a:2f:2f:77 + 77:77:2e:61:2d:74:72:75 73:74:2e:61:74:2f:64:6f + 63:73:2f:63:70:2f:61:2d 73:69:67:6e:2d:70:72:65 + 6d:69:75:6d:2d:74:65:73 74:30:3a:06:08:2b:06:01 + 05:05:07:02:02:30:2e:1a 2c:44:69:65:73:65:73:20 + 5a:65:72:74:69:66:69:6b 61:74:20:64:69:65:6e:74 + 20:6e:75:72:20:7a:75:20 54:65:73:74:7a:77:65:63 + 6b:65:6e:20:21:30:08:06 06:04:00:8b:30:01:01:30 + 81:a4:06:03:55:1d:1f:04 81:9c:30:81:99:30:81:96 + a0:81:93:a0:81:90:86:81 8d:6c:64:61:70:3a:2f:2f + 6c:64:61:70:2d:74:65:73 74:2e:61:2d:74:72:75:73 + 74:2e:61:74:2f:6f:75:3d 61:2d:73:69:67:6e:2d:50 + 72:65:6d:69:75:6d:2d:54 65:73:74:2d:53:69:67:2d + 30:32:2c:6f:3d:41:2d:54 72:75:73:74:2c:63:3d:41 + 54:3f:63:65:72:74:69:66 69:63:61:74:65:72:65:76 + 6f:63:61:74:69:6f:6e:6c 69:73:74:3f:62:61:73:65 + 3f:6f:62:6a:65:63:74:63 6c:61:73:73:3d:65:69:64 + 43:65:72:74:69:66:69:63 61:74:69:6f:6e:41:75:74 + 68:6f:72:69:74:79:30:11 06:03:55:1d:0e:04:0a:04 + 08:46:08:da:9e:68:f8:e5 81:30:0e:06:03:55:1d:0f + 01:01:ff:04:04:03:02:06 c0:30:25:06:03:55:1d:11 + 04:1e:30:1c:81:1a:74:68 6f:6d:61:73:2e:72:6f:65 + 73:73:6c:65:72:40:65:67 69:7a:2e:67:76:2e:61:74 + 30:09:06:03:55:1d:13:04 02:30:00:30:0d:06:09:2a + 86:48:86:f7:0d:01:01:05 05:00:03:82:01:01:00:d8 + ec:e5:5c:17:42:e8:2f:04 1f:e2:04:57:07:30:dc:4f + 61:7d:d8:89:36:31:26:45 55:64:d3:55:1b:83:51:a0 + 39:1b:6a:7e:fa:7e:2c:d0 d3:86:7b:8d:29:8f:a3:83 + d2:72:ce:43:cf:c1:27:f1 4d:11:e2:67:be:6e:34:7d + 04:1f:ba:55:34:ea:c2:cf 0f:64:7b:84:e0:55:05:82 + dd:9d:d7:eb:91:78:69:49 58:70:ff:83:70:a0:b3:b7 + 3d:0f:8e:e9:1b:21:ef:31 0b:e3:ac:c6:0f:57:4f:d8 + d6:b2:d0:ca:d9:6f:3f:6e 83:8c:ff:47:ca:bc:81:60 + 5f:e2:dd:bd:89:b2:52:ac c3:8b:44:99:70:e7:2c:52 + 21:aa:a2:0f:38:c6:98:4d 48:da:65:41:a4:ad:41:7c + 99:14:e5:cb:51:d7:ab:76 b1:20:ce:32:1b:11:5c:ef + 8b:4f:f3:46:5b:11:d7:91 b6:41:d3:23:b6:03:a8:98 + 40:76:13:5d:4c:b2:e9:fe 90:27:04:fc:10:45:8b:10 + c3:b2:4b:3c:d2:5b:0f:e8 fb:b9:45:af:05:c4:ba:c7 + fc:a5:7d:db:4f:a9:76:e2 fa:c7:e0:ad:70:aa:40:15 + 64:01:ba:c6:c3:83:65:95 3c:05:53:88:e7:19:98 + </value> + </property> + </bean> + </list> + </property> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04NotActivatedTest.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04NotActivatedTest.xml new file mode 100644 index 00000000..f7ac0421 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04NotActivatedTest.xml @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ACOSA04.xml" /> + + <bean name="card" parent="acosA04"> + <property name="applications"> + <list> + <ref bean="applDEC_notActivated" /> + <ref bean="applSIG_notActivated" /> + </list> + </property> + </bean> + + <bean name="applDEC_notActivated" parent="applDEC"> + <property name="files"> + <list> + <bean class="at.gv.egiz.smcc.test.spring.CertificateFileFactoryBean"> + <property name="fid" value="c0:01" /> + <property name="fileSize" value="2000" /> + <property name="fcx" value="6f:07:80:02:07:d0:82:01 01" /> + <property name="certificate" value="" /> + </bean> + <bean + class="at.gv.egiz.smcc.test.spring.InfoboxContainerFileFactoryBean"> + <property name="fid" value="c0:02" /> + <property name="fileSize" value="1500" /> + <property name="fcx" value="6f:07:80:02:05:dc:82:01:01" /> + <property name="identityLink" value="" /> + </bean> + </list> + </property> + <property name="pins"> + <map> + <entry key="0x81"> + <bean class="at.gv.egiz.smcc.PIN"> + <property name="state"> + <util:constant static-field="at.gv.egiz.smcc.PIN.STATE_PIN_NOTACTIVE" /> + </property> + </bean> + </entry> + </map> + </property> + </bean> + + <bean name="applSIG_notActivated" parent="applSIG"> + <property name="files"> + <list> + <ref bean="EF_INFO" /> + <bean parent="EF_C_CH_DS"> + <property name="certificate" value="" /> + </bean> + </list> + </property> + <property name="pins"> + <map> + <entry key="0x81"> + <bean class="at.gv.egiz.smcc.PIN"> + <property name="state"> + <util:constant static-field="at.gv.egiz.smcc.PIN.STATE_PIN_NOTACTIVE" /> + </property> + </bean> + </entry> + </map> + </property> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04Test.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04Test.xml new file mode 100644 index 00000000..97d0b560 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/acos/ACOSA04Test.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:util="http://www.springframework.org/schema/util" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ACOSA04.xml"/> + + <bean name="card" parent="acosA04"/> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECard.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECard.xml new file mode 100644 index 00000000..5b00b1a8 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECard.xml @@ -0,0 +1,323 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:util="http://www.springframework.org/schema/util" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <bean name="privateKeyAUT" class="at.gv.egiz.smcc.test.spring.PrivateKeyFactoryBean"> + <property name="algorithm" value="RSA" /> + <property name="encodedKey"> + <value> + 30:82:03:97:02:01:00:30 0d:06:09:2a:86:48:86:f7 + 0d:01:01:01:05:00:04:82 03:81:30:82:03:7d:02:01 + 00:02:81:c1:00:8e:e9:1a 66:1e:0d:12:65:f1:63:5f + b7:e4:57:57:5b:c4:5d:98 5e:32:36:ca:82:45:1d:41 + 36:66:2c:bb:35:95:96:22 01:0c:01:07:fd:d1:7c:34 + 70:7c:47:91:e2:72:14:97 54:2e:c3:de:c4:79:0d:e6 + cc:61:2f:0b:48:36:3e:8b 36:ec:46:a9:55:c2:28:c9 + c4:13:ba:ca:34:d0:a0:ae 4e:06:c9:30:f4:68:4d:d1 + d2:ff:a5:6a:81:03:6d:e0 7b:35:c4:1a:d3:89:5f:09 + 51:6a:61:7c:75:21:6e:4e 3a:70:38:2c:11:07:37:b6 + 16:15:ea:82:9e:42:71:9c f1:fe:dd:49:6a:fd:ce:69 + 91:7c:65:5d:d5:ca:a0:90 b5:06:5a:4b:a4:b2:d6:6d + 95:65:eb:e8:ba:33:88:c1 18:f6:2d:ea:0d:d3:26:a4 + f5:10:31:7e:5a:e2:f6:5e 55:82:29:ba:8d:2c:47:5d + 99:5c:cc:41:27:02:03:01 00:01:02:81:c0:3b:6d:9a + 09:bf:13:66:84:38:06:40 06:a3:90:e2:86:09:b9:76 + 24:2d:b3:75:31:08:f6:aa 68:a9:c2:8e:33:31:3a:56 + 77:a2:fb:46:cc:78:f1:b2 88:d8:55:96:c7:d8:f2:d1 + 1f:33:b7:46:0a:e3:e0:31 0a:ea:9a:fa:91:13:e5:9c + 54:c1:9a:7c:ce:69:c8:36 67:30:61:2b:b7:1c:ce:c4 + cd:33:ab:34:8d:5e:56:86 1b:bd:2d:97:84:dc:a6:aa + 38:da:cc:c3:58:37:fa:3e d6:75:b2:19:0c:ea:70:fa + fe:48:fe:5c:f4:3c:c2:a5 5c:a3:dc:52:1c:62:ec:a2 + be:4d:34:78:b1:fd:75:ce 87:49:18:9c:2d:f1:a4:d6 + dc:46:75:5c:56:33:82:65 54:05:1c:45:a1:b1:1c:d8 + 6e:58:82:40:66:e4:29:de cc:63:dc:b1:19:d1:b6:b3 + ad:90:58:09:c8:8a:a6:0e 17:99:1d:0a:e1:02:61:00 + f6:6c:1b:3c:78:41:f9:13 3f:0d:be:de:21:84:a2:d2 + 96:a7:70:30:f1:4c:01:94 86:aa:7c:70:0b:14:11:80 + d5:21:e6:c7:82:3d:23:ce 92:c7:20:98:3a:13:ed:e7 + 7f:47:1b:2c:85:92:f5:ee 8f:b2:73:4b:c5:77:88:df + 23:54:35:bc:08:1b:07:4d 48:ee:2e:8a:ef:c9:f1:9d + 8e:74:32:e1:23:ef:3f:f7 ff:32:a2:61:db:a6:c1:b7 + 02:61:00:94:77:0e:f5:c7 f2:b3:a4:22:94:2e:f2:f4 + 9d:ec:fc:3e:ba:74:59:48 b2:87:36:83:9f:d9:ed:32 + 1a:4a:85:1c:97:d8:db:4a 81:13:04:5a:f2:e1:ef:98 + c1:fa:4a:93:cd:a1:f8:fc 9b:4f:40:bd:3e:7a:69:17 + 3b:6f:06:c8:6a:55:eb:fb ca:c1:13:40:e0:ef:44:b4 + ca:cf:91:ba:37:4a:70:eb a4:2e:a8:c9:1c:33:98:e7 + 41:bc:11:02:61:00:a9:e1 05:35:be:c1:dc:70:04:3b + f9:a5:30:fe:3b:31:6a:62 ab:d9:51:bf:d0:27:10:5f + 5f:c1:ee:21:3b:9f:d1:4e b9:c6:38:66:e5:d4:77:23 + 87:b8:e9:f0:eb:45:78:5d 10:c2:b4:a3:07:a0:1a:b8 + 2e:fb:c1:7a:12:85:a1:d9 5f:e1:ec:c4:95:58:16:3a + fd:23:13:03:e8:e9:71:57 71:eb:fb:d5:e8:07:93:8a + d8:9f:15:c9:f4:29:02:60 53:19:ad:22:ff:8f:26:e4 + 29:82:be:20:b9:b1:27:f4 2c:fc:5a:a1:9b:22:6a:b2 + a5:cc:34:c4:22:b6:3a:9d f5:5a:3d:44:c9:98:23:d7 + dd:3c:74:20:93:65:88:3e 74:2a:b6:8d:d2:7e:f0:46 + 71:66:e6:47:aa:7c:56:f1 f9:fe:23:27:da:a1:2b:9f + 26:42:81:4a:f8:d3:48:89 ee:2c:82:9b:60:1a:5f:0f + 94:ba:17:5b:6f:9e:08:b1 02:61:00:d1:0a:b8:9e:b6 + 03:a2:56:10:18:4a:3f:b7 c6:ca:46:7a:89:8e:e8:e5 + 6f:a9:3f:a8:27:75:f0:85 8d:92:8e:f1:54:e3:0e:82 + 0f:d4:a9:e3:90:c9:da:f0 5d:2e:2a:ed:c4:a4:6f:79 + e9:4b:dd:19:c2:a3:85:96 48:9b:ec:ad:51:a6:7b:cd + 01:bb:a5:a0:03:14:0a:30 69:43:c4:ba:d1:32:30:5d + 84:be:ad:61:32:cc:3c:cb e5:20:fd + </value> + </property> + </bean> + + <bean name="publicKeyAUT" class="at.gv.egiz.smcc.test.spring.PublicKeyFactoryBean"> + <property name="algorithm" value="RSA" /> + <property name="encodedKey"> + <value> + 30:81:df:30:0d:06:09:2a 86:48:86:f7:0d:01:01:01 + 05:00:03:81:cd:00:30:81 c9:02:81:c1:00:8e:e9:1a + 66:1e:0d:12:65:f1:63:5f b7:e4:57:57:5b:c4:5d:98 + 5e:32:36:ca:82:45:1d:41 36:66:2c:bb:35:95:96:22 + 01:0c:01:07:fd:d1:7c:34 70:7c:47:91:e2:72:14:97 + 54:2e:c3:de:c4:79:0d:e6 cc:61:2f:0b:48:36:3e:8b + 36:ec:46:a9:55:c2:28:c9 c4:13:ba:ca:34:d0:a0:ae + 4e:06:c9:30:f4:68:4d:d1 d2:ff:a5:6a:81:03:6d:e0 + 7b:35:c4:1a:d3:89:5f:09 51:6a:61:7c:75:21:6e:4e + 3a:70:38:2c:11:07:37:b6 16:15:ea:82:9e:42:71:9c + f1:fe:dd:49:6a:fd:ce:69 91:7c:65:5d:d5:ca:a0:90 + b5:06:5a:4b:a4:b2:d6:6d 95:65:eb:e8:ba:33:88:c1 + 18:f6:2d:ea:0d:d3:26:a4 f5:10:31:7e:5a:e2:f6:5e + 55:82:29:ba:8d:2c:47:5d 99:5c:cc:41:27:02:03:01 + 00:01 + </value> + </property> + </bean> + + <bean name="certificateSS" class="at.gv.egiz.smcc.test.spring.ByteArrayFactoryBean"> + <property name="bytes"> + <value> + 30:82:04:eb:30:82:03:d3 a0:03:02:01:02:02:03:02 + 06:5e:30:0d:06:09:2a:86 48:86:f7:0d:01:01:05:05 + 00:30:81:a1:31:0b:30:09 06:03:55:04:06:13:02:41 + 54:31:48:30:46:06:03:55 04:0a:0c:3f:41:2d:54:72 + 75:73:74:20:47:65:73:2e 20:66:2e:20:53:69:63:68 + 65:72:68:65:69:74:73:73 79:73:74:65:6d:65:20:69 + 6d:20:65:6c:65:6b:74:72 2e:20:44:61:74:65:6e:76 + 65:72:6b:65:68:72:20:47 6d:62:48:31:23:30:21:06 + 03:55:04:0b:0c:1a:61:2d 73:69:67:6e:2d:50:72:65 + 6d:69:75:6d:2d:54:65:73 74:2d:53:69:67:2d:30:32 + 31:23:30:21:06:03:55:04 03:0c:1a:61:2d:73:69:67 + 6e:2d:50:72:65:6d:69:75 6d:2d:54:65:73:74:2d:53 + 69:67:2d:30:32:30:1e:17 0d:30:39:30:33:30:36:31 + 35:32:32:33:37:5a:17:0d 31:32:30:33:30:36:31:35 + 32:32:33:37:5a:30:72:31 0b:30:09:06:03:55:04:06 + 13:02:41:54:31:20:30:1e 06:03:55:04:03:0c:17:58 + 58:58:c5:90:7a:67:c3:bc 72:20:58:58:58:54:c3:bc + 7a:65:6b:c3:a7:69:31:15 30:13:06:03:55:04:04:0c + 0c:58:58:58:54:c3:bc:7a 65:6b:c3:a7:69:31:13:30 + 11:06:03:55:04:2a:0c:0a 58:58:58:c5:90:7a:67:c3 + bc:72:31:15:30:13:06:03 55:04:05:13:0c:37:30:34 + 38:37:31:30:35:30:30:30 38:30:49:30:13:06:07:2a + 86:48:ce:3d:02:01:06:08 2a:86:48:ce:3d:03:01:01 + 03:32:00:04:de:75:22:4c c4:d4:14:16:48:4a:65:9d + 5a:39:71:11:1c:33:7e:7f b4:06:33:74:e6:f3:c2:56 + 46:18:39:b9:c4:47:84:f5 46:41:60:78:81:45:4a:0f + 67:77:77:b2:a3:82:02:33 30:82:02:2f:30:13:06:03 + 55:1d:23:04:0c:30:0a:80 08:46:06:9f:8e:41:8e:15 + bd:30:27:06:08:2b:06:01 05:05:07:01:03:01:01:ff + 04:18:30:16:30:08:06:06 04:00:8e:46:01:01:30:0a + 06:08:2b:06:01:05:05:07 0b:01:30:81:84:06:08:2b + 06:01:05:05:07:01:01:04 78:30:76:30:2c:06:08:2b + 06:01:05:05:07:30:01:86 20:68:74:74:70:3a:2f:2f + 6f:63:73:70:2d:74:65:73 74:2e:61:2d:74:72:75:73 + 74:2e:61:74:2f:6f:63:73 70:30:46:06:08:2b:06:01 + 05:05:07:30:02:86:3a:68 74:74:70:3a:2f:2f:77:77 + 77:2e:61:2d:74:72:75:73 74:2e:61:74:2f:63:65:72 + 74:73:2f:61:2d:73:69:67 6e:2d:50:72:65:6d:69:75 + 6d:2d:54:65:73:74:2d:53 69:67:2d:30:32:2e:63:72 + 74:30:81:92:06:03:55:1d 20:04:81:8a:30:81:87:30 + 7b:06:06:2a:28:00:11:01 03:30:71:30:35:06:08:2b + 06:01:05:05:07:02:01:16 29:68:74:74:70:3a:2f:2f + 77:77:77:2e:61:2d:74:72 75:73:74:2e:61:74:2f:64 + 6f:63:73:2f:63:70:2f:61 2d:73:69:67:6e:2d:74:65 + 73:74:30:38:06:08:2b:06 01:05:05:07:02:02:30:2c + 1a:2a:44:69:65:73:65:73 20:5a:65:72:74:69:66:69 + 6b:61:74:20:64:69:65:6e 74:20:6e:75:72:20:7a:75 + 20:54:65:73:74:7a:77:65 63:6b:65:6e:30:08:06:06 + 04:00:8b:30:01:01:30:81 a4:06:03:55:1d:1f:04:81 + 9c:30:81:99:30:81:96:a0 81:93:a0:81:90:86:81:8d + 6c:64:61:70:3a:2f:2f:6c 64:61:70:2d:74:65:73:74 + 2e:61:2d:74:72:75:73:74 2e:61:74:2f:6f:75:3d:61 + 2d:73:69:67:6e:2d:50:72 65:6d:69:75:6d:2d:54:65 + 73:74:2d:53:69:67:2d:30 32:2c:6f:3d:41:2d:54:72 + 75:73:74:2c:63:3d:41:54 3f:63:65:72:74:69:66:69 + 63:61:74:65:72:65:76:6f 63:61:74:69:6f:6e:6c:69 + 73:74:3f:62:61:73:65:3f 6f:62:6a:65:63:74:63:6c + 61:73:73:3d:65:69:64:43 65:72:74:69:66:69:63:61 + 74:69:6f:6e:41:75:74:68 6f:72:69:74:79:30:11:06 + 03:55:1d:0e:04:0a:04:08 47:64:6e:bb:92:a0:f6:f4 + 30:0e:06:03:55:1d:0f:01 01:ff:04:04:03:02:06:c0 + 30:09:06:03:55:1d:13:04 02:30:00:30:0d:06:09:2a + 86:48:86:f7:0d:01:01:05 05:00:03:82:01:01:00:06 + 63:76:0a:d5:54:fa:51:2a b0:41:dc:a4:9b:52:1c:0e + 1d:65:46:2b:a3:cd:d4:46 36:40:c3:49:e8:a4:dc:01 + de:70:97:31:b0:cd:df:69 f8:c3:83:ee:c6:ed:e3:18 + 1a:80:c1:30:a9:d6:b1:b8 a8:e0:3d:b1:8e:2c:c9:a6 + 05:6e:4a:d2:b2:03:a4:2b a2:ad:ad:e5:ba:0d:54:8d + 92:51:da:58:ed:d3:8d:61 a1:fc:49:f6:80:db:65:92 + e0:d5:23:69:0f:38:11:61 1e:cd:a2:8e:68:ec:70:fb + 55:95:cb:b4:18:6b:3a:25 4a:3e:07:b0:18:26:51:39 + 46:fa:e2:ae:e6:1c:d2:cb 28:a1:8b:56:bb:e9:6c:f7 + 0b:84:dd:7f:64:8b:43:93 62:39:fb:91:fa:3a:57:56 + 4a:aa:99:1e:9b:cc:a4:c0 18:46:ae:15:24:f5:f3:e6 + 36:55:29:a8:a9:af:7b:44 19:da:66:4d:11:89:28:34 + 01:15:24:93:43:6a:8f:e4 54:3a:3d:9b:2f:c3:db:7e + 5e:12:00:aa:e7:c1:82:1c 1d:1d:23:1d:a3:cc:59:e4 + 7a:f0:14:17:fb:96:90:c1 c0:de:db:91:fb:49:39:70 + 76:2f:7b:22:cd:35:cb:ed 8f:b3:66:ae:95:49:75 + </value> + </property> + </bean> + + <bean name="certificateGS" class="at.gv.egiz.smcc.test.spring.ByteArrayFactoryBean"> + <property name="bytes"> + <value> + 30:82:04:98:30:82:03:80 a0:03:02:01:02:02:03:02 + 06:5f:30:0d:06:09:2a:86 48:86:f7:0d:01:01:05:05 + 00:30:81:95:31:0b:30:09 06:03:55:04:06:13:02:41 + 54:31:48:30:46:06:03:55 04:0a:0c:3f:41:2d:54:72 + 75:73:74:20:47:65:73:2e 20:66:2e:20:53:69:63:68 + 65:72:68:65:69:74:73:73 79:73:74:65:6d:65:20:69 + 6d:20:65:6c:65:6b:74:72 2e:20:44:61:74:65:6e:76 + 65:72:6b:65:68:72:20:47 6d:62:48:31:1d:30:1b:06 + 03:55:04:0b:0c:14:61:2d 73:69:67:6e:2d:74:6f:6b + 65:6e:2d:54:65:73:74:2d 30:33:31:1d:30:1b:06:03 + 55:04:03:0c:14:61:2d:73 69:67:6e:2d:74:6f:6b:65 + 6e:2d:54:65:73:74:2d:30 33:30:1e:17:0d:30:39:30 + 33:30:36:31:35:32:32:33 38:5a:17:0d:31:32:30:33 + 30:36:31:35:32:32:33:38 5a:30:72:31:0b:30:09:06 + 03:55:04:06:13:02:41:54 31:20:30:1e:06:03:55:04 + 03:0c:17:58:58:58:c5:90 7a:67:c3:bc:72:20:58:58 + 58:54:c3:bc:7a:65:6b:c3 a7:69:31:15:30:13:06:03 + 55:04:04:0c:0c:58:58:58 54:c3:bc:7a:65:6b:c3:a7 + 69:31:13:30:11:06:03:55 04:2a:0c:0a:58:58:58:c5 + 90:7a:67:c3:bc:72:31:15 30:13:06:03:55:04:05:13 + 0c:37:30:34:38:37:31:30 35:30:30:30:38:30:49:30 + 13:06:07:2a:86:48:ce:3d 02:01:06:08:2a:86:48:ce + 3d:03:01:01:03:32:00:04 02:55:51:f9:2a:ea:6f:d3 + f5:da:a9:7a:22:fc:b4:38 e9:5c:dc:6b:86:a6:77:a7 + 90:f3:36:e0:c4:de:72:f2 1a:07:fa:d0:c8:1c:a0:c8 + 8b:5d:de:9e:f8:3b:7c:8c a3:82:01:ec:30:82:01:e8 + 30:13:06:03:55:1d:23:04 0c:30:0a:80:08:47:7e:5b + db:37:33:b1:fa:30:7e:06 08:2b:06:01:05:05:07:01 + 01:04:72:30:70:30:2c:06 08:2b:06:01:05:05:07:30 + 01:86:20:68:74:74:70:3a 2f:2f:6f:63:73:70:2d:74 + 65:73:74:2e:61:2d:74:72 75:73:74:2e:61:74:2f:6f + 63:73:70:30:40:06:08:2b 06:01:05:05:07:30:02:86 + 34:68:74:74:70:3a:2f:2f 77:77:77:2e:61:2d:74:72 + 75:73:74:2e:61:74:2f:63 65:72:74:73:2f:61:2d:73 + 69:67:6e:2d:74:6f:6b:65 6e:2d:74:65:73:74:2d:30 + 33:2e:63:72:74:30:81:86 06:03:55:1d:20:04:7f:30 + 7d:30:7b:06:06:2a:28:00 11:01:03:30:71:30:35:06 + 08:2b:06:01:05:05:07:02 01:16:29:68:74:74:70:3a + 2f:2f:77:77:77:2e:61:2d 74:72:75:73:74:2e:61:74 + 2f:64:6f:63:73:2f:63:70 2f:61:2d:73:69:67:6e:2d + 74:65:73:74:30:38:06:08 2b:06:01:05:05:07:02:02 + 30:2c:1a:2a:44:69:65:73 65:73:20:5a:65:72:74:69 + 66:69:6b:61:74:20:64:69 65:6e:74:20:6e:75:72:20 + 7a:75:20:54:65:73:74:7a 77:65:63:6b:65:6e:30:81 + 99:06:03:55:1d:1f:04:81 91:30:81:8e:30:81:8b:a0 + 81:88:a0:81:85:86:81:82 6c:64:61:70:3a:2f:2f:6c + 64:61:70:2d:74:65:73:74 2e:61:2d:74:72:75:73:74 + 2e:61:74:2f:6f:75:3d:61 2d:73:69:67:6e:2d:74:6f + 6b:65:6e:2d:30:33:2c:6f 3d:41:2d:54:72:75:73:74 + 2c:63:3d:41:54:3f:63:65 72:74:69:66:69:63:61:74 + 65:72:65:76:6f:63:61:74 69:6f:6e:6c:69:73:74:3f + 62:61:73:65:3f:6f:62:6a 65:63:74:63:6c:61:73:73 + 3d:65:69:64:43:65:72:74 69:66:69:63:61:74:69:6f + 6e:41:75:74:68:6f:72:69 74:79:30:11:06:03:55:1d + 0e:04:0a:04:08:4a:43:51 30:45:fc:2a:00:30:0e:06 + 03:55:1d:0f:01:01:ff:04 04:03:02:04:b0:30:09:06 + 03:55:1d:13:04:02:30:00 30:0d:06:09:2a:86:48:86 + f7:0d:01:01:05:05:00:03 82:01:01:00:31:dc:f3:43 + 79:dd:a9:2a:dc:21:f9:d9 8f:9a:4e:01:40:9a:f1:14 + 8d:3a:5e:88:36:45:1f:16 3e:eb:a2:ef:bf:55:bd:5e + 0e:19:c7:0c:bd:ed:df:b8 75:4e:6a:3a:9a:10:fa:49 + c1:d2:35:c5:9a:d7:f4:f0 cd:13:d1:24:06:f8:1f:ea + d6:7a:cb:4f:b5:3e:6c:b2 fc:e3:aa:2b:20:91:f5:5b + f1:94:0e:06:0a:fd:25:71 11:fc:84:46:ef:5b:0b:a4 + 4a:5d:42:99:c8:4e:51:d8 63:d1:bd:00:a3:dd:8f:12 + 42:be:ca:15:37:4c:d2:c9 a7:37:b2:76:b7:34:92:98 + 60:e7:3d:55:a2:6c:b6:66 67:e1:e4:8f:e3:a5:b8:b5 + c8:8f:9e:e3:f1:aa:8e:e6 e2:47:49:3d:be:8c:dd:ce + 8d:52:ac:b9:83:e9:9d:98 7b:da:2b:bc:83:cb:74:64 + 17:4c:33:bb:88:c2:dd:08 69:d8:a2:ac:95:71:d3:f8 + c9:d1:d6:0e:c3:67:a1:db ca:58:aa:4b:ec:37:46:73 + c3:a3:7b:1e:dd:f9:b3:bb e0:16:39:af:a0:19:9e:89 + 37:1e:6e:41:59:e1:86:ea 0b:39:03:89:d2:ba:d5:0c + 84:09:dd:c7:00:2c:2e:1a 69:eb:df:b1 + </value> + </property> + </bean> + + <bean name="identityLink" class="at.gv.egiz.smcc.test.spring.ByteArrayFactoryBean"> + <property name="bytes"> + <value> + 30:82:02:11:02:01:01:0c 26:68:74:74:70:3a:2f:2f + 77:77:77:2e:61:2d:74:72 75:73:74:2e:61:74:2f:7a + 6d:72:2f:70:65:72:73:62 32:30:34:2e:78:73:6c:0c + 29:73:7a:72:2e:62:6d:69 2e:67:76:2e:61:74:2d:41 + 73:73:65:72:74:69:6f:6e 49:44:31:32:33:36:33:35 + 36:33:36:36:37:39:39:39 31:39:0c:19:32:30:30:39 + 2d:30:33:2d:30:36:54:31 36:3a:31:39:3a:32:36:2b + 30:31:3a:30:30:a0:42:30 40:0c:18:45:68:42:53:36 + 54:6f:31:49:6c:54:4b:4f 4a:45:39:75:62:74:48:69 + 51:3d:3d:0c:0a:58:58:58 c5:90:7a:67:c3:bc:72:0c + 0c:58:58:58:54:c3:bc:7a 65:6b:c3:a7:69:0c:0a:31 + 39:37:33:2d:30:36:2d:30 34:30:0a:a0:03:02:01:00 + a0:03:02:01:01:03:82:01 01:00:9f:a5:68:a9:14:4c + a4:5d:9d:09:99:2e:e7:45 2e:42:49:02:16:d9:cb:90 + 43:27:03:43:6d:b4:8c:dc 1c:77:d4:2e:a1:40:e7:e0 + 03:60:15:f7:db:03:5e:ca e4:35:ba:2b:fd:e6:b8:d8 + b7:2a:80:dd:38:e0:8a:69 ad:67:60:65:42:c9:41:60 + 94:de:84:54:ad:b3:f4:f7 44:d5:f3:d3:b6:87:8a:22 + 38:00:cb:a4:4f:96:c2:28 c2:8d:91:95:b4:ea:00:59 + 2e:ec:78:d8:0f:26:04:ee ed:13:bf:81:68:81:43:be + 15:0e:ba:f9:6a:18:eb:95 ad:b4:0f:3c:94:63:32:81 + 90:cf:3f:95:ff:8d:86:ed e4:75:d5:09:32:17:38:b2 + 68:35:49:8c:a6:d0:3e:de 6e:47:68:bf:98:33:ae:59 + 9f:e0:19:9b:5b:1b:8f:74 d2:9c:01:1a:df:af:f8:96 + 91:cb:f8:bf:06:c7:d5:17 95:ef:c5:97:37:1b:b0:a1 + 4f:9f:01:82:90:4a:6a:04 db:31:1a:58:eb:cd:68:e3 + 68:0b:a0:11:44:08:a0:5c fc:61:15:1f:bb:22:87:18 + a3:07:9b:0d:13:7c:ff:30 cf:f3:af:e4:45:05:a0:8e + 6b:ef:70:f5:4b:68:8f:61 d6:f5:a0:17:03:15:00:8e + a8:df:a9:77:fd:9b:4b:91 89:34:84:f3:24:b2:5a:39 + a9:f2:17:a1:17:03:15:00 db:a2:fd:a4:e7:65:2e:7e + b0:c8:fa:4d:13:28:df:b1 58:3b:9e:29:a2:17:03:15 + 00:68:a0:17:18:b7:b3:c3 60:77:82:8d:f1:5e:10:c3 + 2d:78:2c:11:0b + </value> + </property> + </bean> + + <bean class="org.springframework.beans.factory.config.CustomEditorConfigurer"> + <property name="propertyEditorRegistrars"> + <list> + <bean class="at.gv.egiz.smcc.test.spring.ByteArrayPropertyEditorRegistrar"></bean> + </list> + </property> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardApplInfobox.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardApplInfobox.xml new file mode 100644 index 00000000..2baa15da --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardApplInfobox.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:util="http://www.springframework.org/schema/util" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ECard.xml"/> + + <bean name="applInfobox" class="at.gv.egiz.smcc.starcos.STARCOSApplInfobox"> + <property name="aid" value="d0:40:00:00:17:00:18:01" /> + <property name="fid" value="3f:06" /> + <property name="fcx" + value="6f:14:84:08:d0:40:00:00:17:00:18:01:a5:08:53:02:01:11:54:02:01:00" /> + <property name="files"> + <list> + <ref bean="EF_Infobox"/> + </list> + </property> + </bean> + + <bean name="EF_Infobox" + class="at.gv.egiz.smcc.test.spring.InfoboxContainerFileFactoryBean"> + <property name="fid" value="ef:01" /> + <property name="kid" value="1" /> + <property name="fileSize" value="1500" /> + <property name="fcx" + value="6f:14:84:08:d0:40:00:00:17:00:18:01:a5:08:53:02:01:11:54:02:01:00" /> + <property name="identityLink" ref="identityLink"/> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG2.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG2.xml new file mode 100644 index 00000000..986f26b3 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG2.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ECard.xml" /> + <import resource="ECardApplInfobox.xml" /> + <import resource="ECardG2ApplSichereSignatur.xml" /> + <import resource="ECardG2ApplGewoehnlicheSignatur.xml" /> + + <bean name="eCardG2" class="at.gv.egiz.smcc.CardEmul" + abstract="true"> + <property name="atr" + value="3b:bd:18:00:81:31:fe:45:80:51:02:67:05:18:b1:02:02:02:01:81:05:31" /> + <property name="basicChannel" ref="cardChannel" /> + <property name="applications"> + <list> + <ref bean="applInfobox" /> + <ref bean="applSichereSignatur" /> + <ref bean="applGewoehnlicheSignatur" /> + </list> + </property> + </bean> + + <bean name="cardChannel" class="at.gv.egiz.smcc.starcos.STARCOSCardChannelEmul"> + <property name="cardEmul" ref="card" /> + <property name="globalPins"> + <map> + <entry key="0x01" value-ref="kartenPIN" /> + </map> + </property> + <property name="globalFiles"> + <list> + <ref bean="EF_VERSION" /> + </list> + </property> + </bean> + + <bean name="kartenPIN" class="at.gv.egiz.smcc.PIN"> + <property name="pin" value="24:12:34:ff:ff:ff:ff:ff" /> + <property name="kfpc" value="10" /> + </bean> + + + <bean name="EF_VERSION" class="at.gv.egiz.smcc.File"> + <property name="fid" value="00:32" /> + <property name="fcx" + value="62:1a:80:02:00:14:82:05:44:41:00:14:01:83:02:00:32:88:01:d8:8a:01:05:a1 03:8b:01:03" /> + <property name="file"> + <value> + a5:0e:53:02:01:10:54:08 01:01:03:01:04:01:70:01 + </value> + </property> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG2ApplGewoehnlicheSignatur.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG2ApplGewoehnlicheSignatur.xml new file mode 100644 index 00000000..3b86fa72 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG2ApplGewoehnlicheSignatur.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ECard.xml" /> + + <bean name="applGewoehnlicheSignatur" + class="at.gv.egiz.smcc.starcos.STARCOSApplGewoehnlicheSignatur"> + <property name="cardChannel" ref="cardChannel" /> + <property name="aid" value="d0:40:00:00:17:00:13:01" /> + <property name="fid" value="3f:05" /> + <property name="fcx" + value="6f:14:84:08:d0:40:00:00:17:00:13:01:a5:08:53:02:01:10:54:02:01:00" /> + <property name="privateKey" ref="privateKeyAUT" /> + <property name="dst" value="84:03:80:02:00:89:03:13:35:10" /> + <property name="ct" value="84:03:80:02:00:89:02:32:31" /> + <property name="files"> + <list> + <ref bean="EF_C_X509_CH_AUT" /> + </list> + </property> + </bean> + + <bean name="EF_C_X509_CH_AUT" + class="at.gv.egiz.smcc.test.spring.CertificateFileFactoryBean"> + <property name="fid" value="2f:01" /> + <property name="fileSize" value="2000" /> + <property name="fcx" + value="62:16:80:02:04:9c:82:01:01:83:02:2f:01:88:01:08:8a:01:05:a1:03:8b:01:08" /> + <property name="certificate" ref="certificateGS" /> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG2ApplSichereSignatur.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG2ApplSichereSignatur.xml new file mode 100644 index 00000000..39d357a7 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG2ApplSichereSignatur.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ECard.xml" /> + + <bean name="applSichereSignatur" class="at.gv.egiz.smcc.starcos.STARCOSG2ApplSichereSignatur"> + <property name="cardChannel" ref="cardChannel" /> + <property name="aid" value="d0:40:00:00:17:00:12:01" /> + <property name="fid" value="3f:04" /> + <property name="fcx" + value="6f:16:84:08:d0:40:00:00:17:00:12:01:a5:0a:53:02:01:10:54:04:01:00:03:00" /> + <property name="files"> + <list> + <ref bean="EF_C_X509_CH_DS" /> + </list> + </property> + <property name="pins"> + <map> + <entry key="0x81" value-ref="signaturPIN" /> + </map> + </property> + </bean> + + <bean name="signaturPIN" class="at.gv.egiz.smcc.PIN"> + <property name="pin" value="26:12:34:56:ff:ff:ff:ff" /> + <property name="kfpc" value="3" /> + </bean> + + <bean name="EF_C_X509_CH_DS" + class="at.gv.egiz.smcc.test.spring.CertificateFileFactoryBean"> + <property name="fid" value="c0:00" /> + <property name="fileSize" value="2000" /> + <property name="fcx" + value="62:16:80:02:04:ef:82:01:01:83:02:c0:00:88:01:08:8a:01:05:a1:03:8b:01:0e" /> + <property name="certificate" ref="certificateSS" /> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG2Test.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG2Test.xml new file mode 100644 index 00000000..0cc89920 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG2Test.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:util="http://www.springframework.org/schema/util" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ECardG2.xml"/> + + <bean name="card" parent="eCardG2"/> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3.xml new file mode 100644 index 00000000..81cdb3cd --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ECard.xml" /> + <import resource="ECardApplInfobox.xml" /> + <import resource="ECardG3ApplSichereSignatur.xml" /> + <import resource="ECardG3ApplGewoehnlicheSignatur.xml" /> + + <bean name="eCardG3" class="at.gv.egiz.smcc.CardEmul" + abstract="true"> + <property name="atr" + value="3b:bd:18:00:81:31:fe:45:80:51:02:67:05:18:b1:02:02:02:01:81:05:31" /> + <property name="basicChannel" ref="cardChannel" /> + <property name="applications"> + <list> + <ref bean="applInfobox" /> + <ref bean="applSichereSignatur" /> + <ref bean="applGewoehnlicheSignatur" /> + </list> + </property> + </bean> + + <bean name="cardChannel" class="at.gv.egiz.smcc.starcos.STARCOSCardChannelEmul"> + <property name="cardEmul" ref="card" /> + <property name="globalPins"> + <map> + <entry key="0x01" value-ref="kartenPIN" /> + </map> + </property> + <property name="globalFiles"> + <list> + <ref bean="EF_VERSION" /> + </list> + </property> + </bean> + + <bean name="kartenPIN" class="at.gv.egiz.smcc.PIN"> + <property name="pin" value="24:12:34:ff:ff:ff:ff:ff" /> + <property name="kfpc" value="10" /> + </bean> + + + <bean name="EF_VERSION" class="at.gv.egiz.smcc.File"> + <property name="fid" value="00:32" /> + <property name="fcx" + value="62:1a:80:02:00:14:82:05:44:41:00:14:01:83:02:00:32:88:01:d8:8a:01:05:a1 03:8b:01:03" /> + <property name="file"> + <value> + a5:0e:53:02:01:20:54:08 01:01:03:01:04:01:70:01 + </value> + </property> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3ActivateTest.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3ActivateTest.xml new file mode 100644 index 00000000..728255d1 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3ActivateTest.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ECardG3.xml" /> + + <!-- + NOTE: This defines a partly activated eCard G3. The certificate files + have already been filled, but the PINs are not yet set. + --> + + <bean name="card" parent="eCardG3"> + <property name="basicChannel" ref="cardChannel_notActivated" /> + <property name="applications"> + <list> + <ref bean="applInfobox_notActivated" /> + <ref bean="applSichereSignatur_notActivated" /> + <ref bean="applGewoehnlicheSignatur" /> + </list> + </property> + </bean> + + <bean name="cardChannel_notActivated" parent="cardChannel"> + <property name="globalPins"> + <map> + <entry key="0x01"> + <bean parent="kartenPIN"> + <property name="pin" value="26:12:34:56:ff:ff:ff:ff" /> + <property name="state"> + <util:constant static-field="at.gv.egiz.smcc.PIN.STATE_PIN_NOTACTIVE" /> + </property> + </bean> + </entry> + </map> + </property> + </bean> + + <bean name="applInfobox_notActivated" parent="applInfobox"> + <property name="files"> + <list> + <bean parent="EF_Infobox"> + <property name="identityLink" value="" /> + </bean> + </list> + </property> + </bean> + + <bean name="applSichereSignatur_notActivated" parent="applSichereSignatur"> + <property name="pins"> + <map> + <entry key="0x81"> + <bean parent="signaturPIN"> + <property name="state"> + <util:constant static-field="at.gv.egiz.smcc.PIN.STATE_PIN_NOTACTIVE" /> + </property> + </bean> + </entry> + </map> + </property> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3ApplGewoehnlicheSignatur.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3ApplGewoehnlicheSignatur.xml new file mode 100644 index 00000000..e2c49c5d --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3ApplGewoehnlicheSignatur.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ECard.xml" /> + + <bean name="applGewoehnlicheSignatur" + class="at.gv.egiz.smcc.starcos.STARCOSApplGewoehnlicheSignatur"> + <property name="cardChannel" ref="cardChannel" /> + <property name="aid" value="d0:40:00:00:17:00:13:01" /> + <property name="fid" value="3f:05" /> + <property name="fcx" + value="6f:14:84:08:d0:40:00:00:17:00:13:01:a5:08:53:02:01:10:54:02:01:00" /> + <property name="privateKey" ref="privateKeyAUT" /> + <property name="dst" value="84:03:80:02:00:80:01:04" /> + <property name="ct" value="84:03:80:03:00:80:01:81" /> + <property name="files"> + <list> + <ref bean="EF_C_X509_CH_AUT" /> + </list> + </property> + </bean> + + <bean name="EF_C_X509_CH_AUT" + class="at.gv.egiz.smcc.test.spring.CertificateFileFactoryBean"> + <property name="fid" value="2f:01" /> + <property name="fileSize" value="2000" /> + <property name="fcx" + value="62:16:80:02:04:9c:82:01:01:83:02:2f:01:88:01:08:8a:01:05:a1:03:8b:01:08" /> + <property name="certificate" ref="certificateGS" /> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3ApplSichereSignatur.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3ApplSichereSignatur.xml new file mode 100644 index 00000000..aeacf649 --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3ApplSichereSignatur.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ECard.xml" /> + + <bean name="applSichereSignatur" class="at.gv.egiz.smcc.starcos.STARCOSG3ApplSichereSignatur"> + <property name="cardChannel" ref="cardChannel" /> + <property name="aid" value="d0:40:00:00:17:00:12:01" /> + <property name="fid" value="3f:04" /> + <property name="fcx" + value="6f:16:84:08:d0:40:00:00:17:00:12:01:a5:0a:53:02:01:10:54:04:01:00:03:00" /> + <property name="files"> + <list> + <ref bean="EF_C_X509_CH_DS" /> + </list> + </property> + <property name="pins"> + <map> + <entry key="0x81" value-ref="signaturPIN" /> + </map> + </property> + </bean> + + <bean name="signaturPIN" class="at.gv.egiz.smcc.PIN"> + <property name="pin" value="26:12:34:56:ff:ff:ff:ff" /> + <property name="kfpc" value="3" /> + </bean> + + <bean name="EF_C_X509_CH_DS" + class="at.gv.egiz.smcc.test.spring.CertificateFileFactoryBean"> + <property name="fid" value="c0:00" /> + <property name="fileSize" value="2000" /> + <property name="fcx" + value="62:16:80:02:04:ef:82:01:01:83:02:c0:00:88:01:08:8a:01:05:a1:03:8b:01:0e" /> + <property name="certificate" ref="certificateSS" /> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3InfoboxContainerEncryptedTest.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3InfoboxContainerEncryptedTest.xml new file mode 100644 index 00000000..951d903a --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3InfoboxContainerEncryptedTest.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ECardG3.xml" /> + + <bean name="card" parent="eCardG3"> + <property name="applications"> + <list> + <ref bean="applInfoboxContainerEncrypted" /> + <ref bean="applSichereSignatur" /> + <ref bean="applGewoehnlicheSignatur" /> + </list> + </property> + </bean> + + <bean name="applInfoboxContainerEncrypted" parent="applInfobox"> + <property name="files"> + <list> + <bean parent="EF_Infobox"> + <property name="kid" value="-1" /> + <property name="container" value="true" /> + <property name="publicKey" ref="publicKeyAUT" /> + </bean> + </list> + </property> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3InfoboxContainerTest.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3InfoboxContainerTest.xml new file mode 100644 index 00000000..0d872ffb --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3InfoboxContainerTest.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ECardG3.xml" /> + + <bean name="card" parent="eCardG3"> + <property name="applications"> + <list> + <ref bean="applInfoboxContainer" /> + <ref bean="applSichereSignatur" /> + <ref bean="applGewoehnlicheSignatur" /> + </list> + </property> + </bean> + + <bean name="applInfoboxContainer" parent="applInfobox"> + <property name="files"> + <list> + <bean parent="EF_Infobox"> + <property name="kid" value="-1" /> + <property name="container" value="true" /> + </bean> + </list> + </property> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3InvalidTest.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3InvalidTest.xml new file mode 100644 index 00000000..a1dc7e5e --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3InvalidTest.xml @@ -0,0 +1,246 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ECardG3.xml" /> + + <bean name="card" parent="eCardG3"> + <property name="applications"> + <list> + <ref bean="applInfobox_invalid" /> + <ref bean="applSichereSignatur_invalid" /> + <ref bean="applGewoehnlicheSignatur_invalid" /> + </list> + </property> + </bean> + + <bean name="applInfobox_invalid" parent="applInfobox"> + <property name="files"> + <list> + <bean parent="EF_Infobox"> + <property name="identityLink"> + <value> + 73:73:65:72:74:69:6f:6e 49:44:31:32:33:36:33:35 + 36:33:36:36:37:39:39:39 31:39:0c:19:32:30:30:39 + 2d:30:33:2d:30:36:54:31 36:3a:31:39:3a:32:36:2b + 30:31:3a:30:30:a0:42:30 40:0c:18:45:68:42:53:36 + 54:6f:31:49:6c:54:4b:4f 4a:45:39:75:62:74:48:69 + 51:3d:3d:0c:0a:58:58:58 c5:90:7a:67:c3:bc:72:0c + 0c:58:58:58:54:c3:bc:7a 65:6b:c3:a7:69:0c:0a:31 + 39:37:33:2d:30:36:2d:30 34:30:0a:a0:03:02:01:00 + a0:03:02:01:01:03:82:01 01:00:9f:a5:68:a9:14:4c + a4:5d:9d:09:99:2e:e7:45 2e:42:49:02:16:d9:cb:90 + 43:27:03:43:6d:b4:8c:dc 1c:77:d4:2e:a1:40:e7:e0 + 03:60:15:f7:db:03:5e:ca e4:35:ba:2b:fd:e6:b8:d8 + b7:2a:80:dd:38:e0:8a:69 ad:67:60:65:42:c9:41:60 + 94:de:84:54:ad:b3:f4:f7 44:d5:f3:d3:b6:87:8a:22 + 38:00:cb:a4:4f:96:c2:28 c2:8d:91:95:b4:ea:00:59 + 2e:ec:78:d8:0f:26:04:ee ed:13:bf:81:68:81:43:be + 15:0e:ba:f9:6a:18:eb:95 ad:b4:0f:3c:94:63:32:81 + 90:cf:3f:95:ff:8d:86:ed e4:75:d5:09:32:17:38:b2 + 68:35:49:8c:a6:d0:3e:de 6e:47:68:bf:98:33:ae:59 + 9f:e0:19:9b:5b:1b:8f:74 d2:9c:01:1a:df:af:f8:96 + 91:cb:f8:bf:06:c7:d5:17 95:ef:c5:97:37:1b:b0:a1 + 4f:9f:01:82:90:4a:6a:04 db:31:1a:58:eb:cd:68:e3 + 68:0b:a0:11:44:08:a0:5c fc:61:15:1f:bb:22:87:18 + a3:07:9b:0d:13:7c:ff:30 cf:f3:af:e4:45:05:a0:8e + 6b:ef:70:f5:4b:68:8f:61 d6:f5:a0:17:03:15:00:8e + a8:df:a9:77:fd:9b:4b:91 89:34:84:f3:24:b2:5a:39 + a9:f2:17:a1:17:03:15:00 db:a2:fd:a4:e7:65:2e:7e + b0:c8:fa:4d:13:28:df:b1 58:3b:9e:29:a2:17:03:15 + 00:68:a0:17:18:b7:b3:c3 60:77:82:8d:f1:5e:10:c3 + 2d:78:2c:11:0b + </value> + </property> + </bean> + </list> + </property> + </bean> + + <bean name="applSichereSignatur_invalid" parent="applSichereSignatur"> + <property name="files"> + <list> + <bean parent="EF_C_X509_CH_DS"> + <property name="certificate"> + <value> + 54:31:48:30:46:06:03:55 04:0a:0c:3f:41:2d:54:72 + 75:73:74:20:47:65:73:2e 20:66:2e:20:53:69:63:68 + 65:72:68:65:69:74:73:73 79:73:74:65:6d:65:20:69 + 6d:20:65:6c:65:6b:74:72 2e:20:44:61:74:65:6e:76 + 65:72:6b:65:68:72:20:47 6d:62:48:31:23:30:21:06 + 03:55:04:0b:0c:1a:61:2d 73:69:67:6e:2d:50:72:65 + 6d:69:75:6d:2d:54:65:73 74:2d:53:69:67:2d:30:32 + 31:23:30:21:06:03:55:04 03:0c:1a:61:2d:73:69:67 + 6e:2d:50:72:65:6d:69:75 6d:2d:54:65:73:74:2d:53 + 69:67:2d:30:32:30:1e:17 0d:30:39:30:33:30:36:31 + 35:32:32:33:37:5a:17:0d 31:32:30:33:30:36:31:35 + 32:32:33:37:5a:30:72:31 0b:30:09:06:03:55:04:06 + 13:02:41:54:31:20:30:1e 06:03:55:04:03:0c:17:58 + 58:58:c5:90:7a:67:c3:bc 72:20:58:58:58:54:c3:bc + 7a:65:6b:c3:a7:69:31:15 30:13:06:03:55:04:04:0c + 0c:58:58:58:54:c3:bc:7a 65:6b:c3:a7:69:31:13:30 + 11:06:03:55:04:2a:0c:0a 58:58:58:c5:90:7a:67:c3 + bc:72:31:15:30:13:06:03 55:04:05:13:0c:37:30:34 + 38:37:31:30:35:30:30:30 38:30:49:30:13:06:07:2a + 86:48:ce:3d:02:01:06:08 2a:86:48:ce:3d:03:01:01 + 03:32:00:04:de:75:22:4c c4:d4:14:16:48:4a:65:9d + 5a:39:71:11:1c:33:7e:7f b4:06:33:74:e6:f3:c2:56 + 46:18:39:b9:c4:47:84:f5 46:41:60:78:81:45:4a:0f + 67:77:77:b2:a3:82:02:33 30:82:02:2f:30:13:06:03 + 55:1d:23:04:0c:30:0a:80 08:46:06:9f:8e:41:8e:15 + bd:30:27:06:08:2b:06:01 05:05:07:01:03:01:01:ff + 04:18:30:16:30:08:06:06 04:00:8e:46:01:01:30:0a + 06:08:2b:06:01:05:05:07 0b:01:30:81:84:06:08:2b + 06:01:05:05:07:01:01:04 78:30:76:30:2c:06:08:2b + 06:01:05:05:07:30:01:86 20:68:74:74:70:3a:2f:2f + 6f:63:73:70:2d:74:65:73 74:2e:61:2d:74:72:75:73 + 74:2e:61:74:2f:6f:63:73 70:30:46:06:08:2b:06:01 + 05:05:07:30:02:86:3a:68 74:74:70:3a:2f:2f:77:77 + 77:2e:61:2d:74:72:75:73 74:2e:61:74:2f:63:65:72 + 74:73:2f:61:2d:73:69:67 6e:2d:50:72:65:6d:69:75 + 6d:2d:54:65:73:74:2d:53 69:67:2d:30:32:2e:63:72 + 74:30:81:92:06:03:55:1d 20:04:81:8a:30:81:87:30 + 7b:06:06:2a:28:00:11:01 03:30:71:30:35:06:08:2b + 06:01:05:05:07:02:01:16 29:68:74:74:70:3a:2f:2f + 77:77:77:2e:61:2d:74:72 75:73:74:2e:61:74:2f:64 + 6f:63:73:2f:63:70:2f:61 2d:73:69:67:6e:2d:74:65 + 73:74:30:38:06:08:2b:06 01:05:05:07:02:02:30:2c + 1a:2a:44:69:65:73:65:73 20:5a:65:72:74:69:66:69 + 6b:61:74:20:64:69:65:6e 74:20:6e:75:72:20:7a:75 + 20:54:65:73:74:7a:77:65 63:6b:65:6e:30:08:06:06 + 04:00:8b:30:01:01:30:81 a4:06:03:55:1d:1f:04:81 + 9c:30:81:99:30:81:96:a0 81:93:a0:81:90:86:81:8d + 6c:64:61:70:3a:2f:2f:6c 64:61:70:2d:74:65:73:74 + 2e:61:2d:74:72:75:73:74 2e:61:74:2f:6f:75:3d:61 + 2d:73:69:67:6e:2d:50:72 65:6d:69:75:6d:2d:54:65 + 73:74:2d:53:69:67:2d:30 32:2c:6f:3d:41:2d:54:72 + 75:73:74:2c:63:3d:41:54 3f:63:65:72:74:69:66:69 + 63:61:74:65:72:65:76:6f 63:61:74:69:6f:6e:6c:69 + 73:74:3f:62:61:73:65:3f 6f:62:6a:65:63:74:63:6c + 61:73:73:3d:65:69:64:43 65:72:74:69:66:69:63:61 + 74:69:6f:6e:41:75:74:68 6f:72:69:74:79:30:11:06 + 03:55:1d:0e:04:0a:04:08 47:64:6e:bb:92:a0:f6:f4 + 30:0e:06:03:55:1d:0f:01 01:ff:04:04:03:02:06:c0 + 30:09:06:03:55:1d:13:04 02:30:00:30:0d:06:09:2a + 86:48:86:f7:0d:01:01:05 05:00:03:82:01:01:00:06 + 63:76:0a:d5:54:fa:51:2a b0:41:dc:a4:9b:52:1c:0e + 1d:65:46:2b:a3:cd:d4:46 36:40:c3:49:e8:a4:dc:01 + de:70:97:31:b0:cd:df:69 f8:c3:83:ee:c6:ed:e3:18 + 1a:80:c1:30:a9:d6:b1:b8 a8:e0:3d:b1:8e:2c:c9:a6 + 05:6e:4a:d2:b2:03:a4:2b a2:ad:ad:e5:ba:0d:54:8d + 92:51:da:58:ed:d3:8d:61 a1:fc:49:f6:80:db:65:92 + e0:d5:23:69:0f:38:11:61 1e:cd:a2:8e:68:ec:70:fb + 55:95:cb:b4:18:6b:3a:25 4a:3e:07:b0:18:26:51:39 + 46:fa:e2:ae:e6:1c:d2:cb 28:a1:8b:56:bb:e9:6c:f7 + 0b:84:dd:7f:64:8b:43:93 62:39:fb:91:fa:3a:57:56 + 4a:aa:99:1e:9b:cc:a4:c0 18:46:ae:15:24:f5:f3:e6 + 36:55:29:a8:a9:af:7b:44 19:da:66:4d:11:89:28:34 + 01:15:24:93:43:6a:8f:e4 54:3a:3d:9b:2f:c3:db:7e + 5e:12:00:aa:e7:c1:82:1c 1d:1d:23:1d:a3:cc:59:e4 + 7a:f0:14:17:fb:96:90:c1 c0:de:db:91:fb:49:39:70 + 76:2f:7b:22:cd:35:cb:ed 8f:b3:66:ae:95:49:75 + </value> + </property> + </bean> + </list> + </property> + </bean> + + <bean name="applGewoehnlicheSignatur_invalid" parent="applGewoehnlicheSignatur"> + <property name="files"> + <list> + <bean parent="EF_C_X509_CH_AUT"> + <property name="certificate"> + <value> + 54:31:48:30:46:06:03:55 04:0a:0c:3f:41:2d:54:72 + 75:73:74:20:47:65:73:2e 20:66:2e:20:53:69:63:68 + 65:72:68:65:69:74:73:73 79:73:74:65:6d:65:20:69 + 6d:20:65:6c:65:6b:74:72 2e:20:44:61:74:65:6e:76 + 65:72:6b:65:68:72:20:47 6d:62:48:31:1d:30:1b:06 + 03:55:04:0b:0c:14:61:2d 73:69:67:6e:2d:74:6f:6b + 65:6e:2d:54:65:73:74:2d 30:33:31:1d:30:1b:06:03 + 55:04:03:0c:14:61:2d:73 69:67:6e:2d:74:6f:6b:65 + 6e:2d:54:65:73:74:2d:30 33:30:1e:17:0d:30:39:30 + 33:30:36:31:35:32:32:33 38:5a:17:0d:31:32:30:33 + 30:36:31:35:32:32:33:38 5a:30:72:31:0b:30:09:06 + 03:55:04:06:13:02:41:54 31:20:30:1e:06:03:55:04 + 03:0c:17:58:58:58:c5:90 7a:67:c3:bc:72:20:58:58 + 58:54:c3:bc:7a:65:6b:c3 a7:69:31:15:30:13:06:03 + 55:04:04:0c:0c:58:58:58 54:c3:bc:7a:65:6b:c3:a7 + 69:31:13:30:11:06:03:55 04:2a:0c:0a:58:58:58:c5 + 90:7a:67:c3:bc:72:31:15 30:13:06:03:55:04:05:13 + 0c:37:30:34:38:37:31:30 35:30:30:30:38:30:49:30 + 13:06:07:2a:86:48:ce:3d 02:01:06:08:2a:86:48:ce + 3d:03:01:01:03:32:00:04 02:55:51:f9:2a:ea:6f:d3 + f5:da:a9:7a:22:fc:b4:38 e9:5c:dc:6b:86:a6:77:a7 + 90:f3:36:e0:c4:de:72:f2 1a:07:fa:d0:c8:1c:a0:c8 + 8b:5d:de:9e:f8:3b:7c:8c a3:82:01:ec:30:82:01:e8 + 30:13:06:03:55:1d:23:04 0c:30:0a:80:08:47:7e:5b + db:37:33:b1:fa:30:7e:06 08:2b:06:01:05:05:07:01 + 01:04:72:30:70:30:2c:06 08:2b:06:01:05:05:07:30 + 01:86:20:68:74:74:70:3a 2f:2f:6f:63:73:70:2d:74 + 65:73:74:2e:61:2d:74:72 75:73:74:2e:61:74:2f:6f + 63:73:70:30:40:06:08:2b 06:01:05:05:07:30:02:86 + 34:68:74:74:70:3a:2f:2f 77:77:77:2e:61:2d:74:72 + 75:73:74:2e:61:74:2f:63 65:72:74:73:2f:61:2d:73 + 69:67:6e:2d:74:6f:6b:65 6e:2d:74:65:73:74:2d:30 + 33:2e:63:72:74:30:81:86 06:03:55:1d:20:04:7f:30 + 7d:30:7b:06:06:2a:28:00 11:01:03:30:71:30:35:06 + 08:2b:06:01:05:05:07:02 01:16:29:68:74:74:70:3a + 2f:2f:77:77:77:2e:61:2d 74:72:75:73:74:2e:61:74 + 2f:64:6f:63:73:2f:63:70 2f:61:2d:73:69:67:6e:2d + 74:65:73:74:30:38:06:08 2b:06:01:05:05:07:02:02 + 30:2c:1a:2a:44:69:65:73 65:73:20:5a:65:72:74:69 + 66:69:6b:61:74:20:64:69 65:6e:74:20:6e:75:72:20 + 7a:75:20:54:65:73:74:7a 77:65:63:6b:65:6e:30:81 + 99:06:03:55:1d:1f:04:81 91:30:81:8e:30:81:8b:a0 + 81:88:a0:81:85:86:81:82 6c:64:61:70:3a:2f:2f:6c + 64:61:70:2d:74:65:73:74 2e:61:2d:74:72:75:73:74 + 2e:61:74:2f:6f:75:3d:61 2d:73:69:67:6e:2d:74:6f + 6b:65:6e:2d:30:33:2c:6f 3d:41:2d:54:72:75:73:74 + 2c:63:3d:41:54:3f:63:65 72:74:69:66:69:63:61:74 + 65:72:65:76:6f:63:61:74 69:6f:6e:6c:69:73:74:3f + 62:61:73:65:3f:6f:62:6a 65:63:74:63:6c:61:73:73 + 3d:65:69:64:43:65:72:74 69:66:69:63:61:74:69:6f + 6e:41:75:74:68:6f:72:69 74:79:30:11:06:03:55:1d + 0e:04:0a:04:08:4a:43:51 30:45:fc:2a:00:30:0e:06 + 03:55:1d:0f:01:01:ff:04 04:03:02:04:b0:30:09:06 + 03:55:1d:13:04:02:30:00 30:0d:06:09:2a:86:48:86 + f7:0d:01:01:05:05:00:03 82:01:01:00:31:dc:f3:43 + 79:dd:a9:2a:dc:21:f9:d9 8f:9a:4e:01:40:9a:f1:14 + 8d:3a:5e:88:36:45:1f:16 3e:eb:a2:ef:bf:55:bd:5e + 0e:19:c7:0c:bd:ed:df:b8 75:4e:6a:3a:9a:10:fa:49 + c1:d2:35:c5:9a:d7:f4:f0 cd:13:d1:24:06:f8:1f:ea + d6:7a:cb:4f:b5:3e:6c:b2 fc:e3:aa:2b:20:91:f5:5b + f1:94:0e:06:0a:fd:25:71 11:fc:84:46:ef:5b:0b:a4 + 4a:5d:42:99:c8:4e:51:d8 63:d1:bd:00:a3:dd:8f:12 + 42:be:ca:15:37:4c:d2:c9 a7:37:b2:76:b7:34:92:98 + 60:e7:3d:55:a2:6c:b6:66 67:e1:e4:8f:e3:a5:b8:b5 + c8:8f:9e:e3:f1:aa:8e:e6 e2:47:49:3d:be:8c:dd:ce + 8d:52:ac:b9:83:e9:9d:98 7b:da:2b:bc:83:cb:74:64 + 17:4c:33:bb:88:c2:dd:08 69:d8:a2:ac:95:71:d3:f8 + c9:d1:d6:0e:c3:67:a1:db ca:58:aa:4b:ec:37:46:73 + c3:a3:7b:1e:dd:f9:b3:bb e0:16:39:af:a0:19:9e:89 + 37:1e:6e:41:59:e1:86:ea 0b:39:03:89:d2:ba:d5:0c + 84:09:dd:c7:00:2c:2e:1a 69:eb:df:b1 + </value> + </property> + </bean> + </list> + </property> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3NotActivatedTest.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3NotActivatedTest.xml new file mode 100644 index 00000000..b60ae84c --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3NotActivatedTest.xml @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ECardG3.xml" /> + + <bean name="card" parent="eCardG3"> + <property name="basicChannel" ref="cardChannel_notActivated" /> + <property name="applications"> + <list> + <ref bean="applInfobox_notActivated" /> + <ref bean="applSichereSignatur_notActivated" /> + <ref bean="applGewoehnlicheSignatur_notActivated" /> + </list> + </property> + </bean> + + <bean name="cardChannel_notActivated" parent="cardChannel"> + <property name="globalPins"> + <map> + <entry key="0x01"> + <bean parent="kartenPIN"> + <property name="state"> + <util:constant static-field="at.gv.egiz.smcc.PIN.STATE_PIN_NOTACTIVE" /> + </property> + </bean> + </entry> + </map> + </property> + </bean> + + <bean name="applInfobox_notActivated" parent="applInfobox"> + <property name="files"> + <list> + <bean parent="EF_Infobox"> + <property name="identityLink" value="" /> + </bean> + </list> + </property> + </bean> + + <bean name="applGewoehnlicheSignatur_notActivated" parent="applGewoehnlicheSignatur"> + <property name="files"> + <list> + <bean parent="EF_C_X509_CH_AUT"> + <property name="certificate" value="" /> + </bean> + </list> + </property> + </bean> + + <bean name="applSichereSignatur_notActivated" parent="applSichereSignatur"> + <property name="files"> + <list> + <bean parent="EF_C_X509_CH_DS"> + <property name="certificate" value="" /> + </bean> + </list> + </property> + <property name="pins"> + <map> + <entry key="0x81"> + <bean parent="signaturPIN"> + <property name="pin" value="26:12:34:56:ff:ff:ff:ff" /> + <property name="state"> + <util:constant static-field="at.gv.egiz.smcc.PIN.STATE_PIN_NOTACTIVE" /> + </property> + </bean> + </entry> + </map> + </property> + </bean> + +</beans>
\ No newline at end of file diff --git a/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3Test.xml b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3Test.xml new file mode 100644 index 00000000..7ce7cacf --- /dev/null +++ b/smcc/src/test/resources/at/gv/egiz/smcc/test/ecard/ECardG3Test.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> + <!-- + Copyright 2008 Federal Chancellery Austria and Graz University of + Technology Licensed under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 Unless required by + applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for + the specific language governing permissions and limitations under the + License. + --> +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:util="http://www.springframework.org/schema/util" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> + + <import resource="ECardG3.xml"/> + + <bean name="card" parent="eCardG3"/> + +</beans>
\ No newline at end of file |