|
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 START_TESTCASE SEC-TKEYSTORE_AUTHENTICATION1-0001 |
|
18 |
|
19 //! @SYMTestCaseID SEC-TKEYSTORE_AUTHENTICATION1-0001 |
|
20 |
|
21 //! @SYMTestCaseDesc |
|
22 |
|
23 //! @SYMTestActions 1) Delete keystore data file |
|
24 |
|
25 //! 2) Retrieving label of a particular key store |
|
26 |
|
27 //! 3) Closing key store |
|
28 |
|
29 //! 4) Retrieving label of a particular key store |
|
30 |
|
31 //! 5) Closing key store |
|
32 |
|
33 //! 6) 1.0.0.0.1,Opening key store 1 in manager mode - deprecated |
|
34 |
|
35 //! 7) 1.0.0.0.2,Opening key store 2 in manager mode |
|
36 |
|
37 //! 8) 1.0.0.1.0,Add a key (TEST ID: GT0140-KEY002 and GT0140-KEY003) |
|
38 |
|
39 //! 9) 1.0.0.51.1, Get it again |
|
40 |
|
41 //! 10) Set a new authentication policy for a key with which the user is not registered |
|
42 |
|
43 //! 11) Gets authentication policy for a key |
|
44 |
|
45 //! 12) 1.0.0.51.1, Get it again |
|
46 |
|
47 //! 13) 1.0.0.1.1,List all keys (TEST ID: INC103084-KEY001) |
|
48 |
|
49 //! 14) 1.0.0.1.0.0,export a DH key |
|
50 |
|
51 //! 15) 1.1.0 Import a RSA key |
|
52 |
|
53 //! 16) 1.1.5 Export a RSA key |
|
54 |
|
55 //! 17) Set a new authentication policy for a key with which the user is not registered |
|
56 |
|
57 //! 18) 1.1.5 Export a RSA key |
|
58 |
|
59 //! 19) 1.12.0.14 Import a PKCS5 encrypted RSA key previously exported with ECipher3DES_CBC |
|
60 |
|
61 //! 20) 1.1.0.24 List RSA keys (TEST ID: GT0140-KEY001) |
|
62 |
|
63 //! 21) 1.2.0.69.0 Closing key store 1 - deprecated |
|
64 |
|
65 //! 22) 1.2.0.69.1 Closing key store 2 |
|
66 |
|
67 //! 23) 1.4.999.2, Sleep 5 seconds |
|
68 |
|
69 //! 24) 1.4.999.3, Check for server heap error |
|
70 |
|
71 RUN_TEST_STEP -1 CTestHandler deletekeystoredata |
|
72 |
|
73 RUN_TEST_STEP -1 CTestHandler init tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-002 |
|
74 |
|
75 RUN_TEST_STEP -1 CTestHandler delete |
|
76 |
|
77 RUN_TEST_STEP !Error=-2 -1 CTestHandler init tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-004 |
|
78 |
|
79 RUN_TEST_STEP -1 CTestHandler delete |
|
80 |
|
81 RUN_TEST_STEP -1 CTestHandler init tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-007 |
|
82 |
|
83 RUN_TEST_STEP -1 CTestHandler addkey tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-008 |
|
84 |
|
85 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-009 |
|
86 |
|
87 RUN_TEST_STEP -1 CTestHandler authenticationpolicy tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-010 |
|
88 |
|
89 RUN_TEST_STEP -1 CTestHandler authenticationpolicy tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-011 |
|
90 |
|
91 RUN_TEST_STEP -1 CTestHandler getkeyinfo tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-012 |
|
92 |
|
93 RUN_TEST_STEP -1 CTestHandler listallkeys tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-013 |
|
94 |
|
95 RUN_TEST_STEP !Error=-5 -1 CTestHandler exportkey tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-014 |
|
96 |
|
97 RUN_TEST_STEP -1 CTestHandler importkey tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-015 |
|
98 |
|
99 RUN_TEST_STEP -1 CTestHandler exportkey tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-016 |
|
100 |
|
101 RUN_TEST_STEP -1 CTestHandler authenticationpolicy tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-017 |
|
102 |
|
103 RUN_TEST_STEP !Error=-11012 -1 CTestHandler exportkey tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-018 |
|
104 |
|
105 RUN_TEST_STEP -1 CTestHandler importkey tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-019 |
|
106 |
|
107 RUN_TEST_STEP -1 CTestHandler listkeys tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-020 |
|
108 |
|
109 RUN_TEST_STEP -1 CTestHandler delete |
|
110 |
|
111 RUN_TEST_STEP -1 CTestHandler sleep tkeystore_authentication1.ini SEC-TKEYSTORE_AUTHENTICATION1-0001-023 |
|
112 |
|
113 RUN_TEST_STEP -1 CTestHandler checkserverheaperror |
|
114 |
|
115 END_TESTCASE SEC-TKEYSTORE_AUTHENTICATION1-0001 |
|
116 |
|
117 |
|
118 |
|
119 |
|
120 |