pkiutilities/DeviceToken/Src/Generic/Common/DevTokenCliServ.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 15:20:08 +0200
changeset 0 164170e6151a
permissions -rw-r--r--
Revision: 201004

/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   Implementation of DevTokenCliServ
*
*/



#include "DevTokenCliServ.h"
#include "DevTokenTypesEnum.h"
#include "DevTokenImplementationUID.hrh"

const TInt KDeviceTokenTypeUidValues[] = { DEVCERTKEYSTORE_IMPLEMENTATION_UID, DEVCERTSTORE_IMPLEMENTATION_UID, TRUSRVCERTSTORE_IMPLEMENTATION_UID };

// ======== MEMBER FUNCTIONS ========

// -----------------------------------------------------------------------------
// RSupportedTokensArray::RSupportedTokensArray()
// -----------------------------------------------------------------------------
//
RSupportedTokensArray::RSupportedTokensArray()
    {
    _LIT(KKeyStoreName, "device cert keystore");
    _LIT(KDeviceCertStoreName, "device certstore");
    _LIT(KTruSrvCertStoreName, "trust server certstore");
    const TDesC* array[] = {&KKeyStoreName, &KDeviceCertStoreName, &KTruSrvCertStoreName }; 
    Copy(array, ETotalTokensSupported);
    }


// -----------------------------------------------------------------------------
// RTokenTypeUIDLookup::RTokenTypeUIDLookup()
// -----------------------------------------------------------------------------
//
RTokenTypeUIDLookup::RTokenTypeUIDLookup() :
    TFixedArray<TInt, ETotalTokensSupported>(KDeviceTokenTypeUidValues, ETotalTokensSupported)
    {
    }
    
//EOF