pkiutilities/DeviceToken/Src/Shared/DevTokenKeyInfo.cpp
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     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 DevTokenKeyInfo
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include "DevTokenDataTypes.h"
       
    21 
       
    22 // ======== MEMBER FUNCTIONS ========
       
    23 
       
    24 // ---------------------------------------------------------------------------
       
    25 // CDevTokenKeyInfo* CDevTokenKeyInfo::NewL(RReadStream& aStream)
       
    26 // ---------------------------------------------------------------------------
       
    27 // 
       
    28 EXPORT_C CDevTokenKeyInfo* CDevTokenKeyInfo::NewL(RReadStream& aStream)
       
    29     {
       
    30     CDevTokenKeyInfo* me = new (ELeave) CDevTokenKeyInfo();
       
    31     me->CleanupPushL();
       
    32     me->ConstructL(aStream);
       
    33     CleanupStack::Pop(me);
       
    34     return me;
       
    35     }
       
    36 
       
    37 
       
    38 // ---------------------------------------------------------------------------
       
    39 // CDevTokenKeyInfo::SetUsePolicy(const TSecurityPolicy& aPolicy)
       
    40 // ---------------------------------------------------------------------------
       
    41 //
       
    42 EXPORT_C void CDevTokenKeyInfo::SetUsePolicy(const TSecurityPolicy& aPolicy)
       
    43     {
       
    44     iUsePolicy = aPolicy;
       
    45     }
       
    46 
       
    47 
       
    48 // ---------------------------------------------------------------------------
       
    49 // CDevTokenKeyInfo::SetManagementPolicy(const TSecurityPolicy& aPolicy)
       
    50 // ---------------------------------------------------------------------------
       
    51 //
       
    52 EXPORT_C void CDevTokenKeyInfo::SetManagementPolicy(const TSecurityPolicy& aPolicy)
       
    53     {
       
    54     iManagementPolicy = aPolicy;
       
    55     }
       
    56 
       
    57 
       
    58 // ---------------------------------------------------------------------------
       
    59 // CDevTokenKeyInfo::SetPKCS8AttributeSet(HBufC8* aPKCS8AttributeSet)
       
    60 // ---------------------------------------------------------------------------
       
    61 //
       
    62 EXPORT_C void CDevTokenKeyInfo::SetPKCS8AttributeSet(HBufC8* aPKCS8AttributeSet)
       
    63     {
       
    64     delete iPKCS8AttributeSet;
       
    65     iPKCS8AttributeSet = aPKCS8AttributeSet;
       
    66     }
       
    67 
       
    68 //EOF
       
    69