equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004-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 |
|
19 #include "keytool_commands.h" |
|
20 |
|
21 CKeyToolParameters::CKeyToolParameters() |
|
22 { |
|
23 } |
|
24 |
|
25 CKeyToolParameters* CKeyToolParameters::NewLC() |
|
26 { |
|
27 CKeyToolParameters* self = new (ELeave) CKeyToolParameters; |
|
28 CleanupStack::PushL(self); |
|
29 self->ConstructL(); |
|
30 return self; |
|
31 } |
|
32 |
|
33 CKeyToolParameters::~CKeyToolParameters() |
|
34 { |
|
35 delete iDefault; |
|
36 delete iLabel; |
|
37 delete iPrivate; |
|
38 delete iOwnerType; |
|
39 iUIDs.Close(); |
|
40 } |
|
41 |
|
42 void CKeyToolParameters::ConstructL() |
|
43 { |
|
44 iAccess = CCTKeyInfo::EExtractable; |
|
45 iUsage = EPKCS15UsageSign; |
|
46 iCertstoreIndex = -1; |
|
47 iKeystoreIndex = -1; |
|
48 iPageWise = EFalse; |
|
49 iRemoveKey = EFalse; |
|
50 iPolicy = ENone; |
|
51 } |