cpsecplugins/cpadvancedsecplugin/src/advsecsettingssecuritymodule_symbian.cpp
author hgs
Thu, 14 Oct 2010 13:56:11 +0300
changeset 63 989397f9511c
permissions -rw-r--r--
201039_03
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
63
989397f9511c 201039_03
hgs
parents:
diff changeset
     1
/*
989397f9511c 201039_03
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
989397f9511c 201039_03
hgs
parents:
diff changeset
     3
* All rights reserved.
989397f9511c 201039_03
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
989397f9511c 201039_03
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0""
989397f9511c 201039_03
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
989397f9511c 201039_03
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
989397f9511c 201039_03
hgs
parents:
diff changeset
     8
*
989397f9511c 201039_03
hgs
parents:
diff changeset
     9
* Initial Contributors:
989397f9511c 201039_03
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
989397f9511c 201039_03
hgs
parents:
diff changeset
    11
*
989397f9511c 201039_03
hgs
parents:
diff changeset
    12
* Contributors:
989397f9511c 201039_03
hgs
parents:
diff changeset
    13
*
989397f9511c 201039_03
hgs
parents:
diff changeset
    14
* Description:  Symbian specific container class for a security module
989397f9511c 201039_03
hgs
parents:
diff changeset
    15
*
989397f9511c 201039_03
hgs
parents:
diff changeset
    16
*/
989397f9511c 201039_03
hgs
parents:
diff changeset
    17
989397f9511c 201039_03
hgs
parents:
diff changeset
    18
#include "advsecsettingssecuritymodule_symbian.h"
989397f9511c 201039_03
hgs
parents:
diff changeset
    19
#include <cctcertinfo.h>                // CCTCertInfo
989397f9511c 201039_03
hgs
parents:
diff changeset
    20
#include <mctkeystore.h>                // CCTKeyInfo
989397f9511c 201039_03
hgs
parents:
diff changeset
    21
989397f9511c 201039_03
hgs
parents:
diff changeset
    22
989397f9511c 201039_03
hgs
parents:
diff changeset
    23
// ======== MEMBER FUNCTIONS ========
989397f9511c 201039_03
hgs
parents:
diff changeset
    24
989397f9511c 201039_03
hgs
parents:
diff changeset
    25
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    26
// CAdvSecSettingsSecurityModuleSymbian::CAdvSecSettingsSecurityModuleSymbian()
989397f9511c 201039_03
hgs
parents:
diff changeset
    27
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    28
//
989397f9511c 201039_03
hgs
parents:
diff changeset
    29
CAdvSecSettingsSecurityModuleSymbian::CAdvSecSettingsSecurityModuleSymbian(
989397f9511c 201039_03
hgs
parents:
diff changeset
    30
    MCTKeyStore &aProtectedKeyStore) : CBase(), iProtectedKeyStore(aProtectedKeyStore)
989397f9511c 201039_03
hgs
parents:
diff changeset
    31
{
989397f9511c 201039_03
hgs
parents:
diff changeset
    32
}
989397f9511c 201039_03
hgs
parents:
diff changeset
    33
989397f9511c 201039_03
hgs
parents:
diff changeset
    34
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    35
// CAdvSecSettingsSecurityModuleSymbian::~CAdvSecSettingsSecurityModuleSymbian()
989397f9511c 201039_03
hgs
parents:
diff changeset
    36
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    37
//
989397f9511c 201039_03
hgs
parents:
diff changeset
    38
CAdvSecSettingsSecurityModuleSymbian::~CAdvSecSettingsSecurityModuleSymbian()
989397f9511c 201039_03
hgs
parents:
diff changeset
    39
{
989397f9511c 201039_03
hgs
parents:
diff changeset
    40
    iKeyInfoArray.Close();
989397f9511c 201039_03
hgs
parents:
diff changeset
    41
}
989397f9511c 201039_03
hgs
parents:
diff changeset
    42
989397f9511c 201039_03
hgs
parents:
diff changeset
    43
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    44
// CAdvSecSettingsSecurityModuleSymbian::Label()
989397f9511c 201039_03
hgs
parents:
diff changeset
    45
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    46
//
989397f9511c 201039_03
hgs
parents:
diff changeset
    47
const TDesC &CAdvSecSettingsSecurityModuleSymbian::Label() const
989397f9511c 201039_03
hgs
parents:
diff changeset
    48
{
989397f9511c 201039_03
hgs
parents:
diff changeset
    49
    return KNullDesC;
989397f9511c 201039_03
hgs
parents:
diff changeset
    50
}
989397f9511c 201039_03
hgs
parents:
diff changeset
    51
989397f9511c 201039_03
hgs
parents:
diff changeset
    52
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    53
// CAdvSecSettingsSecurityModuleSymbian::IsDeletable()
989397f9511c 201039_03
hgs
parents:
diff changeset
    54
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    55
//
989397f9511c 201039_03
hgs
parents:
diff changeset
    56
TBool CAdvSecSettingsSecurityModuleSymbian::IsDeletable() const
989397f9511c 201039_03
hgs
parents:
diff changeset
    57
{
989397f9511c 201039_03
hgs
parents:
diff changeset
    58
    return EFalse;
989397f9511c 201039_03
hgs
parents:
diff changeset
    59
}
989397f9511c 201039_03
hgs
parents:
diff changeset
    60
989397f9511c 201039_03
hgs
parents:
diff changeset
    61
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    62
// CAdvSecSettingsSecurityModuleSymbian::IsSigningPinSupported()
989397f9511c 201039_03
hgs
parents:
diff changeset
    63
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    64
//
989397f9511c 201039_03
hgs
parents:
diff changeset
    65
TBool CAdvSecSettingsSecurityModuleSymbian::IsSigningPinSupported() const
989397f9511c 201039_03
hgs
parents:
diff changeset
    66
{
989397f9511c 201039_03
hgs
parents:
diff changeset
    67
    return EFalse;
989397f9511c 201039_03
hgs
parents:
diff changeset
    68
}
989397f9511c 201039_03
hgs
parents:
diff changeset
    69
989397f9511c 201039_03
hgs
parents:
diff changeset
    70
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    71
// CAdvSecSettingsSecurityModuleSymbian::KeyInfoArray()
989397f9511c 201039_03
hgs
parents:
diff changeset
    72
// ---------------------------------------------------------------------------
989397f9511c 201039_03
hgs
parents:
diff changeset
    73
//
989397f9511c 201039_03
hgs
parents:
diff changeset
    74
RMPointerArray<CCTKeyInfo> &CAdvSecSettingsSecurityModuleSymbian::KeyInfoArray()
989397f9511c 201039_03
hgs
parents:
diff changeset
    75
{
989397f9511c 201039_03
hgs
parents:
diff changeset
    76
    return iKeyInfoArray;
989397f9511c 201039_03
hgs
parents:
diff changeset
    77
}
989397f9511c 201039_03
hgs
parents:
diff changeset
    78