pkiutilities/DeviceToken/Inc/DevCertKeyEncryptor.h
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:   The header file of DevCertKeyEncryptor
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __DEVCERTKEYENCRYPTOR_H__
       
    21 #define __DEVCERTKEYENCRYPTOR_H__
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <keyencryptor.h>
       
    25 
       
    26 /**
       
    27  *  class CDevCertKeyEncryptor
       
    28  *
       
    29  *  Encrypt key before putting into keystore 
       
    30  *  by using key encryptor plugin
       
    31  *
       
    32  *  @lib
       
    33  *  @since S60 v3.2
       
    34  */
       
    35 class CDevCertKeyEncryptor : public CBase
       
    36     {
       
    37     public:
       
    38 
       
    39       static CDevCertKeyEncryptor* NewL();
       
    40       
       
    41       static CDevCertKeyEncryptor* NewLC();
       
    42       
       
    43       virtual ~CDevCertKeyEncryptor();
       
    44       
       
    45       MKeyEncryptor* CreateImplementationL();
       
    46       
       
    47       TBool IsPluginExistL();
       
    48   
       
    49     private:
       
    50     
       
    51       CDevCertKeyEncryptor();
       
    52       
       
    53       void ConstructL();
       
    54     
       
    55     private:
       
    56       
       
    57       TUid iImplementationUID;
       
    58       
       
    59       TUid iDtorIDKey;
       
    60       
       
    61       MKeyEncryptor* iKeyEncryptor;
       
    62     };
       
    63 
       
    64 #endif  //  __DEVCERTKEYENCRYPTOR_H__
       
    65 
       
    66 //EOF
       
    67