|
1 // |
|
2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the License "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 // |
|
17 |
|
18 START_TESTCASE SEC-FILETOKENS-THWKEYSTORE-1-0001 |
|
19 |
|
20 //! @SYMTestCaseID SEC-FILETOKENS-THWKEYSTORE-1-0001 |
|
21 |
|
22 //! @SYMTestCaseDesc |
|
23 |
|
24 //! //////////////////////////////////////////////////////////////////////////////////// |
|
25 //! // Testing hardware token implementation |
|
26 //! //////////////////////////////////////////////////////////////////////////////////// |
|
27 |
|
28 //! @SYMTestActions 1) Delete keystore data file |
|
29 |
|
30 //! 2) Retrieving label of a particular key store |
|
31 |
|
32 //! 3) delete keys |
|
33 |
|
34 //! 4) List Keys |
|
35 |
|
36 //! 5) Open a key for signing |
|
37 |
|
38 //! 6) Open a key for decryption |
|
39 |
|
40 //! 7) Open a key for signing |
|
41 |
|
42 //! 8) Open a key for decryption |
|
43 |
|
44 //! 9) Open a key for signing |
|
45 |
|
46 //! 10) Open a key for decryption |
|
47 |
|
48 //! 11) List Keys |
|
49 |
|
50 //! 12) Add a key |
|
51 |
|
52 //! 13) Get key information |
|
53 |
|
54 //! 14) Open a key as a RSA signer |
|
55 |
|
56 //! 15) Open a key as a DSA signer |
|
57 |
|
58 //! 16) Open key for decrypt |
|
59 |
|
60 //! 17) Import a key |
|
61 |
|
62 //! 18) Import a PKCS5 encrypted RSA key |
|
63 |
|
64 //! 19) Export a key |
|
65 |
|
66 //! 20) Set use policy |
|
67 |
|
68 //! 21) Open key for decrypt |
|
69 |
|
70 //! 22) Set use policy |
|
71 |
|
72 //! 23) Delete a key |
|
73 |
|
74 //! 24) Closing key store |
|
75 |
|
76 //! 25) Sleep 5 seconds |
|
77 |
|
78 |
|
79 RUN_TEST_STEP -1 CTestHandler deletekeystoredata |
|
80 |
|
81 RUN_TEST_STEP -1 CTestHandler init thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-002 |
|
82 |
|
83 RUN_TEST_STEP -1 CTestHandler deletekeys |
|
84 |
|
85 RUN_TEST_STEP -1 CTestHandler listallkeys thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-004 |
|
86 |
|
87 RUN_TEST_STEP -1 CTestHandler open thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-005 |
|
88 |
|
89 RUN_TEST_STEP -1 CTestHandler open thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-006 |
|
90 |
|
91 RUN_TEST_STEP -1 CTestHandler sign thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-007 |
|
92 |
|
93 RUN_TEST_STEP -1 CTestHandler decrypt thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-008 |
|
94 |
|
95 RUN_TEST_STEP -1 CTestHandler sign thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-009 |
|
96 |
|
97 RUN_TEST_STEP -1 CTestHandler decrypt thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-010 |
|
98 |
|
99 RUN_TEST_STEP -1 CTestHandler listkeys thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-011 |
|
100 |
|
101 RUN_TEST_STEP !Error=-5 -1 CTestHandler addkey thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-012 |
|
102 |
|
103 RUN_TEST_STEP !Error=-5 -1 CTestHandler getkeyinfo thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-013 |
|
104 |
|
105 RUN_TEST_STEP !Error=-5 -1 CTestHandler open thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-014 |
|
106 |
|
107 RUN_TEST_STEP !Error=-5 -1 CTestHandler open thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-015 |
|
108 |
|
109 RUN_TEST_STEP !Error=-5 -1 CTestHandler open thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-016 |
|
110 |
|
111 RUN_TEST_STEP !Error=-5 -1 CTestHandler importkey thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-017 |
|
112 |
|
113 RUN_TEST_STEP !Error=-5 -1 CTestHandler importkey thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-018 |
|
114 |
|
115 RUN_TEST_STEP !Error=-5 -1 CTestHandler exportkey thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-019 |
|
116 |
|
117 RUN_TEST_STEP !Error=-5 -1 CTestHandler exportkey thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-020 |
|
118 |
|
119 RUN_TEST_STEP !Error=-5 -1 CTestHandler setusepolicy thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-021 |
|
120 |
|
121 RUN_TEST_STEP !Error=-5 -1 CTestHandler setmanagementpolicy thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-022 |
|
122 |
|
123 RUN_TEST_STEP !Error=-5 -1 CTestHandler deletekeys thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-023 |
|
124 |
|
125 RUN_TEST_STEP -1 CTestHandler delete |
|
126 |
|
127 RUN_TEST_STEP -1 CTestHandler sleep thwkeystore.ini SEC-FILETOKENS-THWKEYSTORE-1-025 |
|
128 |
|
129 END_TESTCASE SEC-FILETOKENS-THWKEYSTORE-1-0001 |