|
1 /* |
|
2 * Copyright (c) 2006 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 "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: Implementation of DevTokenCliServ |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "DevTokenCliServ.h" |
|
21 #include "DevTokenTypesEnum.h" |
|
22 #include "DevTokenImplementationUID.hrh" |
|
23 |
|
24 const TInt KDeviceTokenTypeUidValues[] = { DEVCERTKEYSTORE_IMPLEMENTATION_UID, DEVCERTSTORE_IMPLEMENTATION_UID, TRUSRVCERTSTORE_IMPLEMENTATION_UID }; |
|
25 |
|
26 // ======== MEMBER FUNCTIONS ======== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // RSupportedTokensArray::RSupportedTokensArray() |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 RSupportedTokensArray::RSupportedTokensArray() |
|
33 { |
|
34 _LIT(KKeyStoreName, "device cert keystore"); |
|
35 _LIT(KDeviceCertStoreName, "device certstore"); |
|
36 _LIT(KTruSrvCertStoreName, "trust server certstore"); |
|
37 const TDesC* array[] = {&KKeyStoreName, &KDeviceCertStoreName, &KTruSrvCertStoreName }; |
|
38 Copy(array, ETotalTokensSupported); |
|
39 } |
|
40 |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // RTokenTypeUIDLookup::RTokenTypeUIDLookup() |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 RTokenTypeUIDLookup::RTokenTypeUIDLookup() : |
|
47 TFixedArray<TInt, ETotalTokensSupported>(KDeviceTokenTypeUidValues, ETotalTokensSupported) |
|
48 { |
|
49 } |
|
50 |
|
51 //EOF |
|
52 |